/* ==========================================================================
   Base & Variables
   ========================================================================== */

:root {
    --color-primary: #ff861c;    /* Orange from Logo */
    --color-secondary: #1b2a6b;  /* Blue from Logo */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg-light: #f8f9fa;
    --color-white: #ffffff;
    --color-black: #000000;
    
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Jost', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
    
    --border-radius: 8px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.text-center {
    text-align: center;
}

.text-highlight {
    color: var(--color-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.section-subtitle {
    color: var(--color-primary);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background: rgba(27, 42, 107, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-white);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn--outline:hover {
    background-color: var(--color-white);
    color: var(--color-secondary);
}

/* ==========================================================================
   Header & Top Bar
   ========================================================================== */

.top-bar {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar__left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar__link:hover {
    color: var(--color-primary);
}

.social-link {
    background-color: #25D366; /* WhatsApp Green */
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}

.social-link:hover {
    background-color: #1ebe5d;
}

.header {
        background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

.logo-img {
    height: 70px; /* Adjust based on actual logo */
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--color-secondary);
    padding: 10px 0;
    position: relative;
}

.nav__link:hover, .nav__link--active {
    color: var(--color-primary);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav__link:hover::after, .nav__link--active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-secondary);
    border-radius: 3px;
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero__content {
    color: var(--color-white);
    max-width: 800px;
}

.hero__title {
    font-size: 4rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero__actions {
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about__image-wrapper {
    position: relative;
}

.about__image {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about__experience {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.about__experience .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1;
}

.about__text {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.about__list {
    margin-bottom: 30px;
}

.about__list li {
    margin-bottom: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about__list .check {
    color: var(--color-primary);
    font-weight: bold;
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
        background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--color-primary);
}

.feature-card__icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background-color: rgba(255, 134, 28, 0.1);
    border-radius: 50%;
}

.feature-card__title {
    font-size: 1.5rem;
}

.feature-card__text {
    color: var(--color-text-light);
}

/* ==========================================================================
   Programs Section
   ========================================================================== */

.programs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
        background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.program-card__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.program-card__content {
    padding: 25px;
}

.program-card__title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.program-card__desc {
    color: var(--color-text-light);
}

/* ==========================================================================
   Gallery / Facilities
   ========================================================================== */

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.gallery__item {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 250px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.15);}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery__item:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background-color: var(--color-secondary);
    color: rgba(255,255,255,0.8);
    padding-top: 80px;
}

.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer__logo {
    max-width: 200px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer__heading {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer__links ul li {
    margin-bottom: 10px;
}

.footer__links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-list .icon {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.footer__bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 20px 0;
    text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
    .about__container {
        grid-template-columns: 1fr;
    }
    
    .footer__container {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero__title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav.is-active {
        display: block;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav__link {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
    
    .footer__container {
        grid-template-columns: 1fr;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   Inner Pages Styles
   ========================================================================== */

/* Page Header */
.page-header {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    text-align: center;
}

.page-header__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 42, 107, 0.8); /* Secondary color overlay */
}

.page-header__content {
    position: relative;
    z-index: 1;
}

.page-header__title {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 10px;
}

.page-header__breadcrumb {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Common Page Elements */
.page-content {
    padding: 60px 0;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--color-secondary);
}

.page-text {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 25px; }
.mt-5 { margin-top: 40px; }
.mb-4 { margin-bottom: 25px; }
.mb-5 { margin-bottom: 40px; }

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* About Us Specific */
.mission-vision-card {
        background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    padding: 30px;
    border-radius: var(--border-radius);
    border-top: 4px solid var(--color-primary);
    box-shadow: var(--shadow);
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.card-text {
    color: var(--color-text-light);
}

.features-list {
    margin-top: 20px;
}

.features-list li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.features-list .icon {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Admission Specific */
.admission-info-box {
        background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    padding: 30px;
    border-left: 5px solid var(--color-primary);
    border-radius: var(--border-radius);
}

.note {
    font-size: 0.95rem;
    color: #e74c3c;
}

.info-card {
        background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.highlight-card {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.highlight-card .card-title,
.highlight-card .card-subtitle {
    color: var(--color-white);
}

.highlight-card .card-subtitle {
    font-size: 1.5rem;
    margin-top: 15px;
}

/* Academics Specific */
.academics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.academic-card {
        background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--color-primary);
    transition: var(--transition);
}

.academic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Contact Specific */
.contact-info-block {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-block .icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(27, 42, 107, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.contact-info-block h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-form-container {
        background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(255, 134, 28, 0.2);
}

.btn--block {
    display: block;
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}


/* Gallery Modal / Lightbox */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.gallery-modal__content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.gallery-modal__close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-modal__close:hover,
.gallery-modal__close:focus {
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
}

.gallery__item {
    cursor: pointer;
    position: relative;

    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    height: 250px;}

.gallery__item::after {
    content: 'Click to view';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: rgba(27, 42, 107, 0.8);
    color: white;
    text-align: center;
    padding: 10px 0;
    transition: var(--transition);
    opacity: 0;
}

.gallery__item:hover::after {
    bottom: 0;
    opacity: 1;
}

/* Header Logo Text */
.header__logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.header__logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-secondary);
    line-height: 1.2;
}

/* ==========================================================================
   Form Alerts
   ========================================================================== */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.alert--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Button Loading State */
.btn--loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn--loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #1ebe57;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: #fff;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}
