/* =========================================================
   VISION SMART CAMPUS
   MAIN WEBSITE STYLESHEET
========================================================= */


/* =========================================================
   GLOBAL RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #172b4d;
    background: #ffffff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e9f0;
    position: relative;
    z-index: 1000;
}


/* Header inner */

.header-inner {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: flex;
    align-items: center;

    gap: 12px;

    text-decoration: none;
    color: #172b4d;

    flex-shrink: 0;
}


/* Temporary VSC logo */

.brand-logo {
    width: 46px;
    height: 46px;

    border-radius: 10px;

    background: #173b73;

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
    font-weight: 800;

    letter-spacing: .5px;
}


/* Brand text */

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.2;
}


.brand-text strong {
    font-size: 18px;
    font-weight: 800;

    color: #173b73;
}


.brand-text span {
    margin-top: 4px;

    font-size: 12px;

    color: #64748b;
}


/* =========================================================
   MAIN NAVIGATION
========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 4px;
}


/* Main navigation links */

.main-nav > a,
.dropdown-link {
    display: flex;
    align-items: center;

    gap: 5px;

    padding: 10px 14px;

    color: #172b4d;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    border-radius: 6px;

    transition:
        background .2s ease,
        color .2s ease;
}


.main-nav > a:hover,
.dropdown-link:hover {
    background: #eef4ff;
    color: #173b73;
}


/* =========================================================
   SERVICES DROPDOWN
========================================================= */

.nav-dropdown {
    position: relative;
}


.dropdown-link span {
    font-size: 10px;
}


/* Dropdown box */

.dropdown-menu {
    position: absolute;

    top: 100%;
    left: 0;

    min-width: 240px;

    background: #ffffff;

    border: 1px solid #e5e9f0;

    border-radius: 8px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .12);

    padding: 8px;

    display: none;
}


/* Show dropdown */

.nav-dropdown:hover .dropdown-menu {
    display: block;
}


/* Dropdown links */

.dropdown-menu a {
    display: block;

    padding: 10px 12px;

    color: #172b4d;

    text-decoration: none;

    font-size: 13px;

    font-weight: 500;

    border-radius: 5px;

    transition:
        background .2s ease,
        color .2s ease;
}


.dropdown-menu a:hover {
    background: #eef4ff;
    color: #173b73;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.mobile-menu-btn {
    display: none;

    border: 1px solid #d7dce5;

    background: #ffffff;

    color: #173b73;

    font-size: 22px;

    width: 42px;
    height: 42px;

    border-radius: 6px;

    cursor: pointer;
}


/* =========================================================
   HERO SECTION
========================================================= */

.hero {
    background:
        linear-gradient(
            135deg,
            #f4f8ff 0%,
            #ffffff 100%
        );

    padding: 90px 0 100px;

    overflow: hidden;
}


.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(350px, .95fr);

    align-items: center;

    gap: 70px;
}


/* Hero label */

.hero-label {
    display: inline-block;

    margin-bottom: 18px;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1.5px;

    color: #2f6fed;
}


/* Hero heading */

.hero-content h1 {
    margin: 0 0 22px;

    color: #172b4d;

    font-size: clamp(42px, 5vw, 68px);

    line-height: 1.08;

    font-weight: 800;
}


.hero-content h1 span {
    color: #2f6fed;
}


/* Hero paragraph */

.hero-content > p {
    max-width: 650px;

    margin-bottom: 30px;

    color: #526581;

    font-size: 17px;

    line-height: 1.8;
}


/* =========================================================
   BUTTONS
========================================================= */

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;
}


.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 11px 20px;

    border-radius: 7px;

    font-size: 14px;

    font-weight: 700;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;

    cursor: pointer;
}


.btn:hover {
    transform: translateY(-2px);
}


/* Primary button */

.btn-primary {
    background: #2f6fed;
    color: #ffffff;

    box-shadow:
        0 5px 15px rgba(47, 111, 237, .22);
}


.btn-primary:hover {
    background: #245dcc;
    color: #ffffff;
}


/* Outline button */

.btn-outline {
    background: #ffffff;

    color: #173b73;

    border: 1px solid #cbd5e1;
}


.btn-outline:hover {
    background: #eef4ff;

    border-color: #2f6fed;
}


/* White button */

.btn-white {
    background: #ffffff;
    color: #173b73;

    border: none;
}


.btn-white:hover {
    background: #f1f5f9;

    color: #173b73;
}


/* =========================================================
   HERO VISUAL
========================================================= */

.hero-visual {
    position: relative;

    min-height: 400px;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* Main hero card */

.hero-card {
    width: min(100%, 380px);

    min-height: 280px;

    padding: 40px 35px;

    background: #ffffff;

    border-radius: 18px;

    border: 1px solid #e5e9f0;

    box-shadow:
        0 20px 60px rgba(23, 43, 77, .12);

    text-align: center;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}


.hero-card-icon {
    width: 72px;
    height: 72px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: #eef4ff;

    font-size: 34px;

    margin-bottom: 18px;
}


.hero-card h3 {
    margin-bottom: 10px;

    color: #172b4d;

    font-size: 24px;
}


.hero-card p {
    color: #64748b;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   FLOATING HERO CARDS
========================================================= */

.floating-card {
    position: absolute;

    display: flex;

    align-items: center;

    gap: 10px;

    background: #ffffff;

    padding: 12px 16px;

    border-radius: 10px;

    border: 1px solid #e5e9f0;

    box-shadow:
        0 10px 30px rgba(23, 43, 77, .12);
}


.floating-card > span {
    font-size: 20px;
}


.floating-card strong {
    display: block;

    color: #172b4d;

    font-size: 12px;
}


.floating-card small {
    display: block;

    margin-top: 2px;

    color: #64748b;

    font-size: 10px;
}


/* Attendance */

.attendance-card {
    top: 45px;
    left: 0;
}


/* Transport */

.transport-card {
    right: 0;
    bottom: 45px;
}


/* =========================================================
   GENERAL SECTION
========================================================= */

.section {
    padding: 90px 0;
}


/* Section heading */

.section-heading {
    text-align: center;

    max-width: 720px;

    margin: 0 auto 45px;
}


.section-heading > span,
.section-label {
    display: inline-block;

    margin-bottom: 10px;

    color: #2f6fed;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


.section-heading h2 {
    margin-bottom: 12px;

    color: #172b4d;

    font-size: clamp(30px, 4vw, 42px);

    line-height: 1.2;
}


.section-heading p {
    color: #64748b;

    font-size: 15px;
}


/* =========================================================
   SOLUTION GRID
========================================================= */

.solution-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


.solution-card {
    padding: 32px;

    background: #ffffff;

    border: 1px solid #e5e9f0;

    border-radius: 14px;

    box-shadow:
        0 8px 25px rgba(23, 43, 77, .06);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.solution-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(23, 43, 77, .11);
}


.solution-icon {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    background: #eef4ff;

    border-radius: 12px;

    font-size: 27px;
}


.solution-card h3 {
    margin-bottom: 10px;

    color: #172b4d;

    font-size: 20px;
}


.solution-card p {
    margin-bottom: 18px;

    color: #64748b;

    font-size: 14px;

    line-height: 1.7;
}


.solution-card a {
    color: #2f6fed;

    font-size: 14px;

    font-weight: 700;
}


.solution-card a:hover {
    color: #173b73;
}


/* =========================================================
   WHY SECTION
========================================================= */

.why-section {
    padding: 90px 0;

    background: #f6f9fd;
}


.why-grid {
    display: grid;

    grid-template-columns:
        minmax(0, .9fr)
        minmax(0, 1.1fr);

    gap: 70px;

    align-items: center;
}


.why-grid h2 {
    margin-bottom: 15px;

    color: #172b4d;

    font-size: clamp(30px, 4vw, 42px);

    line-height: 1.2;
}


.why-grid > div > p {
    max-width: 600px;

    margin-bottom: 25px;

    color: #64748b;

    font-size: 15px;
}


/* =========================================================
   FEATURES
========================================================= */

.features {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


.feature {
    display: flex;

    align-items: flex-start;

    gap: 18px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #e5e9f0;

    border-radius: 12px;
}


.feature-number {
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #eef4ff;

    color: #2f6fed;

    font-size: 13px;

    font-weight: 800;
}


.feature h3 {
    margin-bottom: 5px;

    color: #172b4d;

    font-size: 17px;
}


.feature p {
    color: #64748b;

    font-size: 13px;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding: 75px 20px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #173b73,
            #2f6fed
        );

    color: #ffffff;
}


.cta-section h2 {
    max-width: 760px;

    margin: 0 auto 15px;

    font-size: clamp(28px, 4vw, 42px);

    line-height: 1.2;
}


.cta-section p {
    max-width: 650px;

    margin: 0 auto 25px;

    color: rgba(255,255,255,.85);

    font-size: 15px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #101c2e;

    color: #ffffff;

    padding: 55px 0 25px;
}


.footer-grid {
    display: grid;

    grid-template-columns:
        1.4fr
        1fr
        1fr
        1fr;

    gap: 40px;

    margin-bottom: 40px;
}


.footer-brand {
    max-width: 330px;
}


.footer-brand h3 {
    margin-bottom: 10px;

    color: #ffffff;

    font-size: 20px;
}


.footer-brand p {
    color: #aeb9c9;

    font-size: 13px;

    line-height: 1.7;
}


.site-footer h4 {
    margin-bottom: 14px;

    color: #ffffff;

    font-size: 14px;
}


.site-footer a {
    display: block;

    margin-bottom: 8px;

    color: #aeb9c9;

    font-size: 13px;
}


.site-footer a:hover {
    color: #ffffff;
}


.footer-bottom {
    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,.1);

    text-align: center;

    color: #8f9caf;

    font-size: 12px;
}


/* =========================================================
   COMMON PAGE HERO
   For about.php / services.php / contact.php etc.
========================================================= */

.page-hero {
    padding: 75px 20px;

    background:
        linear-gradient(
            135deg,
            #f4f8ff,
            #ffffff
        );

    text-align: center;
}


.page-hero h1 {
    margin-bottom: 12px;

    color: #172b4d;

    font-size: clamp(36px, 5vw, 56px);

    line-height: 1.15;
}


.page-hero p {
    max-width: 700px;

    margin: 0 auto;

    color: #64748b;

    font-size: 16px;
}


/* =========================================================
   CONTENT PAGE
========================================================= */

.content-section {
    padding: 75px 0;
}


.content-section h2 {
    margin-bottom: 15px;

    color: #172b4d;

    font-size: 30px;
}


.content-section h3 {
    margin-top: 30px;

    margin-bottom: 10px;

    color: #172b4d;

    font-size: 21px;
}


.content-section p {
    margin-bottom: 15px;

    color: #526581;

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 40px;
}


.contact-card {
    padding: 30px;

    background: #ffffff;

    border: 1px solid #e5e9f0;

    border-radius: 12px;

    box-shadow:
        0 8px 25px rgba(23,43,77,.06);
}


.contact-card h2 {
    margin-bottom: 15px;

    color: #172b4d;
}


.contact-card p {
    color: #64748b;

    font-size: 14px;

    line-height: 1.7;
}


.contact-item {
    margin-top: 20px;
}


.contact-item strong {
    display: block;

    margin-bottom: 3px;

    color: #172b4d;

    font-size: 14px;
}


.contact-item a {
    color: #2f6fed;

    font-size: 14px;
}


/* =========================================================
   FORMS
========================================================= */

.form-group {
    margin-bottom: 16px;
}


.form-group label {
    display: block;

    margin-bottom: 6px;

    color: #172b4d;

    font-size: 13px;

    font-weight: 700;
}


.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;

    padding: 11px 12px;

    border: 1px solid #d7dce5;

    border-radius: 6px;

    background: #ffffff;

    color: #172b4d;

    font-size: 14px;

    outline: none;
}


.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #2f6fed;

    box-shadow:
        0 0 0 3px rgba(47,111,237,.10);
}


.form-group textarea {
    min-height: 130px;

    resize: vertical;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1000px) {

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .hero-content {
        text-align: center;
    }


    .hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }


    .hero-buttons {
        justify-content: center;
    }


    .hero-visual {
        min-height: 350px;
    }


    .solution-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .why-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 768px) {

    /* Container */

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }


    /* Header */

    .header-inner {
        min-height: 70px;

        flex-wrap: wrap;

        padding-top: 10px;
        padding-bottom: 10px;
    }


    .brand-text span {
        display: none;
    }


    .brand-text strong {
        font-size: 16px;
    }


    .brand-logo {
        width: 40px;
        height: 40px;

        font-size: 13px;
    }


    /* Mobile menu button */

    .mobile-menu-btn {
        display: flex;

        align-items: center;
        justify-content: center;

        margin-left: auto;
    }


    /* Navigation */

    .main-nav {
        width: 100%;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 2px;

        padding-top: 10px;

        border-top: 1px solid #edf0f4;
    }


    .main-nav.show {
        display: flex;
    }


    .main-nav > a,
    .dropdown-link {
        width: 100%;

        box-sizing: border-box;

        padding: 12px;
    }


    /* Mobile dropdown */

    .nav-dropdown {
        width: 100%;
    }


    .dropdown-menu {
        position: static;

        display: block;

        width: 100%;

        min-width: 0;

        box-shadow: none;

        border: none;

        border-radius: 0;

        padding: 0 0 0 15px;

        background: #f8fafc;
    }


    .dropdown-menu a {
        padding: 10px 12px;
    }


    /* Hero */

    .hero {
        padding: 65px 0 70px;
    }


    .hero-content h1 {
        font-size: 42px;
    }


    .hero-content > p {
        font-size: 15px;
    }


    .hero-visual {
        min-height: 320px;
    }


    .hero-card {
        min-height: 250px;

        padding: 30px 25px;
    }


    .floating-card {
        padding: 10px 12px;
    }


    .attendance-card {
        top: 10px;
        left: 0;
    }


    .transport-card {
        right: 0;
        bottom: 10px;
    }


    /* Sections */

    .section {
        padding: 65px 0;
    }


    .why-section {
        padding: 65px 0;
    }


    /* Solution cards */

    .solution-grid {
        grid-template-columns: 1fr;
    }


    /* Contact */

    .contact-grid {
        grid-template-columns: 1fr;
    }


    /* Footer */

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    /* CTA */

    .cta-section {
        padding: 60px 20px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .brand-text strong {
        font-size: 15px;
    }


    .hero-content h1 {
        font-size: 35px;
    }


    .hero-buttons {
        flex-direction: column;

        width: 100%;
    }


    .hero-buttons .btn {
        width: 100%;
    }


    .hero-visual {
        min-height: 290px;
    }


    .hero-card {
        width: 85%;

        min-height: 230px;
    }


    .floating-card {
        transform: scale(.9);
    }


    .attendance-card {
        left: -8px;
    }


    .transport-card {
        right: -8px;
    }


    .section-heading h2 {
        font-size: 30px;
    }


    .page-hero {
        padding: 55px 16px;
    }


    .page-hero h1 {
        font-size: 36px;
    }

}


/* =========================================================
   UTILITY
========================================================= */

.text-center {
    text-align: center;
}


.text-left {
    text-align: left;
}


.mt-20 {
    margin-top: 20px;
}


.mt-30 {
    margin-top: 30px;
}


.mb-20 {
    margin-bottom: 20px;
}


.mb-30 {
    margin-bottom: 30px;
}