/* ========================================
   SMMCA Islamic Centre - Main Stylesheet
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e3a2e;
    --primary-light: #2d5043;
    --primary-dark: #14251b;
    --accent: #c49b61;
    --accent-dark: #a0854f;
    --gold: #dab068;
    --gold-light: #e8c878;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --cream: #faf9f6;
    --cream-light: #fefefe;
    --beige: #f5f2ed;
    --brown-light: #8b7355;
    --green-sage: #9caf88;
    --shadow-sm: 0 2px 4px 0 rgb(0 0 0 / 0.08);
    --shadow-md: 0 6px 12px -2px rgb(0 0 0 / 0.12);
    --shadow-lg: 0 12px 24px -4px rgb(0 0 0 / 0.15);
    --shadow-xl: 0 24px 48px -8px rgb(0 0 0 / 0.18);
    --shadow-2xl: 0 32px 64px -16px rgb(0 0 0 / 0.25);
}

body {
    font-family: 'Crimson Text', 'Georgia', serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-light) 30%, var(--beige) 70%, var(--cream) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    animation: fadeIn 0.8s ease-in-out;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   HEADER STYLES
   ======================================== */

header {
    background: linear-gradient(135deg, #008080 0%, #20B2AA 50%, #4682B4 100%);
    color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 12px 48px rgba(0, 128, 128, 0.4), 0 8px 24px rgba(212, 175, 55, 0.2);
    border-bottom: 4px solid var(--gold);
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(218, 176, 104, 0.03) 0%, transparent 50%),
        url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 200"><defs><style>.mandala{fill:none;stroke:%23d4af37;stroke-width:1.5;opacity:0.02;}.arabesque{fill:%23d4af37;opacity:0.01;}.border{fill:none;stroke:%23d4af37;stroke-width:2;opacity:0.015;}</style></defs><g class="mandala"><circle cx="150" cy="100" r="40" class="mandala"/><circle cx="150" cy="100" r="30" class="mandala"/><circle cx="150" cy="100" r="20" class="mandala"/><path d="M130,80 Q150,60 170,80 Q150,100 130,80" class="mandala"/><path d="M170,80 Q190,100 170,120 Q150,100 170,80" class="mandala"/><path d="M170,120 Q150,140 130,120 Q150,100 170,120" class="mandala"/><path d="M130,120 Q110,100 130,80 Q150,100 130,120" class="mandala"/><circle cx="450" cy="100" r="40" class="mandala"/><circle cx="450" cy="100" r="30" class="mandala"/><circle cx="450" cy="100" r="20" class="mandala"/><path d="M430,80 Q450,60 470,80 Q450,100 430,80" class="mandala"/><path d="M470,80 Q490,100 470,120 Q450,100 470,80" class="mandala"/><path d="M470,120 Q450,140 430,120 Q450,100 470,120" class="mandala"/><path d="M430,120 Q410,100 430,80 Q450,100 430,120" class="mandala"/></g></svg>');
    background-size: 600px 200px;
    background-repeat: repeat-x;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent-dark), var(--gold));
    opacity: 0.8;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    gap: 1rem;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.logo-link:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.logo {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    border: 3px solid var(--gold);
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 6s infinite;
}

.logo i {
    font-size: 2rem;
    color: var(--gold);
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0) scale(1);
    transform: translateZ(0) scale(1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.logo-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: left;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.dual-logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-start;
    height: 80px;
}

.dual-logo-container img {
    vertical-align: middle;
    display: block;
}

.quba-header-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0) scale(1);
    transform: translateZ(0) scale(1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.centre-name {
    display: flex;
    flex-direction: column;
}

.centre-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.centre-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.arabic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gold);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.arabic-content {
    text-align: right;
}

.arabic-text {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--accent-dark);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.arabic-translation {
    font-size: 0.8rem;
    opacity: 1;
    font-style: italic;
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.header-social-links {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.header-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.6rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
}

.header-social-link:hover {
    transform: translateY(-3px) scale(1.15);
}

.header-social-link.facebook:hover {
    color: #1877f2;
}

.header-social-link.twitter:hover {
    color: #1da1f2;
}

/* Navigation Social Media Icons */
.nav-social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    padding: 0.5rem;
    border-radius: 8px;
}

.nav-social-link:hover {
    transform: translateY(-2px) scale(1.1);
}

.nav-social-link.facebook:hover {
    color: #1877f2;
}

.nav-social-link.twitter:hover {
    color: #1da1f2;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: none;
    padding: 0 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.92));
    border-radius: 0;
    padding: 0.8rem 1rem;
    backdrop-filter: blur(15px);
    border: none;
    flex: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav li {
    margin: 0 0.1rem;
}

nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(100%);
}

nav a i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    color: var(--accent);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

nav a span {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    font-weight: 700;
    letter-spacing: 0.3px;
}

nav a:hover::before,
nav a.active::before {
    opacity: 1;
    transform: translateY(0);
}

nav a:hover,
nav a.active {
    color: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 155, 97, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

nav a:hover i,
nav a.active i {
    transform: scale(1.1);
    color: var(--cream);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 101;
}

.mobile-menu-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    transform: scale(1.05);
}

.mobile-menu-btn i {
    transition: transform 0.3s ease;
}

.mobile-menu-btn.active i {
    transform: rotate(90deg);
}

/* ========================================
   PAGE STYLES
   ======================================== */

.page {
    display: none;
    padding: 3rem 0;
    min-height: 70vh;
}

.page.active {
    display: block;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, white 0%, var(--gray-50) 100%);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--gold));
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.page-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.page-logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

/* ========================================
   NEWS PANEL
   ======================================== */

.news-panel {
    background: linear-gradient(135deg, white 0%, var(--gray-50) 100%);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.news-details-link {
    color: var(--gold-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-details-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.news-content {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.news-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item.active {
    opacity: 1;
    transform: translateX(0);
}

.news-item.prev {
    transform: translateX(-100%);
}

.news-date {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.news-title {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.news-summary {
    color: var(--text-dark);
    font-size: 0.8rem;
    line-height: 1.4;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.news-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
    background: var(--gray-50);
}

.news-nav-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.news-nav-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.news-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.news-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-100);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--primary-light);
}

/* ========================================
   CARD GRIDS
   ======================================== */

.services-grid,
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card,
.info-card {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-light) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--accent);
    border-opacity: 0.3;
}


.service-card:hover,
.info-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 16px 48px rgba(196, 155, 97, 0.25), var(--shadow-xl);
    border-color: var(--accent);
}

.service-card h3,
.info-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-icon,
.info-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 0.8rem 0;
    position: relative;
    padding-left: 2.5rem;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.service-card li:last-child {
    border-bottom: none;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--cream);
}

.service-card li:hover {
    padding-left: 3rem;
    color: var(--primary);
}

/* ========================================
   ISLAMIC QUOTE STYLES
   ======================================== */

.islamic-quote {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
    color: var(--cream);
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(30, 58, 46, 0.3), var(--shadow-xl);
    border: 2px solid var(--accent);
}


.islamic-quote::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-conic-gradient(
        from 0deg at 50% 50%,
        rgba(255,255,255,0.05) 0deg,
        rgba(255,255,255,0.05) 10deg,
        transparent 10deg,
        transparent 20deg
    );
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.quote-source {
    font-size: 1.1rem;
    opacity: 0.9;
    color: var(--gold);
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ========================================
   EMERGENCY BANNER
   ======================================== */

.emergency-banner {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.emergency-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: emergency-pulse 2s infinite;
}

@keyframes emergency-pulse {
    0% { left: -100%; }
    100% { left: 100%; }
}

.emergency-banner h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.emergency-banner p {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* ========================================
   PRAYER TIMETABLE IMAGE
   ======================================== */

.prayer-timetable-image {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    padding: 0;
    width: 100%;
}

.timetable-img {
    width: 75%;
    max-width: 900px;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    object-fit: contain;
}

.timetable-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-2xl);
}

/* ========================================
   PRAYER TIMES TABLE
   ======================================== */

.prayer-times-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin: 3rem 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.prayer-times-table table {
    width: 100%;
    border-collapse: collapse;
}

.prayer-times-table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
}

.prayer-times-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.prayer-times-table tr:hover {
    background: linear-gradient(135deg, var(--gray-50), rgba(47, 212, 191, 0.05));
}

.prayer-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* ========================================
   CONTACT FORM
   ======================================== */

.contact-form {
    background: white;
    padding: 4rem;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    max-width: 900px;
    margin: 3rem auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--accent);
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--accent);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--cream-light);
    box-shadow: 0 2px 8px rgba(196, 155, 97, 0.1);
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--gold);
    box-shadow: 0 2px 12px rgba(196, 155, 97, 0.15);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    background: white;
    box-shadow: 0 0 0 4px rgba(218, 176, 104, 0.2), 0 4px 12px rgba(196, 155, 97, 0.15);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select::placeholder {
    color: var(--text-light);
    opacity: 0.7;
    font-style: italic;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.8rem;
    display: block;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* ========================================
   ANNOUNCEMENT BANNER
   ======================================== */

.announcement-banner {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.announcement-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: announcement-pulse 3s infinite;
}

@keyframes announcement-pulse {
    0% { left: -100%; }
    100% { left: 100%; }
}

.announcement-icon {
    font-size: 1.5rem;
    color: #fbbf24;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.announcement-content {
    flex: 1;
    font-size: 1rem;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.announcement-content strong {
    color: #fbbf24;
    font-weight: 700;
}

.footer-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
}

.footer-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-map iframe {
    display: block;
    width: 100%;
}

.social-media {
    margin-top: 2rem;
}

.social-media h5 {
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link.facebook:hover {
    color: #1877f2;
}

.social-link.twitter:hover {
    color: #1da1f2;
}

.social-link i {
    font-size: 1.5rem;
    font-weight: 900;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    nav a {
        font-size: 0.8rem;
        padding: 0.7rem 0.8rem;
        gap: 0.4rem;
    }
    
    nav a span {
        display: none;
    }
    
    nav a i {
        font-size: 1.2rem;
    }
    
    .services-grid,
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .page-header {
        padding: 3rem 2rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    header {
        min-height: 120px;
        padding: 1.2rem 0;
    }
    
    .prayer-timetable-image {
        margin: 1.5rem 0;
    }
    
    .timetable-img {
        width: 85%;
        border-radius: 12px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .logo-section {
        gap: 1rem;
    }
    
    .dual-logo-container {
        gap: 0.75rem;
        height: 60px;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .quba-header-logo {
        height: 60px;
    }
    
    
    .logo {
        width: 50px;
        height: 50px;
    }

    .logo i {
        font-size: 1.6rem;
    }
    
    .centre-title {
        font-size: 1.4rem;
    }

    .centre-subtitle {
        font-size: 0.85rem;
    }
    
    .arabic-text {
        font-size: 0.9rem;
    }
    
    .arabic-translation {
        font-size: 0.7rem;
    }
    
    /* Mobile Navigation */
    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1001;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 0;
    }
    
    .nav-container {
        justify-content: flex-end;
        padding: 1rem;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        height: calc(100vh - 4rem);
        background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
        backdrop-filter: blur(20px);
        padding: 1rem 1.5rem 2rem 1.5rem;
        margin: 0;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        overflow-x: hidden;
        animation: slideInFromTop 0.3s ease-out;
        justify-content: flex-start;
        align-items: stretch;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    @keyframes slideInFromTop {
        from {
            opacity: 0;
            transform: translateY(-100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav li {
        margin: 0.4rem 0;
        width: 100%;
        flex-shrink: 0;
    }
    
    nav a {
        justify-content: flex-start;
        padding: 0.9rem 1.2rem;
        width: 100%;
        border-radius: 12px;
        font-size: 1rem;
        background: white;
        box-shadow: var(--shadow-md);
        border: 1px solid rgba(0,0,0,0.05);
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    nav a:hover,
    nav a.active {
        transform: translateX(10px);
        box-shadow: var(--shadow-lg);
    }
    
    nav a i {
        font-size: 1.3rem;
        width: 24px;
    }
    
    nav a span {
        display: inline !important;
    }
    
    .nav-social-links {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .page-header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .services-grid,
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .service-card,
    .info-card {
        padding: 1.5rem;
    }
    
    .service-card h3,
    .info-card h3 {
        font-size: 1.2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }
    
    .islamic-quote {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .quote-text {
        font-size: 1.2rem;
    }
    
    .emergency-banner {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .news-panel {
        margin-bottom: 1.5rem;
    }
    
    .news-header {
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .news-header h3 {
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .news-details-link {
        font-size: 0.8rem;
        align-self: center;
    }
    
    .news-content {
        height: 120px;
    }
    
    .news-item {
        padding: 1rem;
    }
    
    .news-title {
        font-size: 0.95rem;
    }
    
    .news-summary {
        font-size: 0.75rem;
        -webkit-line-clamp: 3;
    }
    
    .news-navigation {
        padding: 0.6rem 1rem;
    }
    
    .news-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .emergency-banner h3 {
        font-size: 1.2rem;
    }
    
    .prayer-times-table th,
    .prayer-times-table td {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-contact-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .announcement-banner {
        margin: 1rem 0;
        padding: 0.8rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .announcement-icon {
        font-size: 1.3rem;
    }
    
    .announcement-content {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .page-header {
        padding: 1.5rem 0.75rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .service-card,
    .info-card {
        padding: 1.25rem;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
    
    .dual-logo-container {
        gap: 0.5rem;
        height: 60px;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .quba-header-logo {
        height: 60px;
    }
    
    
    .logo {
        width: 50px;
        height: 50px;
    }

    .logo i {
        font-size: 1.5rem;
    }
    
    .centre-title {
        font-size: 1.4rem;
    }

    .centre-subtitle {
        font-size: 0.8rem;
    }
    
    nav ul {
        padding: 1rem 1rem 1.5rem;
        height: calc(100vh - 4rem);
        justify-content: flex-start;
    }
    
    nav li {
        margin: 0.2rem 0;
    }
    
    nav a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .prayer-times-table {
        font-size: 0.8rem;
    }
    
    .prayer-times-table th,
    .prayer-times-table td {
        padding: 0.6rem 0.3rem;
    }
}

/* Landscape orientation for tablets */
@media (max-width: 1024px) and (orientation: landscape) {
    .header-content {
        flex-direction: row;
        text-align: left;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    nav ul {
        display: flex;
        flex-direction: row;
        position: static;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        border-radius: 20px;
        padding: 0.5rem;
        box-shadow: var(--shadow-lg);
    }
    
    nav a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}