/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* Color Palette - Premium Islamic Theme */
    --primary: #1B4D3E;
    /* Deep Green */
    --primary-dark: #12352a;
    --secondary: #D4AF37;
    /* Gold */
    --secondary-light: #f3cf55;
    --accent: #F5F5F0;
    /* Off-white for sections */
    --text-dark: #2C3E50;
    --text-light: #ecf0f1;
    --white: #ffffff;
    --error: #e74c3c;
    --success: #2ecc71;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-width: 1200px;

    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(27, 77, 62, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 77, 62, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
}

/* Header Section */
.hero {
    height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 240, 0.9)), url('../img/pattern.png');
    /* Pattern can be added later */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
}

.hero-logo {
    max-width: 300px;
    /* Large logo */
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

/* White Text Variant for Dark Backgrounds */
.navbar.navbar-light .nav-link,
.navbar.navbar-light .nav-logo,
.navbar.navbar-light .hamburger {
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Reset on scroll for light variant */
.navbar.navbar-light.scrolled .nav-link,
.navbar.navbar-light.scrolled .nav-logo,
.navbar.navbar-light.scrolled .hamburger {
    color: var(--text-dark);
    /* Revert to dark when background becomes white */
    text-shadow: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.5);
    /* Visibility on dark bg if needed */
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
    position: relative;
}

/* Signature Pad Fix */
.signature-pad-wrapper canvas {
    width: 100%;
    height: 100%;
    touch-action: none;
    /* Prevent scrolling while drawing */
    display: block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Footer Design */
.footer {
    background: linear-gradient(135deg, var(--primary) 0%, #0e2a22 100%);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-info p {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-info i {
    width: 25px;
    color: var(--secondary);
}

.footer-info a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.credits a {
    color: var(--secondary);
}

/* Scroll to Top Button */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 1.2rem;
    border: none;
    outline: none;
    background-color: var(--secondary);
    color: var(--primary-dark);
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

#scrollTopBtn:hover {
    background-color: var(--white);
    transform: translateY(-3px);
}


/* Header Section Correction */
.hero {
    /* Ensure padding for fixed nav */
    padding-top: 80px;
}

/* Mobile Nav */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        transition: 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

.quran-verse {
    font-size: 1.25rem;
    max-width: 800px;
    margin-bottom: 3rem;
    font-style: italic;
    color: var(--text-dark);
    animation: fadeIn 1.5s ease;
}

.donate-btn-hero {
    font-size: 1.5rem;
    padding: 15px 50px;
    background-color: var(--secondary);
    color: var(--primary-dark);
    animation: pulse 2s infinite;
}

.social-icons {
    margin-top: 3rem;
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon.facebook:hover {
    background-color: #3b5998;
}

.social-icon.instagram:hover {
    background-color: #e4405f;
}

.social-icon.tiktok:hover {
    background-color: #000000;
}

/* Vision Section */
.vision {
    background-color: var(--accent);
    padding: var(--section-padding);
}

.vision-intro,
.vision-outro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.vision-outro {
    font-weight: 500;
    color: var(--primary);
    margin-top: 2rem;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.vision-item {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    font-weight: 500;
}

.vision-item i {
    color: var(--secondary);
    font-size: 1.5rem;
    width: 30px;
}

.vision-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Phases Section */
.phases {
    padding: var(--section-padding);
    background-color: var(--white);
}

.phases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.phase-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
    transition: var(--transition);
}

.phase-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.phase-header {
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.phase-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Donate Section & Forms */
.donate {
    padding: var(--section-padding);
    background-color: var(--white);
}

.donate-wrapper {
    margin-top: 2rem;
}

.donate-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 15px 40px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.donate-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.donate-form-container {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    border: 1px solid #eee;
}

.donate-form-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.address-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.address-group input:first-child {
    grid-column: 1 / -1;
    /* Street name full width */
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    margin-bottom: 10px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
}

.checkbox-container:hover input~.checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gift-aid-box {
    background: #fdfcf5;
    border: 1px solid #efe8c8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.small-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

/* Captcha */
.captcha-group {
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

/* Signature Pad */
.signature-pad-wrapper {
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: transparent;
    /* Changed from white to verify context */
    overflow: hidden;
    margin-bottom: 10px;
    cursor: crosshair;
}

.btn-clear-sig {
    background: #eee;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Bank Details Sidebar */
.bank-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bank-card,
.gift-aid-info {
    background: var(--primary);
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(27, 77, 62, 0.2);
}

.bank-card h3,
.gift-aid-info h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.bank-card p {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.gift-aid-info {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid #eee;
}

.gift-aid-info h4 {
    color: var(--primary);
}

.gift-aid-info ul {
    margin: 15px 0 15px 20px;
    list-style-type: disc;
}

.or-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.or-divider span {
    background: var(--white);
    padding: 0 10px;
    color: #999;
    font-weight: 600;
}

.or-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
    z-index: -1;
}

/* Donate Controls & GiveBrite Button */
.donate-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-control {
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.givebrite-link {
    background-color: #2c3e50;
    /* Soft Black */
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.givebrite-link:hover {
    background-color: #1a252f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.tab-btn.active,
.tab-btn:hover {
    background-color: var(--primary);
    color: white;
}

/* Gift Aid Full Card Design */
.gift-aid-full-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid #eee;
}

.ga-header {
    background: linear-gradient(135deg, #1B4D3E 0%, #0e2a22 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.ga-title h3 {
    color: #D4AF37;
    margin-bottom: 5px;
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
}

.ga-title .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

.ga-content {
    padding: 40px;
}

.ga-grid-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}

.ga-poster-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
}

.ga-block {
    background: #fff;
}

.ga-block h4 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ga-block h4::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--secondary);
    border-radius: 2px;
}

.highlight-bg {
    background: #fdfcf5;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.checklist p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checklist i {
    color: #2ecc71;
    font-size: 1.2rem;
    background: rgba(46, 204, 113, 0.1);
    padding: 5px;
    border-radius: 50%;
}

.ga-footer-quote {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #555;
    font-size: 1.2rem;
    margin-top: 20px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 5px solid var(--secondary);
}

.contact-mini {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    color: #666;
}

.contact-mini strong {
    color: var(--primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

/* Bank Details Full */
.bank-details-full {
    background: linear-gradient(135deg, var(--primary) 0%, #143d30 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(27, 77, 62, 0.2);
    margin-top: 30px;
}

.bank-details-full h3 {
    color: var(--secondary);
    font-family: 'Playfair Display', serif;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.bank-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bank-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.bank-item .lbl {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.bank-item .val {
    display: block;
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.1rem;
    word-break: break-all;
}

/* Responsive */
@media (max-width: 992px) {
    .ga-grid-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ga-img-col {
        order: -1;
        /* Show image above text on mobile if desired, or keep as is */
    }

    .ga-title h3 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .ga-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .ga-title h3 {
        font-size: 1.8rem;
    }

    .donate-controls {
        flex-direction: column;
        width: 100%;
    }

    .btn-control {
        width: 100%;
        justify-content: center;
    }

    .bank-grid {
        grid-template-columns: 1fr;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
    }

    .bank-info-row {
        flex-direction: column;
        text-align: center;
    }

    .bank-info-row .value {
        text-align: center;
        margin-top: 5px;
    }

    .donate-controls {
        flex-direction: column;
    }
}

/* Prayer Times Widget */
.prayer-times {
    background: linear-gradient(to bottom, var(--white), #fdfcf5);
    padding: var(--section-padding);
}

.widget-m-top {
    height: 358px;
    width: 100%;
    max-width: 350px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


/* ===========================
   Eid Festival Section Styles (UPDATED)
   =========================== */
.eid-festival {
    padding: var(--section-padding);
    background-color: var(--white);
    border-bottom: 1px solid #eee;
}

.eid-wrapper {
    display: flex;
    align-items: flex-start; 
    gap: 40px;
    margin-top: 30px;
}

/* Left Column: Image */
.eid-image-col {
    flex: 1;
    text-align: center;
}

.flyer-img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 4px solid var(--secondary);
}

/* Right Column: Text */
.eid-text-col {
    flex: 1.3;
}

/* New Header Group Layout */
.eid-header-group {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.eid-info {
    flex: 1;
}


.eid-qr-container {
    text-align: center;
    background: #fdfcf5;
    padding: 10px;
    border-radius: 10px;
    border: 2px dashed var(--secondary);
    min-width: 160px;
}

.floating-qr {
    width: 180px; 
    height: auto;
    display: block;
    margin: 0 auto;
    animation: floatUpDn 3s ease-in-out infinite;
    cursor: zoom-in; 
    transition: transform 0.3s ease;
}

.floating-qr:hover {
    transform: scale(1.05); 
}

.qr-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 8px;
}

/* Animation Keyframes */
@keyframes floatUpDn {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* Text Styling */
.eid-info h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
    line-height: 1.2;
}

.eid-subtitle {
    font-size: 1.1rem;
    color: var(--secondary);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.eid-details-list {
    margin-bottom: 25px;
    background: #fff;
}

.eid-details-list li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.eid-details-list li i {
    color: var(--secondary);
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.eid-highlights {
    background-color: var(--accent);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.eid-highlights p {
    margin-bottom: 8px;
    font-size: 1rem;
}

.highlight-special {
    color: var(--primary);
    font-weight: 700;
    margin-top: 10px;
    font-size: 1.1rem !important;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .eid-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .eid-header-group {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .eid-qr-container {
        margin-bottom: 20px;
    }

    .floating-qr {
        width: 160px; 
    }
}



/* ===========================
   Legal Pages (Privacy & Cookies)
   =========================== */

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px 0;
    font-size: 0.95rem;
}

.legal-table th, .legal-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background-color: #f8f9fa;
    color: var(--primary);
    font-weight: 700;
    width: 30%; /* Gives the label column less width */
}

.legal-table tr:nth-child(even) {
    background-color: #fdfdfd;
}

.legal-content h3 {
    margin-top: 40px; /* More space before new sections */
}

.legal-content h4 {
    margin-top: 30px;
    font-size: 1.2rem;
    color: var(--secondary);
}



/* ===========================
   Cookie Banner Styles
   =========================== */
.cookie-banner {
    position: fixed;
    bottom: -100%; /* مخفي في البداية */
    left: 0;
    width: 100%;
    background-color: var(--primary); /* اللون الأخضر الغامق */
    color: var(--white);
    padding: 20px 0;
    z-index: 9999; /* لضمان ظهوره فوق كل العناصر */
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    transition: bottom 0.5s ease-in-out;
}

.cookie-banner.show {
    bottom: 0; /* يظهر عند التفعيل */
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--secondary); /* اللون الذهبي */
    text-decoration: underline;
    font-weight: 600;
}

.cookie-content a:hover {
    color: var(--white);
    text-decoration: none;
}

.cookie-buttons .btn-sm {
    padding: 8px 25px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* تنسيق الأزرار داخل البانر */
.cookie-buttons {
    display: flex;
    gap: 10px; /* مسافة بين الزرين */
}

/* زر الرفض (Decline) - شفاف بحدود بيضاء */
.cookie-buttons .btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cookie-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

/* زر القبول (Accept) - الذهبي */
.cookie-buttons .btn-secondary {
    background-color: var(--secondary);
    color: var(--primary-dark);
    border: none;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
}

.cookie-buttons .btn-secondary:hover {
    background-color: var(--white);
    transform: translateY(-2px);
}

/* التوافق مع الجوال */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-buttons .btn-sm {
        width: 100%; /* زر عريض في الموبايل */
    }
}
