

/* ===============================
   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;
}

/* Fixed navbar scroll offset */
section {
    scroll-margin-top: 90px;
}

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

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

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

/* Active section – subtle professional */
.navbar .nav-link.active {
    font-weight: 600;
    color: #111827 !important;
}

/* Subtle underline only for text links */
.navbar .nav-link.active::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    margin-top: 4px;
}

/* Contact button – no underline / no active effect */
.navbar .btn.active::after {
    display: none;
}

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

/* ===============================
   HERO SECTION
================================= */
.hero-section {
    min-height: 85vh;
    padding-top: 80px;

    /* Background image + overlay */
    background-image:
     
        url("/assets/images/hero-bg.png");

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    /*background-color: #4f46e5;*/
}
.hero-content {
    max-width: 900px;
    margin-top: -60px;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.hero-section p {
    color: #e5e7eb;
    font-size: 1.1rem;
}




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

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

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

#about img {
    max-width: 100%;
}

/* ===============================
   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;
}

/* ===============================
   WHY CHOOSE US
================================= */
.why-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    height: 100%;
}

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

/* ===============================
   CONTACT & ENQUIRY
================================= */
.contact-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.enquiry-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ===============================
   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);
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

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

    .navbar {
        height: auto;
    }
}
/* Intro Abacus Image Control */
.intro-image-wrapper {
    max-width: 380px;   /* image max size */
    width: 100%;
}

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