/* ===============================
   ROOT VARIABLES (FONT SCALE)
================================= */
:root {
    --font-3xl: clamp(2rem, 4vw, 3rem);
    --font-2xl: clamp(1.6rem, 3vw, 2.2rem);
    --font-xl: clamp(1.25rem, 2vw, 1.5rem);
    --font-lg: 1.1rem;
    --font-md: 1rem;
}

/* ===============================
   GLOBAL RESET & BASE
================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #1f2937;
    background-color: #ffffff;
    line-height: 1.6;
}

/* Anchor scroll fix (navbar height) */
section {
    scroll-margin-top: 90px;
    
}

/* ===============================
   NAVBAR
================================= */
.navbar {
    height: 90px;
}

.navbar .nav-link {
    color: #374151;
    font-weight: 500;
    margin: 0 6px;
    position: relative;
}

.navbar .nav-link:hover {
    color: #111827;
}

.navbar .nav-link.active {
    font-weight: 600;
    color: #111827 !important;
}

.navbar .nav-link.active::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    margin-top: 4px;
}

.navbar .btn {
    font-weight: 500;
}

/* ===============================
   HERO SECTION (AUTO DEVICE BASED)
================================= */

.hero-section {
  	margin-top: 95px !important;
    min-height: 80vh;
    /*padding: 200px 35px 140px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image:
        
        url('/assets/images/hero-bg.jpg'),
linear-gradient(
            rgba(79,70,229,0.85),
            rgba(37,99,235,0.85)
        );
    background-attachment: fixed; /* Optional: keeps image static while scrolling */
 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 🔥 DARK OVERLAY */


/* 🔥 HERO CONTENT ABOVE OVERLAY */
.hero-section * {
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: var(--font-3xl);
    font-weight: 700;
    line-height: 1.2;
    color: #1F2937
;
    margin-bottom: 12px;
}

.hero-title span {
    color: #F59E0B
;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #F9FAFB
;
    margin-bottom: 28px;
}

.hero-btn {
    background: #FEF3C7;
    color: #000;
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: #facc15;
}

/* ===============================
   HEADING CONSISTENCY
================================= */
h1 { font-size: var(--font-3xl); font-weight: 700; }
h2 { font-size: var(--font-2xl); font-weight: 700; }
h3 { font-size: var(--font-xl); font-weight: 600; }
h4 { font-size: var(--font-lg); }
h5 { font-size: var(--font-md); }

/* ===============================
   SECTION COMMON
================================= */
.section-padding {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 40px;
}

/* ===============================
   INTRO / ABOUT
================================= */
#intro-abacus ul li {
    margin-bottom: 10px;
}

.intro-image-wrapper {
    max-width: 380px;
    margin: auto;
}

.intro-image-wrapper img {
    width: 100%;
    height: auto;
}

/* ===============================
   COURSES
================================= */
.course-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-6px);
}

.course-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* ===============================
   GALLERY
================================= */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.gallery-item img {
    width: 100%;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===============================
   FOOTER
================================= */
.footer-section {
    background: #0f172a;
    color: #d1d5db;
    padding: 60px 0 30px;
}

.footer-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-social a {
    color: #ffffff;
    margin-right: 12px;
    font-size: 1.2rem;
}

.footer-section hr {
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-text {
    font-size: 14px;
    line-height: 1.6;
}

/* ===============================
   MOBILE / TABLET FIXES
================================= */
@media (max-width: 768px) {

    .navbar {
        height: auto;
    }

    .hero-section {
        padding-top: 160px;
        padding-bottom: 70px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-btn {
        width: 100%;
        padding: 12px;
    }

    .section-padding {
        padding: 60px 0;
    }
}
