/* ============================================
   SAMAJ KALYAN SAMITI - DESIGN SYSTEM
   Color Theme: Deep Green, Royal Blue, Gold
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --primary-green: #1E6F5C;
    --primary-green-dark: #155A4A;
    --primary-green-light: #2C8E72;
    --primary-blue: #1F3C88;
    --primary-blue-dark: #162D6B;
    --primary-blue-light: #2A4FA3;
    --gold: #D4AF37;
    --gold-light: #E5C94B;
    --gold-dark: #B8962E;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-muted: #6C757D;
    --text-light: #ADB5BD;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-3d: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
    --gradient-main: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    --gradient-hero: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 60%, #0E1F4D 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

/* ---- Reset & Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Preloader ---- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    position: absolute;
    color: var(--gold);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Top Bar ---- */
.top-bar {
    background: var(--primary-blue-dark);
    padding: 8px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

.top-bar a {
    color: rgba(255,255,255,0.8);
    margin-left: 12px;
    font-size: 1rem;
}

.top-bar a:hover {
    color: var(--gold);
}

.top-bar-left span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.top-bar-left i {
    color: var(--gold);
}

/* ---- Navbar ---- */
.main-navbar {
    background: var(--gradient-main);
    padding: 0.6rem 0;
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.main-navbar.scrolled {
    background: rgba(30, 111, 92, 0.97);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0;
}

.brand-logo .logo-circle {
    width: 45px;
    height: 45px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(212,175,55,0.4);
}

.brand-logo .logo-circle i {
    font-size: 1.3rem;
    color: var(--primary-blue-dark);
}

.brand-name {
    display: block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    line-height: 1.2;
}

.brand-tagline {
    display: block;
    font-size: 0.68rem;
    color: var(--gold-light);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.main-navbar .nav-link {
    color: rgba(255,255,255,0.9);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    margin: 0 3px;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
}

.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    width: 60%;
}

.main-navbar .nav-link:hover {
    color: #fff;
    background: transparent;
}

.main-navbar .nav-link.active {
    color: #fff;
    background: transparent;
}

.main-navbar .nav-link i {
    font-size: 0.8rem;
    margin-right: 2px;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

/* ---- Buttons ---- */
.btn-gold {
    background: var(--gradient-gold);
    color: var(--text-dark);
    font-family: var(--font-primary);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-xl);
    padding: 10px 28px;
    box-shadow: 0 4px 15px rgba(212,175,55,0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,175,55,0.45);
    color: var(--text-dark);
}

.btn-green {
    background: var(--gradient-main);
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-xl);
    padding: 10px 28px;
    box-shadow: 0 4px 15px rgba(30,111,92,0.3);
    transition: var(--transition);
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,111,92,0.45);
    color: #fff;
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: var(--radius-xl);
    padding: 10px 28px;
    background: transparent;
    transition: var(--transition);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-3d {
    box-shadow: var(--shadow-3d), inset 0 -3px 0 rgba(0,0,0,0.15);
    border-radius: var(--radius-md);
}

.btn-3d:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm), inset 0 -1px 0 rgba(0,0,0,0.15);
}

/* ---- Hero Section ---- */
.hero-section {
    background: var(--gradient-hero);
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,224C672,213,768,171,864,149.3C960,128,1056,128,1152,144C1248,160,1344,192,1392,208L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(212,175,55,0.3);
    border-radius: 50%;
    animation: float-particle 15s infinite;
}

.hero-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 12s; }
.hero-particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 2s; animation-duration: 18s; }
.hero-particle:nth-child(3) { left: 35%; top: 30%; animation-delay: 4s; animation-duration: 14s; }
.hero-particle:nth-child(4) { left: 50%; top: 70%; animation-delay: 1s; animation-duration: 16s; }
.hero-particle:nth-child(5) { left: 65%; top: 40%; animation-delay: 3s; animation-duration: 13s; }
.hero-particle:nth-child(6) { left: 80%; top: 15%; animation-delay: 5s; animation-duration: 17s; }
.hero-particle:nth-child(7) { left: 90%; top: 55%; animation-delay: 2.5s; animation-duration: 15s; }
.hero-particle:nth-child(8) { left: 45%; top: 85%; animation-delay: 1.5s; animation-duration: 19s; }

@keyframes float-particle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    50% { transform: translateY(-200px) translateX(50px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.3);
    color: var(--gold-light);
    padding: 6px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-family: var(--font-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title .text-gold {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    max-width: 540px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
}

.hero-illustration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-circle-bg {
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-slow 4s ease-in-out infinite;
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.hero-icon-main {
    font-size: 8rem;
    color: var(--gold);
    opacity: 0.9;
    text-shadow: 0 0 60px rgba(212,175,55,0.3);
}

.hero-floating-card {
    position: absolute;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    color: #fff;
    font-size: 0.85rem;
    font-family: var(--font-primary);
    animation: float 6s ease-in-out infinite;
    white-space: nowrap;
}

.hero-floating-card i {
    color: var(--gold);
    margin-right: 6px;
}

.hero-floating-card:nth-child(2) { top: 10%; right: -10%; animation-delay: 0s; }
.hero-floating-card:nth-child(3) { bottom: 20%; left: -5%; animation-delay: 2s; }
.hero-floating-card:nth-child(4) { bottom: 5%; right: 5%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ---- Section Styles ---- */
.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    background: rgba(30,111,92,0.1);
    color: var(--primary-green);
    padding: 5px 18px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-title span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

/* ---- Feature Cards ---- */
.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px 25px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-main);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    box-shadow: 0 4px 15px rgba(30,111,92,0.25);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
}

.feature-icon i {
    font-size: 1.6rem;
    color: #fff;
}

.feature-card h5 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ---- Course Cards (Udemy Style) ---- */
.course-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.course-card-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.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-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: var(--text-dark);
    padding: 3px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-primary);
}

.course-card-body {
    padding: 20px;
}

.course-card-body h5 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-meta i {
    color: var(--primary-green);
}

.course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.course-price {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-green);
}

.course-price small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    text-decoration: line-through;
    margin-left: 6px;
}

.btn-enroll {
    background: var(--gradient-main);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.btn-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30,111,92,0.3);
    color: #fff;
}

/* ---- Mission Section ---- */
.mission-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.mission-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(212,175,55,0.05);
    border-radius: 50%;
}

.mission-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.mission-card:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-5px);
}

.mission-icon {
    width: 65px;
    height: 65px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

.mission-icon i {
    font-size: 1.5rem;
    color: var(--primary-blue-dark);
}

.mission-card h5 {
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mission-card p {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin: 0;
}

/* ---- Stats Section ---- */
.stats-section {
    background: var(--bg-white);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(30,111,92,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--primary-green);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---- Testimonials ---- */
.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 4rem;
    line-height: 1;
    color: rgba(30,111,92,0.1);
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-family: var(--font-primary);
}

.testimonial-name {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- CTA / Banner Section ---- */
.cta-section {
    background: var(--gradient-main);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border: 40px solid rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cta-section .section-title {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

/* ---- Tagline Rotator ---- */
.tagline-rotator {
    overflow: hidden;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: var(--radius-xl);
    padding: 8px 24px;
    display: inline-block;
}

.tagline-rotator span {
    display: inline-block;
    color: var(--gold-light);
    font-size: 0.9rem;
    font-family: var(--font-primary);
    font-weight: 500;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Footer ---- */
.main-footer {
    background: linear-gradient(180deg, #0E1F3D 0%, #091428 100%);
}

.footer-top {
    padding: 60px 0 40px;
}

.text-gold {
    color: var(--gold) !important;
}

.text-light-muted {
    color: rgba(255,255,255,0.6);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gold);
    color: var(--text-dark);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.footer-heading {
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-contact i {
    margin-top: 3px;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.tagline-footer {
    color: var(--gold);
    font-family: var(--font-primary);
    font-weight: 600;
}

/* ---- Scroll to Top ---- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--gradient-main);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    cursor: pointer;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--gradient-gold);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* ---- Forms ---- */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--font-secondary);
    border: 1.5px solid #E0E0E0;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(30,111,92,0.12);
}

.form-floating label {
    font-family: var(--font-secondary);
    color: var(--text-muted);
}

/* ---- Auth Pages ---- */
.auth-page {
    min-height: 100vh;
    display: flex;
    background: var(--bg-light);
}

.auth-left {
    flex: 1;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border: 60px solid rgba(255,255,255,0.03);
    border-radius: 50%;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-card h2 {
    font-family: var(--font-primary);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.auth-card .auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ============================================================
   COMPACT CENTERED AUTH — replaces split-screen layout
   Used by login.php, admin/login.php, franchise/login.php,
   register.php, forgot-password.php, reset-password.php
   ============================================================ */

.auth-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0c3d2e 0%, #1E6F5C 50%, #1a3470 100%);
}

.auth-center.admin-bg {
    background: linear-gradient(145deg, #0a0e1a 0%, #1a1a2e 50%, #0f3460 100%);
}

.auth-center.franchise-bg {
    background: linear-gradient(145deg, #091428 0%, #0E1F3D 50%, #1F3C88 100%);
}

/* decorative circles */
.auth-center::before {
    content: '';
    position: absolute;
    width: 550px;
    height: 550px;
    border: 80px solid rgba(255,255,255,0.04);
    border-radius: 50%;
    top: -180px;
    right: -180px;
    pointer-events: none;
}

.auth-center::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border: 60px solid rgba(255,255,255,0.035);
    border-radius: 50%;
    bottom: -130px;
    left: -130px;
    pointer-events: none;
}

/* The card */
.auth-card-v2 {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 20px;
    padding: 38px 40px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.45s ease both;
}



/* Logo block inside card */
.auth-logo-top {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.auth-logo-top img {
    height: 70px;
    width: auto;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.12));
}

.auth-logo-top h5 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.auth-logo-top p {
    color: var(--text-muted);
    font-size: 0.83rem;
    margin: 0;
}

/* role badge chip */
.auth-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30,111,92,0.1);
    color: var(--primary-green);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.auth-role-chip.admin { background: rgba(15,52,96,0.12); color: #0f3460; }
.auth-role-chip.franchise { background: rgba(31,60,136,0.12); color: var(--primary-blue); }

/* footer links row */
.auth-footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,0.07);
}

.auth-footer-links a {
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.auth-footer-links a:hover { color: var(--primary-green); }

@media (max-width: 480px) {
    .auth-card-v2 { padding: 28px 20px; }
}


.dashboard-wrapper,
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Header (user/franchise panels) */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h5 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: #fff;
}

/* Sidebar Nav (user/franchise panels) */
.sidebar-nav ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.sidebar-nav ul li.nav-section {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35);
    padding: 18px 20px 6px;
    font-weight: 600;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-family: var(--font-primary);
    font-weight: 500;
    border-radius: 0;
    transition: var(--transition);
    text-decoration: none;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.sidebar-nav ul li a.active {
    border-right: 3px solid var(--gold);
}

.sidebar-nav ul li a i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0E1F3D 0%, #091428 100%);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: var(--transition);
    overflow-y: auto;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-brand {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand .logo-circle {
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.sidebar-brand-text {
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-brand h6 {
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    margin: 0;
}

.sidebar-brand small {
    color: var(--gold);
    font-size: 0.7rem;
}

.sidebar-menu {
    padding: 15px 0;
    list-style: none;
    margin: 0;
}

.sidebar-menu-title {
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 20px 5px;
    font-family: var(--font-primary);
    font-weight: 600;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    font-family: var(--font-primary);
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    color: #fff;
    background: rgba(255,255,255,0.06);
    border-left-color: var(--gold);
}

.sidebar-menu li a i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.sidebar-menu li a .badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    margin-left: auto;
}

.main-content {
    margin-left: 260px;
    flex: 1;
    transition: var(--transition);
}

.dashboard-header {
    background: var(--bg-white);
    padding: 15px 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.dashboard-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.dashboard-body {
    padding: 30px;
}

/* Dashboard Stat Cards */
.dash-stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dash-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 0 0 0 80px;
    opacity: 0.1;
}

.dash-stat-card.green::before { background: var(--primary-green); }
.dash-stat-card.blue::before { background: var(--primary-blue); }
.dash-stat-card.gold::before { background: var(--gold); }

.dash-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.dash-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.dash-stat-icon.green { background: rgba(30,111,92,0.1); color: var(--primary-green); }
.dash-stat-icon.blue { background: rgba(31,60,136,0.1); color: var(--primary-blue); }
.dash-stat-icon.gold { background: rgba(212,175,55,0.1); color: var(--gold-dark); }

.dash-stat-icon i { font-size: 1.3rem; }

.dash-stat-number {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.dash-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---- Tables ---- */
.data-table {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.data-table .table {
    margin: 0;
}

.data-table .table thead th {
    background: var(--bg-light);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 14px 20px;
}

.data-table .table tbody td {
    padding: 14px 20px;
    font-size: 0.92rem;
    vertical-align: middle;
    border-color: rgba(0,0,0,0.04);
}

/* ---- Alerts ---- */
.alert-custom {
    border-radius: var(--radius-sm);
    border: none;
    font-family: var(--font-secondary);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-custom.success { background: rgba(30,111,92,0.1); color: var(--primary-green); }
.alert-custom.error { background: rgba(220,53,69,0.1); color: #DC3545; }
.alert-custom.warning { background: rgba(212,175,55,0.1); color: var(--gold-dark); }

/* ---- Verification Page ---- */
.verify-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.verify-header {
    background: var(--gradient-main);
    padding: 40px;
    text-align: center;
    color: #fff;
}

.verify-body {
    padding: 40px;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-illustration {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        padding: 20px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .auth-left {
        display: none;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        gap: 0.5rem;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .hero-stat {
        flex: 1;
        min-width: 0;
    }
    
    .hero-stat-number {
        font-size: 1.2rem;
    }
    
    .hero-stat-label {
        font-size: 0.7rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .dashboard-body {
        padding: 15px;
    }
    
    .brand-name {
        font-size: 0.95rem;
    }
    
    .brand-tagline {
        font-size: 0.6rem;
    }
}

/* ---- Page Header ---- */
.page-header {
    background: var(--gradient-hero);
    padding: 60px 0;
    text-align: center;
    color: #fff;
    position: relative;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
    background: none;
    justify-content: center;
    margin: 0;
}

.page-header .breadcrumb-item a {
    color: var(--gold);
}

.page-header .breadcrumb-item.active {
    color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

/* ---- Notification Cards ---- */
.notification-card {
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    border-left: 4px solid var(--primary-green);
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.notification-card:hover {
    box-shadow: var(--shadow-md);
}

.notification-card.gold {
    border-left-color: var(--gold);
}

/* ---- Utility ---- */
.bg-gradient-main {
    background: var(--gradient-main);
}

.bg-gradient-hero {
    background: var(--gradient-hero);
}

.logo-circle {
    width: 45px;
    height: 45px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(212,175,55,0.4);
}

.logo-circle i {
    font-size: 1.3rem;
    color: var(--primary-blue-dark);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-green);
    color: #fff;
}
