/* ================================================
   S.S Public School - Main Stylesheet
   Matching Reference Design
   ================================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --primary-color: #1e3a5f;
    --primary-dark: #152a45;
    --primary-light: #2d4a6f;
    --accent-color: #f97316;
    --accent-hover: #ea580c;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --gray: #94a3b8;
    --dark-gray: #64748b;
    --text-color: #334155;
    --text-light: #cbd5e1;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================
   Top Bar
   ================================================ */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 25px;
}

.top-bar-left a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.top-bar-left a:hover {
    color: var(--accent-color);
}

.top-bar-left i {
    color: var(--accent-color);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.top-bar-right i {
    color: var(--accent-color);
}

/* ================================================
   Header & Navigation
   ================================================ */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
}

.logo-text h1 {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.7rem;
    color: var(--dark-gray);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background-color: var(--light-gray);
}

.nav-btn {
    background-color: var(--accent-color) !important;
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    margin-left: 10px;
}

.nav-btn:hover {
    background-color: var(--accent-hover) !important;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

/* ================================================
   Hero Section
   ================================================ */
.hero{
    background: 
        linear-gradient(
            rgba(10,30,60,0.75),
            rgba(10,30,60,0.85)
        ),
        url("../images/ss_hero_bg.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    display: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-badge i {
    font-size: 0.75rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--accent-color);
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    display: block;
}

.stat-item .label {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.8;
}

.hero-image {
    position: relative;
}

.hero-image-wrapper {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.hero-image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary-color);
}

.live-class-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.live-class-badge span {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

/* ================================================
   News Ticker
   ================================================ */
.news-ticker {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    overflow: hidden;
}

.ticker-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ticker-label {
    background: var(--accent-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-content {
    overflow: hidden;
    flex: 1;
}

.ticker-items {
    display: flex;
    animation: ticker 30s linear infinite;
    gap: 50px;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    color: var(--text-color);
    font-size: 0.9rem;
}

.ticker-item i {
    color: var(--accent-color);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ================================================
   Section Styles
   ================================================ */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.section-header p {
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

.bg-light {
    background-color: var(--light-gray);
}

.bg-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ================================================
   Founder Tribute Section
   ================================================ */
.founder-tribute {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
}

.founder-tribute-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.founder-figure {
    margin: 0 0 30px;
}

.founder-image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: 0 8px 30px rgba(30, 58, 95, 0.18);
}

.founder-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founder-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.founder-years {
    font-size: 0.95rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.founder-description-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 36px;
    box-shadow: var(--shadow);
    margin-top: 10px;
}

.founder-description-card p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.85;
}

@media (max-width: 768px) {
    .founder-image-wrapper {
        width: 160px;
        height: 160px;
    }

    .founder-description-card {
        padding: 24px 20px;
    }

    .founder-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .founder-image-wrapper {
        width: 140px;
        height: 140px;
    }

    .founder-tribute {
        padding: 60px 0;
    }
}

/* ================================================
   FAQ Section
   ================================================ */
.faq-section {
    padding: 80px 0;
    background: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
    font-size: 0.95rem;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    color: var(--dark-gray);
    transition: var(--transition);
    font-size: 0.9rem;
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--dark-gray);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 300px;
}

/* ================================================
   Gallery Section
   ================================================ */
.gallery-section {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    background: var(--light-gray);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 95, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: var(--white);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    font-size: 3rem;
}

.view-gallery-link {
    text-align: center;
    margin-top: 30px;
}

.view-gallery-link a {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-gallery-link a:hover {
    color: var(--accent-hover);
}

/* ================================================
   Map Section
   ================================================ */
.map-section {
    background: var(--primary-color);
    padding: 60px 0;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ================================================
   Footer
   ================================================ */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--white);
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo-icon {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
}

.footer-logo-text {
    font-size: 1rem;
    font-weight: 600;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-section ul li a i {
    color: var(--accent-color);
    width: 16px;
}

.contact-info li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact-info li i {
    color: var(--accent-color);
    width: 18px;
    margin-top: 4px;
}

.school-hours {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.school-hours p {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 15px;
    font-size: 0.9rem;
}

.whatsapp-btn:hover {
    background: #20bd5a;
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--white);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer-bottom a {
    color: var(--accent-color);
}

/* ================================================
   About Page Header with Background Image
   ================================================ */

.about-page-header{
    position: relative;
    background: 
        linear-gradient(
            rgba(10,30,60,0.85),
            rgba(10,30,60,0.75)
        ),
        url("images/ss_about_bg.png");
        
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 120px 0;
    text-align: center;
    color: #fff;
}

/* extra corner darkening effect */
.about-page-header::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background: radial-gradient(
        circle at center,
        rgba(0,0,0,0.2) 20%,
        rgba(0,0,0,0.7) 100%
    );

    z-index: 1;
}

/* keep text above overlay */
.about-page-header .container{
    position: relative;
    z-index: 2;
}

.about-page-header h1{
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.breadcrumb{
    font-size: 16px;
}

.breadcrumb a{
    color: #fff;
    text-decoration: none;
}

.breadcrumb span{
    margin: 0 6px;
}
.about-page-header {
    background: url('../images/ss_about_bg.png') center center / cover no-repeat;
    position: relative;
    padding: 140px 0 80px;
}

.about-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 0;
}

.about-page-header::after {
    display: none;
}

.about-page-header .container {
    position: relative;
    z-index: 1;
}

.about-page-header h1 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* About Welcome Image */
.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* ================================================
   Page Header
   ================================================ */
.page-header.about-page-header{
    background: 
    linear-gradient(rgba(10,30,60,0.75), rgba(10,30,60,0.75)),
    url("../images/ss_about_bg.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 120px 0 60px;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}
/* ====================================
   Admissions Page Banner
==================================== */

.admissions-header{
    position: relative;
    background: url("../images/ss_admission_bg.png") center center / cover no-repeat;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* dark overlay */
.admissions-header::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: linear-gradient(
        rgba(10,30,60,0.75),
        rgba(10,30,60,0.75)
    );
}

/* dark corner effect */
.admissions-header::after{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: radial-gradient(
        circle at center,
        rgba(0,0,0,0.2) 20%,
        rgba(0,0,0,0.7) 100%
    );
}

/* keep content above overlay */
.admissions-header .container{
    position: relative;
    z-index: 2;
}

/* heading style */
.admissions-header h1{
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

/* breadcrumb */
.admissions-header .breadcrumb{
    display: flex;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: 16px;
}

.admissions-header .breadcrumb a{
    color: #fff;
    text-decoration: none;
}
/* ===============================
   Admission CTA Section
================================ */

.admission-cta{
    position: relative;
    background: url("../images/ss_admission_join.png") center center / cover no-repeat;
    padding: 100px 20px;
    text-align: center;
    color: #fff;
}

/* dark overlay */
.admission-cta::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(
        rgba(10,30,60,0.8),
        rgba(10,30,60,0.8)
    );

    z-index: 0;
}

/* keep content above overlay */
.admission-cta .container{
    position: relative;
    z-index: 1;
}

.admission-cta h2{
    font-size: 36px;
    margin-bottom: 15px;
}

.admission-cta p{
    margin-bottom: 25px;
    opacity: 0.9;
    font-size: 18px;
}
/* ================================================
   Faculty Section
   ================================================ */
   .faculty-header{
position:relative;
background:url("../images/ss_faculty_bg.png") center center / cover no-repeat;
height:320px;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
color:#fff;
}

/* overlay */
.faculty-header::before{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:linear-gradient(
rgba(10,30,60,0.75),
rgba(10,30,60,0.75)
);
}

/* darker edges */
.faculty-header::after{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:radial-gradient(
circle at center,
rgba(0,0,0,0.2) 20%,
rgba(0,0,0,0.7) 100%
);
}

.faculty-header .container{
position:relative;
z-index:2;
}


/* first row - 3 cards */
.faculty-card:nth-child(1){
    grid-column:1;
}

.faculty-card:nth-child(2){
    grid-column:3;
}

.faculty-card:nth-child(3){
    grid-column:5;
}

/* second row */
.faculty-card:nth-child(4){
    grid-column:2;
}

.faculty-card:nth-child(5){
    grid-column:4;
}
/* card style */
.faculty-card{
    width:260px;
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
    text-align:center;
    transition:0.3s;
}

.faculty-card:hover{
    transform:translateY(-6px);
}

/* image */
.faculty-image{
    height:250px;
    overflow:hidden;
}

.faculty-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    background:#f5f5f5;
}

/* text */
.faculty-info{
    padding:18px;
}

.faculty-info h3{
    margin-bottom:6px;
    font-size:18px;
    color:#0b3c66;
}

.faculty-info p{
    font-size:14px;
    color:#666;
}
/* ===============================
   Subjects Section
================================ */

.features-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:24px;
margin-top:40px;
}

/* Card */

.feature-card{
background:#fff;
padding:30px 24px;
border-radius:14px;
text-align:center;
box-shadow:0 6px 20px rgba(0,0,0,0.08);
transition:all 0.3s ease;
border:1px solid #e8e8e8;
}

/* Hover */

.feature-card:hover{
transform:translateY(-8px);
box-shadow:0 12px 30px rgba(0,0,0,0.15);
border-color:#ff7a00;
}

/* Icon box */

.feature-icon{
width:65px;
height:65px;
background:#2b4c74;
border-radius:14px;
display:flex;
align-items:center;
justify-content:center;
margin:0 auto 18px;
font-size:24px;
color:#fff;
transition:0.3s;
}

/* Icon hover effect */

.feature-card:hover .feature-icon{
background:#ff7a00;
transform:scale(1.1);
}

/* Title */

.feature-card h3{
font-size:18px;
color:#2b4c74;
margin-bottom:8px;
}

/* Description */

.feature-card p{
font-size:14px;
color:#6b7280;
line-height:1.6;
}

/* Responsive */

@media(max-width:992px){
.features-grid{
grid-template-columns:repeat(2,1fr);
}
}

@media(max-width:576px){
.features-grid{
grid-template-columns:1fr;
}
}
.section-header{
text-align:center;
margin-bottom:40px;
}

.section-header h2{
font-size:32px;
color:#2b4c74;
margin-bottom:10px;
}

.section-header p{
color:#6b7280;
}


/* ================================================
   Facilities Section
   ================================================ */
.facilities-header{
position:relative;
background:url("../images/ss_facilities_bg.png") center center / cover no-repeat;
height:320px;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
color:#fff;
}

/* dark overlay */
.facilities-header::before{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:linear-gradient(
rgba(10,30,60,0.75),
rgba(10,30,60,0.75)
);
}

/* darker corners */
.facilities-header::after{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:radial-gradient(
circle at center,
rgba(0,0,0,0.2) 20%,
rgba(0,0,0,0.7) 100%
);
}

.facilities-header .container{
position:relative;
z-index:2;
}
/* ====================================
   Programs Grid
==================================== */

.programs-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

/* Card */
.program-card{
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 4px 18px rgba(0,0,0,0.08);
    transition:0.3s;
}

/* Image container */
.program-image{
    height:200px;
    overflow:hidden;
}

/* Image style */
.program-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform 0.4s ease, filter 0.4s ease;
}

/* Hover effect */
.program-card:hover{
    transform:translateY(-6px);
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
}
/* Content area */
.program-content{
    padding:22px;
    border-top:1px solid #e6e6e6;
}

/* Title */
.program-content h3{
    font-size:18px;
    margin-bottom:10px;
    color:#1d3b63;
}

/* Paragraph */
.program-content p{
    font-size:14px;
    line-height:1.6;
    color:#555;
}
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.program-content a:hover {
    color: var(--accent-hover);
}
/* ===========================
   Academics Page Banner
=========================== */

.academics-header{
    position: relative;
    background: url("../images/ss_academics_bg.png") center center / cover no-repeat;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

/* dark overlay */
.academics-header::before{
    content: "";
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: linear-gradient(
        rgba(10,30,60,0.75),
        rgba(10,30,60,0.75)
    );
}

/* darker corners */
.academics-header::after{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: radial-gradient(
        circle at center,
        rgba(0,0,0,0.2) 20%,
        rgba(0,0,0,0.7) 100%
    );
}

/* keep text above overlay */
.academics-header .container{
    position: relative;
    z-index: 2;
}

.academics-header h1{
    font-size:48px;
    font-weight:700;
    margin-bottom:10px;
}

.academics-header .breadcrumb{
    display:flex;
    justify-content:center;
    gap:8px;
}

/* ================================================
   Content Box
   ================================================ */
.content-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.content-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

/* ================================================
   About Preview
   ================================================ */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-placeholder {
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 5rem;
}

.about-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--dark-gray);
}

/* ================================================
   Fee Table
   ================================================ */
.fee-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.fee-table th,
.fee-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.fee-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.fee-table tr:hover {
    background-color: var(--light-gray);
}

/* ================================================
   Contact Section
   ================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background-color: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: 1px solid var(--border-color);
}

.info-card i {
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
    width: 24px;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.info-card p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-form-section {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-form-section h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.form-group.has-error .error-message {
    display: block;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #ef4444;
}

.success-message {
    background-color: #22c55e;
    color: var(--white);
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 10px;
}

.success-message.show {
    display: flex;
}

/* ================================================
   Faculty Cards
   ================================================ */
.faculty-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.faculty-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    width: calc(33.333% - 30px);
    max-width: 320px;
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.faculty-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
}

.faculty-info {
    padding: 20px;
}

.faculty-info h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.faculty-info p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* ================================================
   Notices Section
   ================================================ */
.notices-list {
    max-width: 800px;
    margin: 0 auto;
}

.notice-item {
    background: var(--white);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}

.notice-item:hover {
    border-color: var(--accent-color);
}

.notice-date {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
    min-width: 60px;
}

.notice-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.notice-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.notice-content h3 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 5px;
}

.notice-content p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* ================================================
   Lightbox
   ================================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    padding: 20px;
    transition: var(--transition);
}

.lightbox-nav:hover {
    color: var(--accent-color);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ================================================
   Animations
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ================================================
   Responsive Styles
   ================================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .faculty-grid .faculty-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 30px;
        gap: 10px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        width: 90%;
        text-align: center;
        padding: 12px;
    }
    
    .nav-btn {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        min-height: auto;
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-item .number {
        font-size: 1.5rem;
    }
    
    .features-grid,
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-preview {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ticker-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .faculty-grid .faculty-card {
        width: 100%;
        max-width: 320px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .content-box {
        padding: 24px;
    }
    
    .contact-form-section {
        padding: 24px;
    }
}
/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* ================================================
   Gallery Section
   ================================================ */
.gallery-page-header{
    position: relative;
    background: 
    linear-gradient(rgba(10,45,80,0.75), rgba(10,45,80,0.75)),
    url("../images/ss_gallery.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    height: 320px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    color: #ffffff;
}

.gallery-page-header h1{
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.gallery-page-header .breadcrumb{
    font-size: 16px;
    opacity: 0.9;
}

.gallery-page-header .breadcrumb a{
    color: #ffffff;
    text-decoration: none;
}

.gallery-page-header .breadcrumb span{
    margin: 0 6px;
}
/* Breadcrumb */
.breadcrumb{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    font-size:16px;
}

/* Default Home link */
.breadcrumb a{
    color:#ffffff;
    text-decoration:none;
    transition:0.3s;
}

/* Hover effect */
.breadcrumb a:hover{
    color:#ff7a18;   /* orange color */
}

/* Slash */
.breadcrumb span{
    color:#d0d7e2;
}
/* ==============================================
   Notices Page Header Background
============================================== */

.notice-page-header{
    position: relative;
    background: 
        linear-gradient(
            rgba(10,30,60,0.75),
            rgba(10,30,60,0.75)
        ),
        url("../images/ss_notice.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    height: 420px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: #ffffff;
}


/* Dark corner effect */
.notice-page-header::before{
    content: "";
    position: absolute;
    inset: 0;

    background: radial-gradient(
        circle at center,
        rgba(0,0,0,0.15) 20%,
        rgba(0,0,0,0.75) 100%
    );

    z-index: 1;
}


/* Keep text above overlay */
.notice-page-header .container{
    position: relative;
    z-index: 2;
}


/* Heading */
.notice-page-header h1{
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 12px;
}


/* Breadcrumb */
.notice-page-header .breadcrumb{
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
}


/* Home link */
.notice-page-header .breadcrumb a{
    color: white;
    text-decoration: none;
    transition: 0.3s;
}


/* Hover */
.notice-page-header .breadcrumb a:hover{
    color: #ff7a18;
}


/* Slash */
.notice-page-header .breadcrumb span{
    opacity: 0.8;
}
/* =========================================
   Contact Page Header Background
========================================= */

.contact-page-header{
    position: relative;

    background:
        linear-gradient(
            rgba(10,30,60,0.75),
            rgba(10,30,60,0.75)
        ),
        url("../images/ss_contact.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    height: 420px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: #ffffff;
}


/* dark corner effect */
.contact-page-header::before{
    content: "";
    position: absolute;
    inset: 0;

    background: radial-gradient(
        circle at center,
        rgba(0,0,0,0.2) 20%,
        rgba(0,0,0,0.75) 100%
    );

    z-index: 1;
}


/* keep text above overlay */
.contact-page-header .container{
    position: relative;
    z-index: 2;
}


/* heading */
.contact-page-header h1{
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 10px;
}


/* breadcrumb */
.contact-page-header .breadcrumb{
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
}

.contact-page-header .breadcrumb a{
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}

.contact-page-header .breadcrumb a:hover{
    color: #ff7a18;
}

.contact-page-header .breadcrumb span{
    opacity: 0.8;
}
.whatsapp-float{
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 75px;
    height: 75px;
    z-index: 9999;
}

.whatsapp-float img{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: 0.3s;
}

.whatsapp-float img:hover{
    transform: scale(1.1);
}
.management-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

/* Mobile responsive */
@media(max-width:768px){
    .management-grid{
        grid-template-columns:1fr;
    }
}
.top-bar{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
}
body{
    padding-top:40px;
}
header{
    position: sticky;
    top: 35px;   /* height of top bar */
    z-index: 999;
    background: white;
}
/* POPUP OVERLAY */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* CONTAINER */
.popup-container {
  display: flex;
  width: 750px;
  max-width: 95%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  animation: popupAnim 0.4s ease;
}

/* IMAGE SIDE */
.popup-image {
  width: 50%;
}
.popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FORM SIDE */
.popup-form {
  width: 50%;
  padding: 30px;
  position: relative;
}
.popup-form h3 {
  margin-bottom: 5px;
  color: #0A3D62;
}
.popup-form p {
  font-size: 14px;
  margin-bottom: 15px;
}

/* CLOSE BUTTON */
.close-popup {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
}

/* INPUTS */
.popup-form input,
.popup-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
}
.popup-form input:focus,
.popup-form textarea:focus {
  border-color: #0A3D62;
  outline: none;
}

/* SUBMIT BUTTON */
.submit-btn {
  width: 100%;
  background: #0A3D62;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 10px;
  font-size: 16px;
}
.submit-btn:hover:not(:disabled) {
  background: #082f4a;
}
.submit-btn:disabled {
  background: #6c8ba0;
  cursor: not-allowed;
}

/* WHATSAPP BUTTON */
.whatsapp-btn {
  display: block;
  text-align: center;
  background: #25D366;
  color: white;
  padding: 10px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
}
.whatsapp-btn:hover {
  background: #1ebe5d;
}

/* SUCCESS MESSAGE (small green text, if used) */
.success-msg {
  display: none;
  color: green;
  margin-top: 10px;
  text-align: center;
}

/* THANK YOU CARD */
.thankyou-card {
  text-align: center;
  padding: 30px 20px;
}
.thankyou-card h4 {
  color: #0A3D62;
  font-size: 24px;
  margin-bottom: 15px;
}
.thankyou-card p {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* ANIMATION */
@keyframes popupAnim {
  from {
    transform: translateY(-40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .popup-container {
    flex-direction: column;
  }
  .popup-image {
    width: 100%;
    height: 200px;
  }
  .popup-form {
    width: 100%;
  }
}