/* =====================================================
   SANAD APS - Main Stylesheet
   Version 1.0 | sanadaps.it
   ===================================================== */

/* --- CSS Variables --- */
:root {
    --primary: #0F4C81;
    --primary-dark: #0a3560;
    --primary-light: #1a6bb5;
    --gold: #C8A54B;
    --gold-dark: #a88535;
    --gold-light: #d4b668;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark: #1a1a2e;
    --text-muted: #6c757d;
    --border: #e8e8e8;
    --shadow: 0 4px 24px rgba(15, 76, 129, 0.1);
    --shadow-hover: 0 8px 40px rgba(15, 76, 129, 0.2);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: #fff;
    font-size: 15px;
    line-height: 1.75;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--dark);
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; }

/* --- Typography Utilities --- */
.font-heading { font-family: var(--font-heading); }
.text-primary-custom { color: var(--primary) !important; }
.text-gold { color: var(--gold) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-light-gray { background-color: var(--light-gray) !important; }

/* --- Section Title --- */
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; }
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    padding: 4px 14px;
    border: 1.5px solid var(--gold);
    border-radius: 50px;
}
.title-underline {
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 2px;
    margin: 0.75rem auto 0;
}
.title-underline.left { margin: 0.75rem 0 0; }

/* === TOP BAR === */
.top-bar {
    background: var(--primary-dark);
    color: #ffffffbb;
    padding: 7px 0;
    font-size: 0.78rem;
    font-weight: 500;
}
.top-bar-link {
    color: #ffffffbb;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.top-bar-link:hover { color: var(--gold); }
.top-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.72rem;
    transition: var(--transition);
}
.top-social:hover { background: var(--gold); color: #fff; }

/* === NAVBAR === */
.sanad-navbar {
    background: #fff;
    box-shadow: 0 2px 20px rgba(15,76,129,0.1);
    padding: 14px 0;
    transition: var(--transition);
}
.sanad-navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 30px rgba(15,76,129,0.15);
}

/* Brand */
.brand-text {
    display: flex;
    align-items: baseline;
    gap: 1px;
    font-family: var(--font-body);
    font-weight: 800;
}
.brand-s {
    font-size: 2rem;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
}
.brand-anad {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 2px;
}
.brand-aps {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 4px;
}
.brand-logo { height: 52px; }

/* Nav Links */
.sanad-navbar .nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--dark);
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: var(--transition);
}
.sanad-navbar .nav-link:hover,
.sanad-navbar .nav-link.active {
    color: var(--primary);
    background: rgba(15,76,129,0.07);
}

/* Buttons */
.btn-sanad { background: var(--primary); color: #fff; border: none; border-radius: 50px; padding: 12px 32px; font-weight: 600; font-size: 0.88rem; letter-spacing: 0.5px; transition: var(--transition); }
.btn-sanad:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15,76,129,0.35); }
.btn-sanad-gold { background: var(--gold); color: #fff; border: none; border-radius: 50px; padding: 12px 32px; font-weight: 600; font-size: 0.88rem; letter-spacing: 0.5px; transition: var(--transition); }
.btn-sanad-gold:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,165,75,0.35); }
.btn-sanad-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); border-radius: 50px; padding: 10px 28px; font-weight: 600; font-size: 0.88rem; transition: var(--transition); }
.btn-sanad-outline:hover { background: var(--primary); color: #fff; }
.btn-sanad-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); border-radius: 50px; padding: 10px 28px; font-weight: 600; font-size: 0.88rem; transition: var(--transition); }
.btn-sanad-outline-white:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }

/* === HERO SLIDER === */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
}
.hero-slider .swiper-slide {
    position: relative;
    overflow: hidden;
}
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.swiper-slide-active .hero-slide-bg { transform: scale(1.0); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,76,129,0.85) 0%, rgba(15,76,129,0.5) 50%, rgba(0,0,0,0.3) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    height: 100%;
    display: flex;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200,165,75,0.2);
    border: 1px solid rgba(200,165,75,0.5);
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-title span { color: var(--gold-light); }
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.88);
    max-width: 580px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero navigation */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}
.hero-nav-btn:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-50%) scale(1.1); }
.hero-nav-prev { left: 24px; }
.hero-nav-next { right: 24px; }
.hero-pagination { position: absolute; bottom: 30px !important; left: 50% !important; transform: translateX(-50%); z-index: 10; }
.hero-pagination .swiper-pagination-bullet { background: rgba(255,255,255,0.5); opacity: 1; width: 10px; height: 10px; transition: var(--transition); }
.hero-pagination .swiper-pagination-bullet-active { background: var(--gold); width: 28px; border-radius: 5px; }

/* === SERVICES SECTION === */
.section-services { padding: 100px 0; }
.service-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    transform: scaleX(0);
    transition: var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(15,76,129,0.1), rgba(200,165,75,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.6rem;
    color: var(--primary);
    transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--primary); color: #fff; transform: rotateY(180deg); }
.service-card h4 { font-size: 1.1rem; margin-bottom: 0.75rem; }

/* === ACTIVITIES SECTION === */
.section-activities { padding: 100px 0; background: var(--light-gray); }
.activity-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}
.activity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.activity-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.activity-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.activity-card:hover .activity-card-img img { transform: scale(1.08); }
.activity-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
}
.activity-card-body { padding: 24px; }
.activity-date { font-size: 0.78rem; color: var(--gold); font-weight: 600; margin-bottom: 0.5rem; }
.activity-card h4 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
    background: none;
    padding: 0;
}
.btn-read-more:hover { color: var(--gold); gap: 10px; }

/* === COURSES SECTION === */
.section-courses { padding: 100px 0; }
.course-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    position: relative;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.course-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}
.course-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.course-card:hover .course-card-img img { transform: scale(1.08); }
.course-placeholder-icon { font-size: 3.5rem; color: rgba(255,255,255,0.4); }
.online-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: #28a745;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.online-badge::before { content: ''; width: 6px; height: 6px; background: rgba(255,255,255,0.7); border-radius: 50%; display: inline-block; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.course-card-body { padding: 22px; }
.course-category-tag {
    display: inline-block;
    background: rgba(15,76,129,0.08);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}
.course-card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.course-meta { display: flex; gap: 14px; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1rem; }
.course-meta span { display: flex; align-items: center; gap: 4px; }
.btn-accedi {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-align: center;
    padding: 11px;
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
}
.btn-accedi:hover { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; transform: translateY(-2px); }

/* === STATS SECTION === */
.section-stats {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.section-stats::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(200,165,75,0.08);
    pointer-events: none;
}
.stat-item { text-align: center; color: #fff; padding: 24px 16px; }
.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}
.stat-label { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.8); letter-spacing: 1px; text-transform: uppercase; }
.stat-icon { font-size: 1.5rem; margin-bottom: 0.75rem; color: rgba(255,255,255,0.4); }

/* === GALLERY SECTION === */
.section-gallery { padding: 100px 0; background: var(--light-gray); }
.gallery-masonry { column-count: 3; column-gap: 16px; }
.gallery-item { break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery-item img { width: 100%; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,76,129,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: #fff; font-size: 1.5rem; }
@media (max-width: 768px) { .gallery-masonry { column-count: 2; } }
@media (max-width: 480px) { .gallery-masonry { column-count: 1; } }

/* === TESTIMONIALS === */
.section-testimonials { padding: 100px 0; }
.testimonial-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--border);
    position: relative;
    height: 100%;
}
.testimonial-card::before {
    content: '\201C';
    font-family: var(--font-heading);
    font-size: 5rem;
    color: rgba(15,76,129,0.1);
    position: absolute;
    top: 10px; left: 20px;
    line-height: 1;
}
.testimonial-stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 1rem; }
.testimonial-text { font-size: 0.95rem; color: #555; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}
.testimonial-author-info h6 { font-size: 0.9rem; margin-bottom: 2px; }
.testimonial-author-info small { color: var(--text-muted); font-size: 0.78rem; }

/* === ACTIVITIES PAGE (Timeline) === */
.activities-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 80px 0 60px;
    color: #fff;
    text-align: center;
}
.activities-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); }
.timeline { position: relative; padding: 40px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--primary), var(--gold)); transform: translateX(-50%); }
.timeline-item { position: relative; margin-bottom: 56px; width: 50%; padding-right: 50px; }
.timeline-item:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 50px; }
.timeline-dot {
    position: absolute;
    right: -10px;
    top: 24px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--gold);
    z-index: 2;
}
.timeline-item:nth-child(even) .timeline-dot { right: auto; left: -10px; }
.timeline-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.timeline-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.timeline-date { font-size: 0.78rem; font-weight: 700; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.5rem; }
.timeline-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
@media (max-width: 768px) {
    .timeline::before { left: 16px; }
    .timeline-item { width: 100%; padding-left: 52px; padding-right: 0; margin-left: 0 !important; }
    .timeline-dot { left: 6px; right: auto; }
}

/* === COURSES PAGE === */
.courses-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 80px 0 60px; color: #fff; text-align: center; }
.courses-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); }
.category-filter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.category-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--dark);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.category-btn:hover, .category-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* === MEMBERSHIP MODAL === */
.membership-modal .modal-content { border-radius: var(--radius-lg); border: none; }
.membership-modal .modal-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 24px 30px; }
.membership-modal .modal-header .btn-close { filter: invert(1); }
.membership-modal .modal-body { padding: 36px 30px; }
.membership-number-input { font-size: 1.1rem; text-align: center; letter-spacing: 2px; font-weight: 700; text-transform: uppercase; }

/* === COURSE PLAYER === */
.course-player-wrap { background: #000; position: relative; aspect-ratio: 16/9; }
.course-player-wrap video { width: 100%; height: 100%; display: block; }
.lesson-sidebar { background: #fff; border-left: 1px solid var(--border); height: calc(100vh - 70px); overflow-y: auto; }
.lesson-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}
.lesson-item:hover, .lesson-item.active { background: rgba(15,76,129,0.06); border-left: 3px solid var(--primary); }
.lesson-item.active { background: rgba(15,76,129,0.1); }
.lesson-number { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; flex-shrink: 0; }
.lesson-item.active .lesson-number { background: var(--gold); }
.lesson-info h6 { font-size: 0.85rem; margin-bottom: 2px; }
.lesson-info small { font-size: 0.72rem; color: var(--text-muted); }
.course-materials-section { padding: 24px; background: var(--light-gray); border-radius: var(--radius); }
.material-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: var(--transition);
}
.material-item:hover { box-shadow: var(--shadow); }
.material-icon { width: 38px; height: 38px; background: rgba(15,76,129,0.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }

/* === CERTIFICATE VERIFY === */
.verify-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 80px 0; color: #fff; text-align: center; }
.verify-hero h1 { color: #fff; }
.verify-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: 0 10px 60px rgba(15,76,129,0.15);
    max-width: 640px;
    margin: -40px auto 0;
    position: relative;
    z-index: 2;
}
.verify-result-valid { background: linear-gradient(135deg, #d4edda, #f8fff9); border: 2px solid #28a745; border-radius: var(--radius-lg); padding: 32px; margin-top: 24px; }
.verify-result-invalid { background: linear-gradient(135deg, #f8d7da, #fff8f8); border: 2px solid #dc3545; border-radius: var(--radius-lg); padding: 32px; margin-top: 24px; }
.verify-check-icon { width: 70px; height: 70px; border-radius: 50%; background: #28a745; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 1.5rem; }
.verify-x-icon { width: 70px; height: 70px; border-radius: 50%; background: #dc3545; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 1.5rem; }
.cert-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.08); font-size: 0.9rem; }
.cert-detail-row:last-child { border-bottom: none; }
.cert-detail-label { font-weight: 700; color: #555; }
.cert-image-viewer { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--border); cursor: zoom-in; }
.cert-image-viewer img { width: 100%; display: block; }
.status-badge-valid { background: #28a745; color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 14px; border-radius: 50px; }
.status-badge-expired { background: #fd7e14; color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 14px; border-radius: 50px; }
.status-badge-revoked { background: #dc3545; color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 14px; border-radius: 50px; }
.status-badge-suspended { background: #6c757d; color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 14px; border-radius: 50px; }

/* === ABOUT PAGE === */
.about-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 80px 0; color: #fff; }
.about-hero h1 { color: #fff; }
.value-item { display: flex; gap: 20px; margin-bottom: 28px; padding: 24px; background: #fff; border-radius: var(--radius); border-left: 4px solid var(--gold); box-shadow: 0 2px 12px rgba(0,0,0,0.05); transition: var(--transition); }
.value-item:hover { transform: translateX(6px); }
.value-icon { width: 48px; height: 48px; flex-shrink: 0; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; }

/* === JOIN US PAGE === */
.join-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 80px 0; color: #fff; text-align: center; }
.join-hero h1 { color: #fff; }
.join-form-wrap { background: #fff; border-radius: var(--radius-lg); padding: 48px; box-shadow: 0 10px 60px rgba(15,76,129,0.12); }
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: var(--font-body);
}
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,76,129,0.12); }
.form-label { font-size: 0.85rem; font-weight: 700; color: #444; letter-spacing: 0.3px; margin-bottom: 6px; }

/* === CONTACT PAGE === */
.contact-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 80px 0; color: #fff; text-align: center; }
.contact-info-card { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); height: 100%; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-info-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(15,76,129,0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
.map-container { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.map-container iframe { width: 100%; height: 400px; border: none; display: block; }

/* === ADMIN STYLES === */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--dark) 100%);
    position: fixed;
    top: 0; left: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition);
}
.admin-sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}
.admin-sidebar-logo { width: 40px; height: 40px; border-radius: 10px; background: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.admin-sidebar-brand-text strong { display: block; font-size: 1rem; font-weight: 700; color: #fff; }
.admin-sidebar-brand-text small { font-size: 0.65rem; color: rgba(255,255,255,0.5); letter-spacing: 1px; text-transform: uppercase; }
.admin-nav { padding: 16px 0; }
.admin-nav-group { margin-bottom: 4px; }
.admin-nav-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); padding: 12px 20px 6px; }
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}
.admin-nav-link i { width: 18px; text-align: center; font-size: 0.95rem; }
.admin-nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); padding-left: 26px; }
.admin-nav-link.active { color: #fff; background: rgba(200,165,75,0.15); border-right: 3px solid var(--gold); }
.admin-nav-link .badge-count { background: var(--gold); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: 50px; margin-left: auto; }

.admin-content { margin-left: 260px; min-height: 100vh; background: #f0f4f8; }
.admin-topbar { background: #fff; padding: 14px 28px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.admin-topbar h1 { font-size: 1.3rem; margin: 0; }
.admin-main { padding: 28px; }

.stats-card { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); transition: var(--transition); position: relative; overflow: hidden; }
.stats-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stats-card-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; }
.stats-card-number { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; color: var(--dark); line-height: 1; }
.stats-card-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.admin-table { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.admin-table .table { margin: 0; font-size: 0.87rem; }
.admin-table .table thead th { background: var(--light-gray); font-size: 0.73rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); padding: 14px 16px; }
.admin-table .table td { padding: 14px 16px; vertical-align: middle; border-color: var(--border); }

.admin-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.admin-card-header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-card-header h5 { font-size: 1rem; margin: 0; }
.admin-card-body { padding: 24px; }

/* Status badges */
.badge-status-active { background: rgba(40,167,69,0.1); color: #28a745; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; padding: 3px 10px; border-radius: 50px; }
.badge-status-inactive { background: rgba(108,117,125,0.1); color: #6c757d; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; }
.badge-status-pending { background: rgba(255,193,7,0.1); color: #856404; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; }
.badge-status-expired { background: rgba(253,126,20,0.1); color: #fd7e14; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; }

/* === FOOTER === */
.sanad-footer { background: var(--dark); color: rgba(255,255,255,0.75); }
.footer-top { padding: 80px 0 60px; }
.footer-brand-text { font-family: var(--font-body); font-weight: 800; }
.footer-s { font-size: 2.2rem; color: var(--gold); font-family: var(--font-heading); font-weight: 700; line-height: 1; }
.footer-anad { font-size: 1.5rem; color: #fff; font-weight: 800; letter-spacing: 2px; }
.footer-aps { font-size: 0.7rem; letter-spacing: 3px; color: var(--gold); font-weight: 700; text-transform: uppercase; margin-left: 4px; }
.footer-tagline { font-size: 0.78rem; color: rgba(255,255,255,0.45); letter-spacing: 0.5px; margin-top: 4px; }
.footer-desc { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.8; }
.footer-logo { height: 50px; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social-link { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: var(--transition); }
.footer-social-link:hover { background: var(--gold); color: #fff; transform: translateY(-3px); }
.footer-heading { font-size: 0.85rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-links a::before { content: '›'; color: var(--gold); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li { display: flex; gap: 14px; margin-bottom: 16px; font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.footer-contact-list i { color: var(--gold); font-size: 0.9rem; margin-top: 3px; flex-shrink: 0; }
.footer-contact-list a { color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-contact-list a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; font-size: 0.8rem; }
.footer-legal-links a { color: rgba(255,255,255,0.5); font-size: 0.78rem; transition: var(--transition); }
.footer-legal-links a:hover { color: var(--gold); }

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(26,26,46,0.97);
    color: #fff;
    padding: 16px 0;
    z-index: 9999;
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--gold);
}
.cookie-banner a { color: var(--gold); }

/* === BACK TO TOP === */
.btn-back-top {
    position: fixed;
    bottom: 28px; right: 24px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(15,76,129,0.35);
    font-size: 0.9rem;
}
.btn-back-top.visible { opacity: 1; transform: translateY(0); }
.btn-back-top:hover { background: var(--gold); transform: translateY(-3px); }

/* === PAGE HERO (generic) === */
.page-hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); padding: 70px 0 50px; color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); }
.breadcrumb-item a { color: rgba(255,255,255,0.7); }
.breadcrumb-item.active { color: var(--gold); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-content { margin-left: 0; }
}
@media (max-width: 768px) {
    .hero-nav-btn { display: none; }
    .join-form-wrap, .verify-card { padding: 28px 20px; }
    .timeline-item { padding-left: 42px !important; }
}

/* === Animations === */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }

/* === Admin mobile overlay === */
.admin-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; }
.admin-overlay.show { display: block; }

/* === Loading Spinner === */
.sanad-spinner { display: inline-block; width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
