/* ===== FONT DEFINITIONS ===== */
/* 
   Design fonts from Figma:
   - MyriadPro-Regular: Nav links, search (using Source Sans Pro as web alternative)
   - CenturyGothic / CenturyGothic-Bold: Body text, paragraphs, headings
   - BentonSans-Black: Feature card titles, big headings (using Century Gothic Bold as fallback)
*/

@font-face {
    font-family: 'Century Gothic';
    src: url('/fonts/centurygothic.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Century Gothic';
    src: url('/fonts/centurygothic_bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html, body {
    font-family: 'Century Gothic', 'Questrial', sans-serif;
}

/* Nav links use Myriad Pro (Source Sans Pro as web fallback) */
.nav-link-main,
.top-bar-link,
.mobile-nav-link {
    font-family: 'Source Sans Pro', 'Myriad Pro', sans-serif;
}

/* Section headings use Century Gothic Bold */
.section-heading,
.hero-title,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Century Gothic', sans-serif;
    font-weight: 700;
}

/* Feature card titles use BentonSans-Black style (bold condensed look) */
.feature-title,
.feature-title-small {
    font-family: 'Century Gothic', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1:focus {
    outline: none;
}

/* School-themed colors */
a, .btn-link {
    color: #0066cc;
}

.btn-primary {
    color: #fff;
    background-color: #0066cc;
    border-color: #0052a3;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #0066cc;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* ===== NEW DESIGN SYSTEM ===== */

/* Hero Section */
.owps-hero-section {
    position: relative;
    background-image: url('/images/hero-background.jpg');
    background-size: cover;
    background-position: 90% center;
    background-color: #000;
    color: white;
    padding: 4rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

@media (max-width: 991px) {
    .owps-hero-section {
        min-height: 60vh;
        background-position: 90% center;
    }
}

@media (max-width: 576px) {
    .owps-hero-section {
        min-height: 50vh;
        padding: 3rem 0;
        background-position: 94% center;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 0;
    color: #ffffff;
    max-width: 500px;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
}

.btn-owps-primary {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-owps-primary:hover {
    background-color: #333333;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-owps-secondary {
    background-color: transparent;
    color: #f1f2f2;
    border: 2px solid #f1f2f2;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-owps-secondary:hover {
    background-color: #f1f2f2;
    color: #2c3e50;
    transform: translateY(-2px);
}

.btn-play-video {
    background-color: transparent;
    border: none;
    padding: 1rem 2rem;
    color: #ffffff;
    font-family: 'Century Gothic', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-play-video:hover {
    transform: scale(1.05);
}

.btn-play-video img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Hero content mobile positioning */
@media (max-width: 991px) {
    .hero-content .row {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content .col-lg-7,
    .hero-content .col-lg-5 {
        width: 100%;
        justify-content: center !important;
    }
    
    .hero-content .col-lg-5 {
        margin-top: 2rem;
    }
    
    .hero-title {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .btn-play-video {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .btn-play-video img {
        width: 48px;
        height: 48px;
    }
    
    .hero-content .col-lg-5 {
        margin-top: 1.5rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}


/* Main Content Wrapper */

.star-content {
    padding: 16px;
}
/* Notice Board (replaces Open Day banner) */
.notice-board-section {
    background: #ffffff;
    padding: 36px 0;
}

.notice-board-section .section-heading {
    margin-bottom: 24px;
    color: #111111;
}

.notice-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.notice-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.notice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.notice-body {
    padding: 20px 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.notice-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 8px 0 12px;
    letter-spacing: 1px;
}

.notice-text {
    color: #333333;
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 14px;
}

.notice-btn {
    display: inline-block;
    padding: 8px 26px;
    border-radius: 24px;
    background: #333333;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

@media (max-width: 991px) {
    .notice-image {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .notice-image {
        height: 160px;
    }

    .notice-body {
        padding: 16px;
    }

    .notice-btn {
        padding: 8px 20px;
    }
}

/* Feature Grid Section */
.feature-grid-section {
    padding: 21px;
    background: #ffffff;
}

.feature-grid-container {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: stretch;
}

.feature-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.feature-card-large,
.feature-card {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
}

.feature-card-large {
    width: calc((100% - 20px) / 3);
    flex-shrink: 0;
}

.feature-card {
    /* Small card aspect ratio: 208x149 = ~1.4:1 */
    aspect-ratio: 1.4 / 1;
    flex: 1;
}

.feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
    transition: all 0.3s ease;
}

.feature-card-large:hover .feature-overlay,
.feature-card:hover .feature-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.feature-content {
    position: relative;
    z-index: 2;
}

.feature-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.feature-title-small {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Placeholder backgrounds for features */
.feature-our-school {
    background-image: url('/images/feature-our-school.jpg');
}

.feature-academics {
    background-image: url('/images/feature-academics.jpg');
}

.feature-sports {
    background-image: url('/images/feature-sports.jpg');
}

.feature-culture {
    background-image: url('/images/feature-arts-culture.jpg');
}

.feature-school-life {
    background-image: url('/images/feature-school-life.jpg');
}

/* About Our School Section */
.about-school-section {
    background-color: #f5f5f5;
    padding: 60px 0;
}

.about-school-section .section-heading {
    font-family: 'Century Gothic', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #111111;
    text-transform: none;
    margin-bottom: 3rem;
}

.about-school-text {
    font-family: 'Source Sans Pro', 'Myriad Pro', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.8;
    color: #333333;
    text-align: center;
}

.btn-about-read-more {
    display: inline-block;
    background-color: #333333;
    color: #ffffff;
    padding: 10px 32px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-about-read-more:hover {
    background-color: #111111;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .about-school-section .section-heading {
        font-size: 1.75rem;
    }

    .about-school-text {
        font-size: 0.95rem;
    }
}

.executive-bio-card:hover .executive-image img {
    transform: scale(1.08);
}

.executive-info {
    padding: 1.5rem 1.25rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.executive-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 0.75rem;
}

.executive-description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #6d6e71;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Executive Section Responsive */
@media (max-width: 1199px) {
    .executive-image {
        height: 280px;
    }
    
    .executive-section .col-lg-3 {
        width: 24%;
    }
}

@media (max-width: 991px) {
    .executive-image {
        height: 260px;
    }
    
    .executive-section .section-heading {
        font-size: 1.3rem;
    }
    
    .executive-section .col-lg-3 {
        width: 48%;
        margin-bottom: 1.5rem;
    }
    
    .executive-info {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 767px) {
    .executive-image {
        height: 300px;
    }
    
    .executive-section .col-lg-3 {
        width: 100%;
        max-width: 380px;
        margin: 0 auto 1.5rem;
    }
    
    .executive-section {
        padding: 3rem 0;
    }
}

@media (max-width: 575px) {
    .executive-image {
        height: 280px;
    }
    
    .executive-name {
        font-size: 1rem;
    }
    
    .executive-description {
        font-size: 0.8rem;
    }
    
    .executive-section .col-lg-3 {
        max-width: 320px;
    }
}

/* Campus Tour Section */
.campus-tour-section {
    background: #414042;
    padding: 4rem 0;
    min-height: 450px;
    display: flex;
    align-items: center;
}

.campus-tour-section .container {
    width: 100%;
}

.campus-tour-section .section-heading {
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}

.campus-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 80px;
    min-height: 300px;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 100%;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 7.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav-btn:hover {
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.campus-gallery {
    flex: 1;
    overflow: hidden;
}

.campus-gallery .row {
    flex-wrap: nowrap;
    margin: 0 -8px;
}

.campus-gallery .col-lg-3 {
    flex: 0 0 25%;
    padding: 0 8px;
}

.campus-image-card {
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.campus-image-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.campus-image-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

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

/* Campus Tour Responsive */
@media (max-width: 1199px) {
    .campus-image-card img {
        height: 240px;
    }
}

@media (max-width: 991px) {
    .campus-carousel-wrapper {
        padding: 0 50px;
    }
    
    .campus-gallery .col-lg-3 {
        flex: 0 0 50%;
    }
    
    .campus-gallery .row {
        flex-wrap: wrap;
        gap: 16px 0;
    }
    
    .campus-image-card img {
        height: 220px;
    }
    
    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .campus-carousel-wrapper {
        padding: 0 40px;
    }
    
    .campus-image-card img {
        height: 200px;
    }
    
    .campus-tour-section .section-heading {
        font-size: 1.2rem;
    }
}

@media (max-width: 575px) {
    .campus-gallery .col-lg-3 {
        flex: 0 0 100%;
    }
    
    .campus-image-card img {
        height: 220px;
    }
    
    .carousel-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 1.5rem;
    }
    
    .campus-carousel-wrapper {
        padding: 0 35px;
    }
}

/* News Section */
.news-section {
    background-color: #f5f5f5;
    padding: 3rem 0;
}

.news-card-modern {
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.news-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e0e0e0;
}

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

.news-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-content .news-excerpt {
    flex: 1;
}

.news-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #6d6e71;
    margin-bottom: 1rem;
}


/* News Slider Dots */
.news-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.news-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c4c4c4;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.news-dot.active {
    background: #25334F;
    transform: scale(1.2);
}

.news-dot:hover {
    background: #25334F;
}

/* News slider fade-in animation on slide change */
@keyframes newsSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.news-slider .row {
    animation: newsSlideIn 0.35s ease;
}

/* ===== END NEW DESIGN SYSTEM ===== */

/* ===== ABOUT OUR SCHOOL PAGE ===== */

/* Page wrapper */
.os-page-wrapper {
    padding: 40px 80px 0;
}

@media (max-width: 991px) {
    .os-page-wrapper {
        padding: 24px 48px 0;
    }
}

@media (max-width: 576px) {
    .os-page-wrapper {
        padding: 16px 32px 0;
    }
}

/* Hero */
.os-hero {
    width: 100%;
    overflow: hidden;
    display: block;
    line-height: 0;
}

.os-hero img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Intro Section */
.os-intro-section {
    background: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.os-intro-title {
    font-family: 'Century Gothic', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 2rem;
}

.os-intro-body {
    /* wider on desktop to occupy more horizontal space */
    max-width: 1100px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333333;
    text-align: center;
}

.os-intro-body p {
    margin-bottom: 1.25rem;
}

.os-intro-body p:last-child {
    margin-bottom: 0;
}

/* Feature 2x2 Grid */
.os-feature-grid-section {
    background: #ffffff;
    padding: 60px 0 56px;
    border-bottom: 2px solid #111111;
}

.os-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px 48px;
}

.os-feature-card {
    display: flex;
    flex-direction: column;
}

.os-fc-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-bottom: 28px;
}

.os-fc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.os-fc-body {
    flex: 1;
    padding: 0 20px;
}

.os-feature-heading {
    font-family: 'Century Gothic', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #111111;
    line-height: 1.2;
    margin-bottom: 1.1rem;
}

.os-feature-intro-text {
    font-size: 0.9rem;
    line-height: 1.75;
    color: #333333;
    margin-bottom: 1.1rem;
}

.os-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.os-bullet-list li {
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #333333;
    margin-bottom: 0.9rem;
}

.os-bullet-list li:last-child {
    margin-bottom: 0;
}

.os-bullet-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    top: 0;
    color: #111111;
    font-size: 1rem;
    line-height: 1.65;
}

.os-bullet-list strong {
    font-weight: 700;
    color: #111111;
}

/* Feature grid responsive */
@media (max-width: 768px) {
    .os-feature-grid {
        grid-template-columns: 1fr;
        gap: 48px 0;
    }
}

/* Why Old Windsor Section */
.os-why-section {
    background: #ffffff;
    padding: 80px 0;
}

.os-why-inner {
    padding-left: 20px;
}

.os-why-title {
    font-family: 'Century Gothic', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #111111;
    text-align: left;
    margin-bottom: 1.5rem;
}

.os-why-intro {
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.8;
    text-align: left;
    max-width: 680px;
    margin: 0 0 2rem;
}

.os-why-list {
    list-style: none;
    padding: 0;
    max-width: 560px;
    margin: 0 0 2rem;
}

.os-why-list li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 0.4rem;
}

.os-why-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    top: 0;
    color: #111111;
    font-size: 1rem;
    line-height: 1.8;
}

.os-why-cta {
    text-align: left;
    font-size: 1rem;
    color: #111111;
    margin-bottom: 0.75rem;
}

.os-why-closing {
    text-align: left;
    font-size: 0.9rem;
    color: #333333;
    line-height: 1.75;
    margin-bottom: 0.4rem;
}

/* Responsive */
@media (max-width: 991px) {
    .os-intro-section {
        padding: 60px 0;
    }

    .os-intro-title {
        font-size: 1.85rem;
    }

    .os-why-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .os-feature-grid-section {
        padding: 40px 0 24px;
    }
}

@media (max-width: 576px) {
    .os-intro-section {
        padding: 48px 0;
    }

    .os-intro-title {
        font-size: 1.5rem;
    }

    .os-feature-heading {
        font-size: 1.3rem;
    }

    .os-why-section {
        padding: 48px 0;
    }

    .os-why-title {
        font-size: 1.5rem;
    }
}

/* ===== END ABOUT OUR SCHOOL PAGE ===== */

/* ===== ACADEMICS PAGE ===== */

.ac-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.ac-section {
    background: #ffffff;
    padding: 72px 0 64px;
}

.ac-section-ruled {
    border-top: 2px solid #111111;
}

.ac-section-last {
    padding-bottom: 80px;
}

.ac-section-title {
    font-family: 'Century Gothic', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.ac-sub-heading {
    font-family: 'Century Gothic', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #111111;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.ac-body {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #333333;
    margin-bottom: 2.5rem;
}

.ac-body p {
    margin-bottom: 1rem;
}

.ac-body p:last-child {
    margin-bottom: 0;
}

/* Image placeholder grid */
.ac-image-row {
    display: grid;
    gap: 20px;
    margin-top: 2.5rem;
}

.ac-image-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ac-image-row-2 {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2.5rem;
}

.ac-img-placeholder {
    background-color: #d4d4d4;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
}

/* Horizontally scrollable table wrapper */
.ac-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ac-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #333333;
}

.ac-table thead tr {
    border-bottom: 2px solid #111111;
}

.ac-table th {
    font-family: 'Century Gothic', sans-serif;
    font-weight: 700;
    color: #111111;
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
}

.ac-table tbody tr {
    border-bottom: 1px solid #d0d0d0;
}

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

.ac-table td {
    padding: 14px 16px;
    vertical-align: top;
    line-height: 1.65;
}

.ac-table td:first-child {
    font-weight: 700;
    color: #111111;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .ac-section {
        padding: 56px 0 48px;
    }

    .ac-section-title {
        font-size: 1.85rem;
    }
}

@media (max-width: 768px) {
    .ac-image-row-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ac-section {
        padding: 48px 0 40px;
    }
}

@media (max-width: 576px) {
    .ac-section-title {
        font-size: 1.5rem;
    }

    .ac-image-row-3,
    .ac-image-row-2 {
        grid-template-columns: 1fr;
    }

    .ac-section-last {
        padding-bottom: 56px;
    }
}

/* ===== END ACADEMICS PAGE ===== */

/* Hero Section for Home Page */
.hero-section {
    background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 0;
}

/* Card Enhancements */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #e0e0e0;
}

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

.card-title {
    color: #0066cc;
    font-weight: bold;
}

/* Footer */
.footer {
    border-top: 1px solid #e0e0e0;
    margin-top: 3rem;
}

/* Alert Customization */
.alert {
    border-radius: 0.5rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ===== OWPS LEGENDARY SPLASH SCREEN ===== */

/* Keep Blazor's hidden SVG accessible for CSS custom-property injection */
.loading-progress {
    display: none !important;
}

@keyframes owps-fadein {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes owps-logopulse {
    0%   { transform: scale(1);    filter: drop-shadow(0 0 18px rgba(0,102,204,0.5)); }
    50%  { transform: scale(1.04); filter: drop-shadow(0 0 32px rgba(51,153,255,0.75)); }
    100% { transform: scale(1);    filter: drop-shadow(0 0 18px rgba(0,102,204,0.5)); }
}

@keyframes owps-shimmer {
    0%   { left: -60%; }
    100% { left: 110%; }
}

@keyframes owps-glow-pulse {
    0%   { opacity: 0.4; transform: scale(1); }
    50%  { opacity: 0.75; transform: scale(1.15); }
    100% { opacity: 0.4; transform: scale(1); }
}

.owps-splash {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #001640 0%, #002a70 55%, #001030 100%);
    z-index: 9999;
    overflow: hidden;
    animation: owps-fadein 0.6s ease both;
}

/* Subtle radial ambient light */
.owps-splash::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(0,102,204,0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(0,76,153,0.18) 0%, transparent 55%);
    pointer-events: none;
}

.owps-splash__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    animation: owps-fadein 0.8s 0.15s ease both;
    opacity: 0;
    width: min(420px, 90vw);
}

/* Logo container */
.owps-splash__logo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
}

.owps-splash__logo-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(51,153,255,0.35) 0%, transparent 70%);
    animation: owps-glow-pulse 2.8s ease-in-out infinite;
}

.owps-splash__logo {
    position: relative;
    width: 140px;
    height: 140px;
    object-fit: contain;
    z-index: 1;
    animation: owps-logopulse 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 18px rgba(0,102,204,0.5));
}

/* School name */
.owps-splash__school-name {
    font-family: 'Century Gothic', 'Questrial', sans-serif;
    font-weight: 700;
    font-size: clamp(0.85rem, 3.5vw, 1.1rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 2px 12px rgba(51,153,255,0.4);
    line-height: 1.3;
    margin-top: 0.4rem;
}

/* Tagline */
.owps-splash__tagline {
    font-family: 'Century Gothic', 'Questrial', sans-serif;
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    font-style: italic;
    color: #90c4ff;
    letter-spacing: 0.1em;
    text-align: center;
}

/* Thin decorative rule between tagline and bar */
.owps-splash__inner > .owps-splash__tagline::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(144,196,255,0.5), transparent);
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

/* Progress bar container */
.owps-splash__bar-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.owps-splash__bar-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

.owps-splash__bar-fill {
    height: 100%;
    width: var(--blazor-load-percentage, 0%);
    border-radius: 999px;
    background: linear-gradient(90deg, #0052a3 0%, #0066cc 50%, #3399ff 100%);
    box-shadow: 0 0 10px rgba(51,153,255,0.7), 0 0 24px rgba(0,102,204,0.4);
    transition: width 0.12s ease-out;
}

.owps-splash__bar-shimmer {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
    animation: owps-shimmer 1.6s ease-in-out infinite;
}

.owps-splash__bar-label {
    font-family: 'Source Sans Pro', 'Myriad Pro', sans-serif;
    font-size: 0.72rem;
    color: rgba(144, 196, 255, 0.7);
    letter-spacing: 0.08em;
}

.owps-splash__bar-label::after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* Footer credit */
.owps-splash__footer {
    position: absolute;
    bottom: 1.25rem;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Source Sans Pro', 'Myriad Pro', sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.06em;
}

/* Override default error UI colors for dark theme */
#blazor-error-ui {
    color-scheme: light only;
    background: #003380 !important;
    color: #fff !important;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.3);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ===== END SPLASH SCREEN ===== */

.loading-progress-text {
    /* kept for Blazor variable injection — visually hidden */
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* Page Header Styling */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #0066cc;
}

.page-header h1 {
    color: #0066cc;
    font-weight: bold;
    font-size: 2.5rem;
}

.page-header .lead {
    color: #666;
    font-size: 1.2rem;
}

/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.announcement-banner h3 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Feature Cards */
.feature-card {
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #0066cc;
    transform: translateY(-5px);
}

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

/* Welcome Section */
.welcome-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid #0066cc;
}

.signature {
    font-style: italic;
    margin-top: 2rem;
}

/* Executive Preview */
.executive-preview {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 0.5rem;
}

.executive-card {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.executive-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.executive-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto;
}

/* News Cards */
.news-card {
    border-left: 4px solid #0066cc;
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* Sidebar Menu */
.sidebar-menu, .quick-links {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-menu ul li, .quick-links ul li {
    margin-bottom: 0.75rem;
}

.sidebar-menu ul li a, .quick-links ul li a {
    color: #0066cc;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-menu ul li a:hover, .quick-links ul li a:hover {
    color: #004c99;
    text-decoration: underline;
}

/* Bio Card */
.bio-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #0066cc;
}

/* Subject List */
.subject-list {
    list-style: none;
    padding-left: 0;
}

.subject-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.subject-list li:last-child {
    border-bottom: none;
}

/* Program Cards */
.program-card {
    border-left: 4px solid #ff6b35;
}

/* Facility Cards */
.facility-card, .cultural-card, .download-card, .quick-link-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.facility-card:hover, .cultural-card:hover, .download-card:hover, .quick-link-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.facility-card h5, .cultural-card h5, .download-card h5, .quick-link-card h5 {
    color: #0066cc;
    font-weight: bold;
}

/* Facility List */
.facility-list {
    list-style: none;
    padding-left: 0;
}

.facility-list li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #e0e0e0;
}

.facility-list li:last-child {
    border-bottom: none;
}

/* Admissions Specific Styles */
.announcement-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 0.5rem;
}

.open-day-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 2px solid #0066cc;
}

.quick-info {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 2px solid #e0e0e0;
}

.info-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

/* Process Cards */
.process-card {
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.process-card:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0066cc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* Document List */
.document-list {
    list-style: none;
    padding-left: 0;
}

.document-list li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid #e0e0e0;
}

.document-list li:last-child {
    border-bottom: none;
}

/* Contact Info */
.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid #0066cc;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .executive-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Search Box Styling */
.search-box {
    flex-grow: 0;
    max-width: 300px;
    margin: 0 1rem;
}

.search-box .input-group {
    flex-wrap: nowrap;
}

.search-box .search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.search-box .search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box .search-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Search Page Styling */
.search-section {
    margin-top: 2rem;
}

.search-section .search-input {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
}

.search-section .search-input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

.search-results {
    margin-top: 2rem;
}

.search-result-item {
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    border-left: 4px solid #0066cc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-result-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.result-title {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.result-title a {
    color: #0066cc;
    text-decoration: none;
}

.result-title a:hover {
    text-decoration: underline;
}

.result-url {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.result-snippet {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

.no-results {
    margin-top: 2rem;
}

/* Responsive Search Box */
@media (max-width: 768px) {
    .search-box {
        display: none;
    }
}

/* ===== LEADERSHIP PAGE ===== */

.ld-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.ld-headmaster-section {
    background: #ffffff;
    overflow: hidden;
}

.ld-headmaster-grid {
    display: grid;
    grid-template-columns: 65fr 35fr;
    align-items: stretch;
    min-height: 620px;
}

.ld-headmaster-letter {
    padding: 72px 56px 72px 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ld-hero-col {
    min-height: 100%;
    display: flex;
    align-items: flex-end;
}

.ld-hero-img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center bottom;
}

.ld-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 1.5rem;
}

.ld-letter-salutation {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111111;
}

.ld-headmaster-letter p {
    font-size: 1rem;
    line-height: 1.82;
    color: #333333;
    margin-bottom: 1.1rem;
}

.ld-headmaster-signature {
    margin-top: 2rem;
}

.ld-headmaster-signature p {
    margin-bottom: 0.15rem;
    color: #111111;
}

.ld-profile-card-section {
    background: #F1F2F2;
    padding: 48px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.ld-profile-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.ld-profile-card-photo {
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.ld-profile-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.ld-profile-card-body {
    flex: 1;
}

.ld-profile-card-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 0.25rem;
}

.ld-pipe {
    color: #888888;
    font-weight: 400;
    margin: 0 0.35rem;
}

.ld-profile-card-subtitle {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 0.85rem;
}

.ld-profile-card-bio {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 0;
}

.ld-team-section {
    background: #ffffff;
    padding: 80px 0 20px;
}

.ld-architects-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 1rem;
}

.ld-architects-intro {
    font-size: 1rem;
    line-height: 1.8;
    color: #444444;
    max-width: 980px;
    margin: 0 0 3rem;
}

.ld-team-member {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: center;
    padding: 0;
    border-top: 1px solid #d8d8d8;
}

.ld-team-member-reverse {
    grid-template-columns: 280px 1fr;
}

.ld-team-member-reverse .ld-team-photo {
    order: 2;
}

.ld-team-member-reverse .ld-team-bio {
    order: 1;
}

.ld-team-photo {
    overflow: hidden;
}

.ld-team-photo img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.ld-team-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 0.25rem;
}

.ld-team-role {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 0.85rem;
}

.ld-team-bio p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 0.85rem;
}

.ld-team-member-last {
    border-bottom: 1px solid #d8d8d8;
}

.ld-identity-section {
    background: #F1F2F2;
    padding: 80px 0;
    border-top: 1px solid #e5e5e5;
}

.ld-identity-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 0.75rem;
    text-align: center;
}

.ld-identity-intro {
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 3rem;
    text-align: center;
}

.ld-identity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, minmax(185px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.ld-identity-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.ld-identity-card-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #111111;
    margin-bottom: 1.25rem;
}

.ld-identity-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 0;
}

.ld-identity-card-values {
    grid-column: 2;
    grid-row: 1 / 4;
    justify-content: flex-start;
}

.ld-values-grid {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    width: 100%;
}

.ld-value-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.ld-value-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.ld-value-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 0.35rem;
}

.ld-value-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .ld-headmaster-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .ld-headmaster-letter {
        padding: 56px 2rem 40px;
    }

    .ld-hero-col {
        max-height: 560px;
    }

    .ld-profile-card,
    .ld-team-member,
    .ld-team-member-reverse,
    .ld-identity-grid {
        grid-template-columns: 1fr;
    }

    .ld-identity-grid {
        grid-template-rows: auto;
    }

    .ld-team-member-reverse .ld-team-photo,
    .ld-team-member-reverse .ld-team-bio {
        order: initial;
    }

    .ld-profile-card {
        gap: 1.5rem;
    }

    .ld-identity-card-values {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 767px) {
    .ld-container {
        padding: 0 1.25rem;
    }

    .ld-section-title,
    .ld-architects-title,
    .ld-identity-title {
        font-size: 1.6rem;
    }

    .ld-headmaster-letter {
        padding: 44px 1.25rem 32px;
    }

    .ld-profile-card-section,
    .ld-team-section,
    .ld-identity-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .ld-profile-card-photo {
        max-width: 180px;
        margin: 0 auto;
    }
}

/* Hero Section for Home Page */
.hero-section {
    background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 0;
}

/* Card Enhancements */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #e0e0e0;
}

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

.card-title {
    color: #0066cc;
    font-weight: bold;
}

/* Footer */
.footer {
    border-top: 1px solid #e0e0e0;
    margin-top: 3rem;
}

/* Alert Customization */
.alert {
    border-radius: 0.5rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* loading-progress (duplicate media-query block) — kept for Blazor variable injection */
.loading-progress {
    display: none !important;
}

.loading-progress-text {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* Page Header Styling */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #0066cc;
}

.page-header h1 {
    color: #0066cc;
    font-weight: bold;
    font-size: 2.5rem;
}

.page-header .lead {
    color: #666;
    font-size: 1.2rem;
}

/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.announcement-banner h3 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Feature Cards */
.feature-card {
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #0066cc;
    transform: translateY(-5px);
}

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

/* Welcome Section */
.welcome-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid #0066cc;
}

.signature {
    font-style: italic;
    margin-top: 2rem;
}

/* Executive Preview */
.executive-preview {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 0.5rem;
}

.executive-card {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.executive-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.executive-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto;
}

/* News Cards */
.news-card {
    border-left: 4px solid #0066cc;
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* Sidebar Menu */
.sidebar-menu, .quick-links {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-menu ul li, .quick-links ul li {
    margin-bottom: 0.75rem;
}

.sidebar-menu ul li a, .quick-links ul li a {
    color: #0066cc;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-menu ul li a:hover, .quick-links ul li a:hover {
    color: #004c99;
    text-decoration: underline;
}

/* Bio Card */
.bio-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #0066cc;
}

/* Subject List */
.subject-list {
    list-style: none;
    padding-left: 0;
}

.subject-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.subject-list li:last-child {
    border-bottom: none;
}

/* Program Cards */
.program-card {
    border-left: 4px solid #ff6b35;
}

/* Facility Cards */
.facility-card, .cultural-card, .download-card, .quick-link-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.facility-card:hover, .cultural-card:hover, .download-card:hover, .quick-link-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.facility-card h5, .cultural-card h5, .download-card h5, .quick-link-card h5 {
    color: #0066cc;
    font-weight: bold;
}

/* Facility List */
.facility-list {
    list-style: none;
    padding-left: 0;
}

.facility-list li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #e0e0e0;
}

.facility-list li:last-child {
    border-bottom: none;
}

/* Admissions Specific Styles */
.announcement-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 0.5rem;
}

.open-day-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 2px solid #0066cc;
}

.quick-info {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 2px solid #e0e0e0;
}

.info-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

/* Process Cards */
.process-card {
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.process-card:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0066cc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* Document List */
.document-list {
    list-style: none;
    padding-left: 0;
}

.document-list li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid #e0e0e0;
}

.document-list li:last-child {
    border-bottom: none;
}

/* Contact Info */
.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid #0066cc;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .executive-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Search Box Styling */
.search-box {
    flex-grow: 0;
    max-width: 300px;
    margin: 0 1rem;
}

.search-box .input-group {
    flex-wrap: nowrap;
}

.search-box .search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.search-box .search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box .search-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Search Page Styling */
.search-section {
    margin-top: 2rem;
}

.search-section .search-input {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
}

.search-section .search-input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

.search-results {
    margin-top: 2rem;
}

.search-result-item {
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    border-left: 4px solid #0066cc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-result-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.result-title {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.result-title a {
    color: #0066cc;
    text-decoration: none;
}

.result-title a:hover {
    text-decoration: underline;
}

.result-url {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.result-snippet {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

.no-results {
    margin-top: 2rem;
}

/* Responsive Search Box */
@media (max-width: 768px) {
    .search-box {
        display: none;
    }
}
