/* ===================================
   Modern GSPS Stylesheet
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #570312;
    --secondary-color: #f2cb13;
    --accent-color: #1a5490;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background: #7a0418;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #d4b010;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

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

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

.contact-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.btn-admission {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Navbar */
.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 5px 0;
}

.logo img {
    height: 65px;
    width: auto;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-left: 12px;
    border-left: 3px solid var(--secondary-color);
}

.school-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    padding: 0;
    line-height: 1.1;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

.school-tagline {
    font-size: 0.7rem;
    color: var(--accent-color);
    margin: 0;
    padding: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-menu>li>a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

.nav-menu>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu>li>a:hover::after,
.nav-menu>li>a.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    padding: 15px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 25px;
    color: var(--text-dark);
    font-size: 14px;
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.notice-board-mobile-section {
    display: none;
}

.notice-board-mobile {
    display: none;
}

/* Notice Board */
.notice-board {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 320px;
    max-height: 560px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.notice-header {
    background: linear-gradient(135deg, var(--primary-color), #7a0418);
    color: white;
    padding: 15px 20px;
    text-align: center;
}

.notice-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.notice-content {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.notice-scroller {
    animation: scrollNotices 30s linear infinite;
    padding: 0;
}

.notice-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(87, 3, 18, 0.1);
    transition: background-color 0.3s ease;
}

.notice-item:hover {
    background-color: rgba(242, 203, 19, 0.1);
}

.notice-date {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-dark);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-item p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.notice-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.notice-footer {
    background: rgba(87, 3, 18, 0.05);
    padding: 12px 20px;
    text-align: center;
}

.view-all-notices {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.notice-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.notice-loading p {
    margin: 0;
    font-size: 0.9rem;
}

/* Priority-based styling */
.notice-item.priority-high {
    border-left: 4px solid #dc2626;
}

.notice-item.priority-medium {
    border-left: 4px solid #f59e0b;
}

.notice-item.priority-low {
    border-left: 4px solid #10b981;
}

/* Category-based date colors */
.notice-date.category-holiday {
    background: #dc2626;
    color: white;
}

.notice-date.category-event {
    background: #7c3aed;
    color: white;
}

.notice-date.category-academic {
    background: #059669;
    color: white;
}

.notice-date.category-meeting {
    background: #dc2626;
    color: white;
}

.notice-date.category-admission {
    background: var(--primary-color);
    color: white;
}

.notice-date.category-fee {
    background: #ea580c;
    color: white;
}

.notice-date.category-library {
    background: #0891b2;
    color: white;
}

@keyframes scrollNotices {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* Pause animation on hover */
.notice-board:hover .notice-scroller {
    animation-play-state: paused;
}

.hero-slider {
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(87, 3, 18, 0.8) 0%, rgba(26, 84, 144, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--white);
    max-width: 700px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-content .btn {
    animation: fadeInUp 1s ease 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Controls */
.hero-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: var(--white);
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.hero-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 10px;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.quote {
    background: var(--bg-light);
    padding: 30px;
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 30px 0;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    height: 500px;
}

.about-image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: slideAnimation 15s infinite;
}

.about-slide.active {
    opacity: 1;
    z-index: 1;
}

.about-slide:nth-child(1) {
    animation-delay: 0s;
}

.about-slide:nth-child(2) {
    animation-delay: 5s;
}

.about-slide:nth-child(3) {
    animation-delay: 10s;
}

@keyframes slideAnimation {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    6.67% {
        opacity: 1;
        transform: scale(1);
    }

    33.33% {
        opacity: 1;
        transform: scale(1);
    }

    40% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* Mission & Vision Section */
.mission-vision {
    background: linear-gradient(135deg, rgba(87, 3, 18, 0.05) 0%, rgba(26, 84, 144, 0.05) 100%);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.mission-card,
.vision-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mission-card::before,
.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.mv-icon {
    font-size: 4rem;
    margin-bottom: 25px;
}

.mission-card h3,
.vision-card h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.mission-card p,
.vision-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Leadership Messages Section */
.leadership-messages {
    background: linear-gradient(135deg, rgba(87, 3, 18, 0.03) 0%, rgba(26, 84, 144, 0.03) 100%);
}

.messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 50px;
}

.message-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(87, 3, 18, 0.08);
    max-width: 100%;
}

.message-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.message-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7a0418 100%);
    padding: 40px 35px;
    display: flex;
    align-items: center;
    gap: 25px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.message-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.message-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    background: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.message-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.message-info h3 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.designation {
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message-content {
    padding: 45px 40px;
    flex-grow: 1;
    background: var(--white);
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message-content blockquote {
    background: rgba(242, 203, 19, 0.08);
    padding: 20px 25px;
    border-left: 4px solid var(--secondary-color);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    line-height: 1.7;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 0.98rem;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.message-content p:last-of-type {
    margin-bottom: 0;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    margin: 10px 40px 35px;
    background: linear-gradient(135deg, var(--primary-color), #7a0418);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(87, 3, 18, 0.3);
}

.read-more-link::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.read-more-link:hover {
    background: linear-gradient(135deg, #7a0418, var(--accent-color));
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(87, 3, 18, 0.4);
}

.read-more-link:hover::after {
    transform: translateX(5px);
}

/* Features Section */
.features {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* News & Events */
.posts-horizontal-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px;
    justify-items: center;
}

.post-item {
    width: 100%;
    max-width: 380px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 15px;
    transition: var(--transition);
}

.post-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.post-item iframe {
    width: 100%;
    border-radius: 8px;
}

/* Facebook Lazy Load Placeholder */
.fb-placeholder {
    width: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #f0f2f5 0%, #e4e6eb 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-placeholder iframe {
    width: 100%;
    border: none;
    border-radius: 8px;
}

.fb-loading {
    text-align: center;
    color: #65676b;
}

.fb-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
    animation: pulse-fb 1.5s ease-in-out infinite;
}

.fb-loading p {
    margin: 0;
    font-size: 0.9rem;
}

@keyframes pulse-fb {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .posts-horizontal-container {
        grid-template-columns: 1fr;
    }
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-items: center;
}

.news-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 380px;
    width: 100%;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.news-card iframe {
    width: 100%;
    min-height: 500px;
    border-radius: 8px;
}

/* Social Feed Info */
.social-feed-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.social-buttons {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.social-btn:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.fb-btn {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

.ig-btn {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.yt-btn {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.tw-btn {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.social-btn svg {
    flex-shrink: 0;
}

/* Gallery Preview */
.gallery-preview {
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
}

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

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.text-center {
    text-align: center;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .logo-text {
        display: none;
    }

    .notice-board {
        display: none;
    }

    .notice-board-mobile-section {
        display: block;
        padding: 20px 0;
        background: var(--bg-light);
    }

    .notice-board-mobile-section .notice-board-mobile {
        display: block;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        border: 1px solid rgba(87, 3, 18, 0.1);
    }

    .notice-board-mobile-section .notice-content {
        height: 200px;
        overflow: hidden;
    }

    .notice-board-mobile-section .notice-scroller {
        animation: scrollNotices 25s linear infinite;
    }

    .notice-board-mobile-section:hover .notice-scroller {
        animation-play-state: paused;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        align-items: flex-start;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .messages-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 500px;
    }

    .hero-content {
        height: 500px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 640px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        height: 400px;
    }

    .hero-content {
        height: 400px;
        align-items: center;
        text-align: center;
    }

    .hero-controls button {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    section {
        padding: 50px 0;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .mission-card,
    .vision-card {
        padding: 35px 25px;
    }

    .messages-grid {
        grid-template-columns: 1fr;
    }

    .message-header {
        flex-direction: column;
        text-align: center;
    }

    .message-content {
        padding: 25px 20px;
    }

    .message-content blockquote {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .facebook-feed-wrapper {
        padding: 20px 10px;
    }

    .facebook-feed-wrapper .fb-page {
        width: 100% !important;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        max-width: 100%;
    }

    .news-card iframe {
        min-height: 450px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .logo img {
        height: 50px;
    }

    .hero {
        height: 350px;
    }

    .hero-content {
        height: 350px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

/* Page Hero */
.page-hero {
    position: relative;
    min-height: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    padding: 4rem 0;
}

.page-hero .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-hero .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(87, 3, 18, 0.85), rgba(26, 84, 144, 0.75));
    z-index: 2;
}

.page-hero .container {
    position: relative;
    z-index: 3;
}

.page-hero .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 2rem 1rem;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    color: white;
}

.page-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    color: white;
}

/* Section Intro */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-intro h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.section-intro .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.content-main h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-family: 'Playfair Display', serif;
}

.content-main p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Content Full Width */
.content-full {
    max-width: 900px;
    margin: 0 auto;
}

.content-full h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-family: 'Playfair Display', serif;
}

.content-full p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.25rem;
}

/* Sidebar */
.content-sidebar {
    position: sticky;
    top: 160px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

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

.sidebar-links li {
    margin-bottom: 0.75rem;
}

.sidebar-links a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 1rem;
}

.sidebar-links a:hover {
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    padding-left: 1.5rem;
}

/* Mission & Vision Cards */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.mission-card,
.vision-card {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    color: white;
}

.mission-card h3,
.vision-card h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.mission-card p,
.vision-card p {
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Leadership Messages */
.leadership-message {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.leadership-message.reverse {
    grid-template-columns: 1fr 400px;
}

.leadership-message.reverse .message-image {
    order: 2;
}

.leadership-message.reverse .message-content {
    order: 1;
}

.message-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.message-image img {
    width: 100%;
    height: auto;
    display: block;
}

.message-content {
    padding: 45px 40px;
}

.message-label {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.message-content h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.message-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--accent-color);
    font-style: italic;
}

.signature strong {
    color: var(--primary-color);
    font-size: 1.125rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #004080);
    padding: 5rem 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;
    }

    .leadership-message,
    .leadership-message.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .leadership-message.reverse .message-image,
    .leadership-message.reverse .message-content {
        order: initial;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 300px;
        height: auto;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .section-intro h2 {
        font-size: 2rem;
    }

    .section-intro .lead {
        font-size: 1.125rem;
    }

    .message-content h2 {
        font-size: 1.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.125rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-lg {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-hero {
        min-height: 250px;
        height: auto;
        padding: 3rem 0;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .sidebar-card,
    .mission-card,
    .vision-card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon svg {
        width: 32px;
        height: 32px;
    }
}


/* ============================================
   CBSE DISCLOSURE PAGE STYLES
   ============================================ */

.cbse-content {
    max-width: 1000px;
    margin: 0 auto;
}

.disclosure-section {
    margin-bottom: 4rem;
}

.disclosure-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent-color);
    font-family: 'Playfair Display', serif;
}

.disclosure-section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-family: 'Playfair Display', serif;
}

.info-table {
    overflow-x: auto;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.info-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.info-table thead {
    background: linear-gradient(135deg, var(--primary-color), #7a0418);
    color: white;
}

.info-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: var(--text-dark);
}

.info-table tbody tr:hover {
    background-color: #f9fafb;
}

.info-table tbody tr:last-child td {
    border-bottom: none;
}

.info-table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
    width: 80px;
}

.info-table td:nth-child(2) {
    font-weight: 500;
}

.info-table td:nth-child(3) {
    color: var(--text-light);
}

.doc-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.doc-link:hover {
    background: #1a5490;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 84, 144, 0.3);
}

.info-table small {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .info-table {
        font-size: 0.875rem;
    }

    .info-table th,
    .info-table td {
        padding: 0.75rem 0.5rem;
    }

    .disclosure-section h2 {
        font-size: 1.5rem;
    }

    .disclosure-section h3 {
        font-size: 1.25rem;
    }

    /* Stack table on mobile for better readability */
    .info-table table,
    .info-table thead,
    .info-table tbody,
    .info-table th,
    .info-table td,
    .info-table tr {
        display: block;
    }

    .info-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .info-table tr {
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        overflow: hidden;
    }

    .info-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: left;
    }

    .info-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 0.75rem;
        font-weight: 600;
        color: var(--primary-color);
    }

    .info-table td:first-child {
        background: var(--bg-light);
        font-weight: 700;
        padding-left: 0.75rem;
    }

    .info-table td:first-child:before {
        content: "SL.NO: ";
    }
}

@media (max-width: 480px) {
    .cbse-content {
        padding: 0 0.5rem;
    }

    .disclosure-section {
        margin-bottom: 3rem;
    }

    .doc-link {
        padding: 0.4rem 1rem;
        font-size: 0.875rem;
    }
}


/* ============================================
   ADMISSION PAGE STYLES
   ============================================ */

.doc-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid var(--accent-color);
}

.doc-section h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.doc-section p {
    margin-bottom: 1rem;
}

.doc-section ul {
    margin-top: 1rem;
}

.highlight-note {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #f2cb13;
    margin: 2rem 0;
    font-size: 1.125rem;
}

.highlight-note strong {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .doc-section {
        padding: 1.5rem;
    }

    .highlight-note {
        padding: 1rem;
        font-size: 1rem;
    }
}


/* ============================================
   WORK EDUCATION TABLE STYLES
   ============================================ */

.work-education-table {
    margin: 1.5rem 0 2rem;
}

.work-education-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.work-education-table td {
    padding: 1rem 1.5rem;
    border: 1px solid #e5e7eb;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.work-education-table tr:hover {
    background-color: #f9fafb;
}

.work-education-table td::before {
    content: "✓ ";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .work-education-table table {
        display: block;
    }

    .work-education-table tbody,
    .work-education-table tr {
        display: block;
    }

    .work-education-table tr {
        margin-bottom: 0.5rem;
    }

    .work-education-table td {
        display: block;
        border: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 0.75rem 1rem;
    }

    .work-education-table tr:last-child td:last-child {
        border-bottom: none;
    }
}


/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-info-section h2,
.contact-form-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.contact-info-section p,
.contact-form-section p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.contact-icon svg {
    color: white;
}

.contact-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
}

.contact-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.contact-card a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.modern-contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(26, 84, 144, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: #dc2626;
    background: #fee2e2;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    font-size: 0.95rem;
}

.form-error:not(:empty) {
    display: block;
}

.form-success {
    color: #16a34a;
    background: #dcfce7;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    font-size: 0.95rem;
}

.form-success:not(:empty) {
    display: block;
}

.modern-contact-form .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

/* Map Section */
.map-section {
    margin-top: 0;
    padding: 0;
}

.map-container {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {

    .contact-info-section h2,
    .contact-form-section h2 {
        font-size: 1.75rem;
    }

    .modern-contact-form {
        padding: 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-icon svg {
        width: 24px;
        height: 24px;
    }

    .map-container {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .contact-layout {
        gap: 2rem;
    }

    .modern-contact-form {
        padding: 1.25rem;
    }

    .map-container {
        height: 300px;
    }
}


/* ============================================
   INFRASTRUCTURE PAGE STYLES
   ============================================ */

.infrastructure-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.facility-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2.5rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.facility-image {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 250px;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.facility-card:hover .facility-image img {
    transform: scale(1.05);
}

.facility-content {
    padding: 2rem 2rem 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.facility-content h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.facility-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* Additional Facilities */
.additional-facilities {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.facility-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.facility-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.facility-icon svg {
    color: white;
}

.facility-item h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
}

.facility-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .facility-card {
        grid-template-columns: 300px 1fr;
        gap: 2rem;
    }

    .additional-facilities {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .facility-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .facility-image {
        min-height: 200px;
    }

    .facility-content {
        padding: 2rem;
    }

    .facility-content h3 {
        font-size: 1.5rem;
    }

    .additional-facilities {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .infrastructure-grid {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .facility-content {
        padding: 1.5rem;
    }

    .facility-icon {
        width: 60px;
        height: 60px;
    }

    .facility-icon svg {
        width: 30px;
        height: 30px;
    }
}


/* ============================================
   GALLERY PAGE STYLES
   ============================================ */

/* Gallery Filter */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 3rem 0;
}

.filter-btn {
    padding: 0.75rem 2rem;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(87, 3, 18, 0.3);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    font-family: 'Playfair Display', serif;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin: 0;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 8px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .gallery-filter {
        gap: 0.75rem;
    }

    .filter-btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 0.75rem 1rem;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }
}