﻿
/* =====================================================
   AKAL ACADEMY TALLEWAL - MAIN WEBSITE CSS
   Theme: Blue / White / Orange
===================================================== */

:root {
    --primary: #07507B;
    --primary-dark: #063B5B;
    --secondary: #0B6FA4;
    --accent: #F4A62A;
    --heading: #17324D;
    --text: #555555;
    --light: #F3F6F9;
    --white: #FFFFFF;
    --border: #E5EAF0;
    --shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    font-size: 15px;
    line-height: 1.7;
}

a {
    text-decoration: none;
    transition: all .3s ease;
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--heading);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* =====================================================
   TOP BAR
===================================================== */

.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    font-size: 12px;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.top-contact,
.top-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.top-bar a,
.top-bar span {
    color: #FFFFFF;
}

    .top-bar a:hover {
        color: var(--accent);
    }

.top-bar i {
    color: var(--accent);
    margin-right: 5px;
}

.top-links > a {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 5px 13px;
    border-radius: 4px;
    font-weight: 700;
}

    .top-links > a i {
        color: var(--primary-dark);
    }

/* =====================================================
   MAIN HEADER
===================================================== */

.main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0, 0, 0, .07);
}

    .main-header .navbar {
        padding: 10px 0;
    }

/* SCHOOL BRAND AND OFFICIAL LOGO */

.school-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 5px 0;
    margin-right: 20px;
}

.academy-logo {
    display: block;
    width: 400px;
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    object-position: left center;
}

.school-logo {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    background: var(--primary);
    color: var(--white);
    border: 3px solid var(--accent);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

    .school-logo i {
        font-size: 23px;
        line-height: 1;
    }

    .school-logo b {
        font-family: 'DM Sans', sans-serif;
        font-size: 9px;
        line-height: 1;
        margin-top: 2px;
    }

.school-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

    .school-brand-text strong {
        color: var(--primary);
        font-size: 19px;
        font-weight: 800;
        letter-spacing: .5px;
    }

    .school-brand-text small {
        font-size: 9px;
        color: var(--heading);
        font-weight: 700;
        letter-spacing: .3px;
    }

        .school-brand-text small span {
            display: block;
            color: var(--secondary);
            font-weight: 800;
        }

/* =====================================================
   NAVIGATION
===================================================== */

.navbar-nav {
    gap: 2px;
}

    .navbar-nav .nav-link {
        color: var(--heading);
        font-size: 13px;
        font-weight: 700;
        padding: 12px 11px !important;
        position: relative;
    }

        .navbar-nav .nav-link::after {
            content: "";
            position: absolute;
            left: 11px;
            right: 11px;
            bottom: 5px;
            height: 2px;
            background: var(--accent);
            transform: scaleX(0);
            transition: transform .3s ease;
        }

        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link:focus,
        .navbar-nav .nav-link.active {
            color: var(--secondary);
        }

            .navbar-nav .nav-link:hover::after,
            .navbar-nav .nav-link.active::after {
                transform: scaleX(1);
            }

/* DROPDOWN */

.navbar .dropdown-menu {
    border: 0;
    border-radius: 6px;
    padding: 8px 0;
    min-width: 210px;
    margin-top: 8px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--accent);
}

.navbar .dropdown-item {
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--heading);
}

    .navbar .dropdown-item:hover,
    .navbar .dropdown-item:focus {
        background: var(--light);
        color: var(--secondary);
        padding-left: 23px;
    }

/* ADMISSION BUTTON */

.btn-admission {
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 4px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 800;
    border: 2px solid var(--accent);
    white-space: nowrap;
}

    .btn-admission:hover {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
    }

    .btn-admission i {
        margin-left: 6px;
    }

/* MOBILE TOGGLER */

.navbar-toggler {
    border: 1px solid var(--border);
    padding: 7px 10px;
    box-shadow: none !important;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

.navbar-toggler-icon {
    width: 23px;
    height: 23px;
}

/* =====================================================
   COMMON SECTION STYLING
===================================================== */

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

.section-light {
    background: var(--light);
}

.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

    .section-heading .subtitle {
        color: var(--secondary);
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: 12px;
        font-weight: 800;
        display: inline-block;
        margin-bottom: 8px;
    }

    .section-heading h2 {
        font-size: 35px;
        margin-bottom: 12px;
    }

        .section-heading h2 span {
            color: var(--secondary);
        }

    .section-heading p {
        max-width: 650px;
        margin: 0 auto;
        color: var(--text);
    }

/* =====================================================
   BUTTONS
===================================================== */

.btn-school {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    border: 2px solid var(--primary);
}

    .btn-school:hover {
        background: var(--accent);
        color: var(--primary-dark);
        border-color: var(--accent);
    }

.btn-school-outline {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 4px;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

    .btn-school-outline:hover {
        background: var(--primary);
        color: var(--white);
    }

/* =====================================================
   CARDS
===================================================== */

.school-card {
    height: 100%;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all .3s ease;
}

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

    .school-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

.school-card-content {
    padding: 22px;
}

    .school-card-content h4 {
        font-size: 20px;
        margin-bottom: 10px;
    }

/* =====================================================
   FOOTER
===================================================== */

.main-footer {
    background: #082F49;
    color: #D7E3EC;
    padding: 65px 0 0;
}

.footer-content {
    padding-bottom: 45px;
}

.main-footer h5 {
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 23px;
    position: relative;
    padding-bottom: 12px;
}

    .main-footer h5::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 40px;
        height: 3px;
        background: var(--accent);
    }

/* FOOTER BRAND */

.footer-brand {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-academy-logo {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    background: transparent;
}

.footer-logo {
    background: var(--white);
    color: var(--primary);
}

.footer-brand strong {
    display: block;
    color: var(--white);
    font-size: 19px;
    font-weight: 800;
}

.footer-brand small {
    display: block;
    color: #D7E3EC;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.5;
}

    .footer-brand small span {
        display: block;
        color: var(--accent);
    }

.footer-description {
    color: #C2D1DC;
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 20px;
}

/* FOOTER SOCIAL */

.footer-social {
    display: flex;
    gap: 9px;
}

    .footer-social a {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--white);
        background: rgba(255,255,255,.12);
    }

        .footer-social a:hover {
            background: var(--accent);
            color: var(--primary-dark);
        }

/* FOOTER LINKS */

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

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

    .footer-links a {
        color: #C2D1DC;
        font-size: 13px;
    }

        .footer-links a::before {
            content: "\F285";
            font-family: "bootstrap-icons";
            color: var(--accent);
            font-size: 10px;
            margin-right: 8px;
        }

        .footer-links a:hover {
            color: var(--accent);
            padding-left: 4px;
        }

/* FOOTER CONTACT */

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #C2D1DC;
}

.footer-contact i {
    color: var(--accent);
    font-size: 17px;
    flex-shrink: 0;
}

.footer-contact a {
    color: #C2D1DC;
}

    .footer-contact a:hover {
        color: var(--accent);
    }

.footer-map {
    display: inline-block;
    color: var(--accent);
    border: 1px solid rgba(244,166,42,.5);
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

    .footer-map:hover {
        background: var(--accent);
        color: var(--primary-dark);
    }

/* COPYRIGHT */

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.13);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #B6C7D3;
}

    .footer-bottom a {
        color: var(--accent);
        font-weight: 700;
    }

        .footer-bottom a:hover {
            color: var(--white);
        }

/* =====================================================
   BACK TO TOP
===================================================== */

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 43px;
    height: 43px;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    box-shadow: var(--shadow);
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background: var(--primary);
        color: var(--white);
    }

/* =====================================================
   INNER PAGE BREADCRUMB BANNER
===================================================== */

.page-banner {
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    background-image: url('/images/school/breadcrumb-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(3, 39, 62, .94) 0%, rgba(3, 39, 62, .75) 55%, rgba(3, 39, 62, .35) 100% );
}

.page-banner-container {
    position: relative;
    z-index: 2;
    padding-top: 55px;
    padding-bottom: 55px;
}

.page-banner-content {
    max-width: 750px;
}

.page-banner-subtitle {
    display: inline-block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 13px;
}

.page-banner-content h1 {
    color: var(--white);
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 800;
    margin: 0 0 20px;
}

.page-breadcrumb {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
}

    .page-breadcrumb .breadcrumb-item {
        color: var(--white);
        font-size: 13px;
    }

        .page-breadcrumb .breadcrumb-item a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 700;
        }

            .page-breadcrumb .breadcrumb-item a:hover {
                color: var(--white);
            }

        .page-breadcrumb .breadcrumb-item.active {
            color: var(--white);
        }

        .page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
            color: rgba(255,255,255,.75);
        }

.page-banner-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent);
}

/* =====================================================
   RESPONSIVE DESIGN
===================================================== */

@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

@media (max-width: 1199px) {

    .navbar-nav .nav-link {
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 12px;
    }

    .academy-logo {
        width: 320px;
        height: 75px;
    }

    .school-brand-text strong {
        font-size: 17px;
    }

    .school-brand {
        margin-right: 10px;
    }
}

@media (max-width: 991px) {

    .top-bar-inner {
        flex-direction: column;
        gap: 7px;
    }

    .top-contact,
    .top-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 20px;
    }

    .main-header .navbar {
        padding: 10px 0;
    }

    .navbar-collapse {
        padding: 15px 0 5px;
        border-top: 1px solid var(--border);
        margin-top: 12px;
    }

    .navbar-nav {
        align-items: stretch !important;
    }

        .navbar-nav .nav-link {
            padding: 10px 5px !important;
            border-bottom: 1px solid var(--border);
        }

            .navbar-nav .nav-link::after {
                display: none;
            }

    .navbar .dropdown-menu {
        box-shadow: none;
        border-top: 0;
        background: var(--light);
        margin-top: 0;
    }

    .btn-admission {
        display: inline-block;
        margin-top: 12px;
        text-align: center;
    }

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

    .section-heading h2 {
        font-size: 29px;
    }

    .academy-logo {
        width: 300px;
        height: 70px;
    }
}

@media (max-width: 767px) {

    .top-bar {
        font-size: 11px;
    }

    .top-contact,
    .top-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 15px;
    }

    .academy-logo {
        width: 280px;
        height: 65px;
    }

    .school-logo {
        width: 46px;
        height: 46px;
    }

        .school-logo i {
            font-size: 19px;
        }

    .school-brand-text strong {
        font-size: 16px;
    }

    .school-brand-text small {
        font-size: 8px;
    }

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

    .section-heading {
        margin-bottom: 28px;
    }

        .section-heading h2 {
            font-size: 26px;
        }

    .school-card img {
        height: 200px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .page-banner {
        min-height: 220px;
    }

    .page-banner-container {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .page-banner-subtitle {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .page-banner-content h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-breadcrumb .breadcrumb-item {
        font-size: 11px;
    }
}

@media (max-width: 576px) {

    .academy-logo {
        width: 240px;
        height: 60px;
    }

    .footer-academy-logo {
        max-width: 100%;
    }
}

@media (max-width: 480px) {

    .top-contact,
    .top-links {
        flex-direction: column;
        gap: 4px;
    }

    .school-brand {
        gap: 7px;
    }

    .school-brand-text strong {
        font-size: 14px;
    }

    .school-brand-text small {
        font-size: 7px;
    }

    .school-logo {
        width: 42px;
        height: 42px;
    }

    .navbar-toggler {
        padding: 5px 8px;
    }
}

/* =========================================
   ACADEMY IMAGE GALLERY
========================================= */

.academy-gallery-section {
    padding: 75px 0 90px;
    background: #fffdf8;
}

/* GALLERY HEADING */

.gallery-heading {
    margin-bottom: 42px;
}

    .gallery-heading > span {
        display: inline-block;
        color: #b58b2a;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 3px;
        margin-bottom: 12px;
    }

    .gallery-heading h2 {
        font-family: 'Playfair Display', serif;
        font-size: clamp(30px, 4vw, 42px);
        font-weight: 700;
        color: #493b20;
        margin-bottom: 12px;
    }

    .gallery-heading p {
        color: #858078;
        font-size: 15px;
        margin-bottom: 18px;
    }

.gallery-heading-line {
    width: 65px;
    height: 3px;
    background: #c49a32;
    border-radius: 5px;
    margin: auto;
}

/* BACK TO CATEGORY */

.gallery-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 19px;
    border: 1px solid #e8d9b5;
    border-radius: 30px;
    color: #96701c;
    background: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all .3s ease;
}

    .gallery-back-link:hover {
        background: #c49a32;
        color: #fff;
        border-color: #c49a32;
        transform: translateX(-4px);
    }

/* IMAGE CARD */

.gallery-image-card {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(135deg, #fff8e7, #e9d9ae);
    box-shadow: 0 6px 22px rgba(49, 38, 15, .09);
    cursor: pointer;
    border: 1px solid #eee6d5;
    transition: transform .35s ease, box-shadow .35s ease;
}

    .gallery-image-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 16px 32px rgba(150, 112, 28, .2);
    }

    .gallery-image-card img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .7s ease;
    }

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

/* IMAGE OVERLAY */

.gallery-image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( to top, rgba(45, 33, 10, .65), rgba(45, 33, 10, .05) );
    opacity: 0;
    transition: opacity .35s ease;
}

.gallery-image-card:hover .gallery-image-overlay {
    opacity: 1;
}

.gallery-image-overlay i {
    width: 53px;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c49a32;
    color: #fff;
    border-radius: 50%;
    font-size: 23px;
    transform: scale(.7);
    transition: transform .35s ease;
}

.gallery-image-card:hover .gallery-image-overlay i {
    transform: scale(1);
}

/* EMPTY GALLERY */

.gallery-empty-state {
    padding: 65px 20px;
    background: #fff;
    border: 1px dashed #dfc98e;
    border-radius: 18px;
    color: #96701c;
}

    .gallery-empty-state i {
        font-size: 55px;
    }

    .gallery-empty-state h4 {
        color: #493b20;
        font-family: 'Playfair Display', serif;
        font-weight: 700;
    }

    .gallery-empty-state p {
        color: #888;
    }

/* =========================================
   IMAGE LIGHTBOX
========================================= */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 65px 85px;
    background: rgba(12, 12, 12, .96);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

    .gallery-lightbox.active {
        opacity: 1;
        visibility: visible;
    }

.gallery-lightbox-content {
    position: relative;
    max-width: 1100px;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .gallery-lightbox-content img {
        display: block;
        max-width: 100%;
        max-height: 82vh;
        object-fit: contain;
        border-radius: 5px;
        box-shadow: 0 10px 45px rgba(0, 0, 0, .5);
    }

/* CLOSE BUTTON */

.gallery-lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all .3s ease;
}

    .gallery-lightbox-close:hover {
        background: #c49a32;
        border-color: #c49a32;
        transform: rotate(90deg);
    }

/* PREVIOUS / NEXT */

.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: all .3s ease;
}

.gallery-lightbox-prev {
    left: 25px;
}

.gallery-lightbox-next {
    right: 25px;
}

    .gallery-lightbox-prev:hover,
    .gallery-lightbox-next:hover {
        background: #c49a32;
        border-color: #c49a32;
    }

/* IMAGE COUNTER */

.gallery-lightbox-counter {
    position: absolute;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* RESPONSIVE */

@media (max-width: 767px) {

    .academy-gallery-section {
        padding: 50px 0 65px;
    }

    .gallery-image-card {
        height: 190px;
        border-radius: 11px;
    }

    .gallery-image-overlay {
        opacity: 1;
        background: linear-gradient( to top, rgba(45, 33, 10, .35), transparent );
        align-items: flex-end;
        justify-content: flex-end;
        padding: 10px;
    }

        .gallery-image-overlay i {
            width: 36px;
            height: 36px;
            font-size: 16px;
            transform: none;
        }

    .gallery-lightbox {
        padding: 55px 12px;
    }

    .gallery-lightbox-content img {
        max-height: 72vh;
    }

    .gallery-lightbox-prev {
        left: 10px;
    }

    .gallery-lightbox-next {
        right: 10px;
    }

    .gallery-lightbox-prev,
    .gallery-lightbox-next {
        width: 39px;
        height: 39px;
        font-size: 17px;
        background: rgba(0,0,0,.55);
    }

    .gallery-lightbox-close {
        top: 12px;
        right: 12px;
        width: 39px;
        height: 39px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-image-card,
    .gallery-image-card img,
    .gallery-image-overlay,
    .gallery-image-overlay i,
    .gallery-lightbox,
    .gallery-lightbox-close,
    .gallery-lightbox-prev,
    .gallery-lightbox-next {
        transition: none;
    }
}
