/**
 * Bai Kabibai & Hansraj Morarji Charity Trust
 * Modern, Lightweight, High-Performance Design System
 */

:root {
    --trust-navy: #002147;
    --trust-navy-dark: #001733;
    --trust-navy-light: #003366;
    --trust-gold: #c5a47e;
    --trust-gold-dark: #aa8659;
    --trust-gold-light: #e5cbab;
    --trust-accent: #d4b896;
    --trust-text-dark: #1e293b;
    --trust-text-muted: #64748b;
    --trust-text-light: #f8fafc;
    --trust-bg-light: #f8fafc;
    --trust-bg-white: #ffffff;
    --trust-border: #e2e8f0;
    --trust-shadow-sm: 0 2px 4px rgba(0, 33, 71, 0.05);
    --trust-shadow-md: 0 6px 18px rgba(0, 33, 71, 0.08);
    --trust-shadow-lg: 0 12px 32px rgba(0, 33, 71, 0.12);
    --trust-radius: 12px;
    --trust-radius-lg: 20px;
    --trust-transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--trust-text-dark);
    background-color: var(--trust-bg-light);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    color: var(--trust-navy);
    line-height: 1.25;
}

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

a:hover {
    color: var(--trust-gold-dark);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header Styles */
.section-title-wrap {
    text-align: center;
    margin-bottom: 45px;
    position: relative;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--trust-gold-dark);
    background: rgba(197, 164, 126, 0.12);
    border: 1px solid rgba(197, 164, 126, 0.3);
    border-radius: 30px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.25rem;
    color: var(--trust-navy);
    margin-bottom: 12px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--trust-navy), var(--trust-gold));
    margin: 14px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--trust-text-muted);
    max-width: 680px;
    margin: 0 auto;
}

/* ==========================================================================
   Polished Header, Navbar & Banner Styles (Matching Previous Brand Identity)
   ========================================================================== */

/* Header Top Area */
.trust-site-header {
    position: relative;
    z-index: 100;
}

.header-top-area {
    background: url('../images/cQ2zeFkGMI2J.png') top left repeat #f5f5f5;
    padding: 16px 0 14px;
    border-bottom: 1px solid rgba(0, 33, 71, 0.08);
}

.mobile-only {
    display: none !important;
}

.desktop-only {
    display: flex;
}

.header-inner-container {
    width: 100%;
    padding: 0 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Left Column: Crest Logo */
.header-col-left {
    flex: 0 0 140px;
    display: flex;
    align-items: center;
}

.trust-logo-anchor {
    display: inline-block;
}

.trust-crest-logo {
    height: 86px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    display: block;
}

/* Center Column: Trust Name and Tagline */
.header-col-center {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.trust-titles-link {
    display: inline-block;
    text-decoration: none;
}

.trust-main-heading {
    margin: 0;
    font-family: 'Prata', serif !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    color: #002147 !important;
    line-height: 1.15;
    letter-spacing: -0.3px;
    text-align: center;
}

.trust-sub-heading {
    margin: 0;
    margin-top: 8px;
    font-family: 'Prata', serif !important;
    font-size: 21px !important;
    font-weight: 400 !important;
    color: #002147 !important;
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-align: center;
}

/* Right Column: Framed Founders Portraits */
.header-col-right {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
}

.founders-frames-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.founder-frame-card {
    position: relative;
    width: 90px;
    height: 112px;
    border: 2px solid #b89150;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    background: #000000;
    border-radius: 2px;
    transition: transform 0.25s ease;
}

.founder-frame-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(184, 145, 80, 0.35);
}

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

.founder-overlay-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 30%, rgba(0, 0, 0, 0.95) 100%);
    padding: 6px 6px 4px;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.founder-overlay-label.left-align {
    text-align: left;
}

.founder-overlay-label.center-align {
    text-align: center;
}

/* ==========================================================================
   Primary Navigation Bar (Royal Navy Sticky Bar with Centered Menu)
   ========================================================================== */
.main-navigation-bar {
    background-color: #002147 !important;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 3px 10px rgba(0, 23, 51, 0.25);
    border-bottom: 2px solid rgba(253, 200, 0, 0.35);
}

.nav-inner-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-nav-menu {
    width: 100%;
}

.primary-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.primary-nav-list > .nav-item {
    position: relative;
}

.primary-nav-list > .nav-item > .nav-link {
    display: block;
    padding: 16px 20px;
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.25s ease;
    position: relative;
}

.primary-nav-list > .nav-item.active > .nav-link,
.primary-nav-list > .nav-item > .nav-link:hover {
    color: #fdc800 !important;
}

.nav-caret {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.primary-nav-list > .nav-item:hover .nav-caret {
    transform: rotate(180deg);
}

/* Dropdown Submenu */
.dropdown-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #002147;
    min-width: 210px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border-top: 3px solid #fdc800;
    list-style: none;
    padding: 4px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 99999;
}

.primary-nav-list > .nav-item:hover > .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-submenu li a {
    display: block;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #ffffff !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.dropdown-submenu li:last-child a {
    border-bottom: none;
}

.dropdown-submenu li a:hover {
    color: #fdc800 !important;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 24px;
}


.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 22px;
    padding: 12px;
    cursor: pointer;
}

/* ==========================================================================
   Hero Banner Viewport (Widescreen Presentation with Top-Right Quote)
   ========================================================================== */
.hero-banner-viewport {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: #001733;
}

.hero-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-banner-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.85s ease-in-out;
}

.hero-banner-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%;
}

/* Quote Positioned Top-Right Exactly Like Screenshot */
.hero-slide-caption.top-right {
    position: absolute;
    top: 15%;
    right: 8%;
    max-width: 52%;
    text-align: right;
    z-index: 10;
    pointer-events: none;
}

.hero-quote-text {
    font-family: 'Prata', serif !important;
    font-size: 44px !important;
    font-weight: 400 !important;
    line-height: 1.2;
    margin: 0;
    letter-spacing: 0.2px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 0, 0, 0.4);
}

.hero-quote-text.gold {
    color: #ffd700 !important;
}

.hero-quote-text.white {
    color: #ffffff !important;
}

.hero-quote-text.red {
    color: #ff5252 !important;
}

/* Banner Direction Navigation Arrows */
.banner-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: rgba(0, 33, 71, 0.65);
    border: 2px solid rgba(253, 200, 0, 0.5);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 20;
    opacity: 0.85;
}

.banner-nav-btn:hover {
    opacity: 1;
    background: #fdc800;
    color: #002147;
    border-color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.banner-prev {
    left: 24px;
}

.banner-next {
    right: 24px;
}

/* Banner Pagination Dots */
.banner-indicators {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
    z-index: 20;
}

.indicator-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.indicator-dot.active {
    background: #fdc800;
    border-color: #ffffff;
    transform: scale(1.25);
}

/* ==========================================================================
   Our Institutions Section (Authentic Polished Look, No Unnecessary Writeups)
   ========================================================================== */
.schoolLogo-area {
    padding: 70px 0 80px;
    background-color: #ffffff;
    position: relative;
}

.home-section-title {
    text-align: center;
    margin-bottom: 45px;
    position: relative;
    z-index: 10;
}

.home-section-title a {
    color: #002147;
    font-size: 38px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
    font-family: 'Prata', serif;
}

.home-section-title a::before,
.home-section-title a::after {
    content: '';
    position: absolute;
    height: 3px;
    background: #c5a47e;
    bottom: -12px;
    transition: all 0.4s ease;
}

.home-section-title a::before {
    width: 45px;
    left: 50%;
    transform: translateX(-120%);
}

.home-section-title a::after {
    width: 45px;
    left: 50%;
    transform: translateX(20%);
}

.home-section-title:hover a::before,
.home-section-title:hover a::after {
    width: 65px;
}

/* Campus Selector Switcher */
.campus-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto 45px;
    background-color: #f1f5f9;
    border-radius: 50px;
    padding: 5px;
    max-width: 480px;
    box-shadow: 0 4px 16px rgba(0, 33, 71, 0.08);
    border: 1px solid #e2e8f0;
    z-index: 5;
}

.campus-selector-button {
    position: relative;
    flex: 1;
    padding: 13px 20px;
    border: none;
    background: none;
    font-size: 15.5px;
    font-weight: 700;
    color: #475569;
    z-index: 2;
    cursor: pointer;
    transition: color 0.3s ease;
    text-align: center;
    border-radius: 50px;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.campus-selector-button:hover {
    color: #002147;
}

.campus-selector-button.active {
    color: #ffffff !important;
}

.campus-selector-button i {
    font-size: 16px;
    color: #c5a47e;
    transition: color 0.3s ease;
}

.campus-selector-button.active i {
    color: #fdc800;
}

.campus-selector-slider {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background-color: #002147;
    border-radius: 50px;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 33, 71, 0.25);
}

.campus-content {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.campus-content.active {
    display: block;
}

/* Modern Institution Cards (Authentic Grid) */
.institution-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 10px;
}

.fort-single-card-grid {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.fort-single-card-grid .institution-card {
    max-width: 360px;
    width: 100%;
}

.institution-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #eef2f6;
    outline: none;
}

.institution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 33, 71, 0.14);
    border-color: #c5a47e;
}

.institution-logo {
    height: 195px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.institution-logo-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.14;
    filter: blur(8px);
    transform: scale(1.1);
    transition: all 0.4s ease;
}

.institution-logo img {
    max-width: 62%;
    max-height: 62%;
    object-fit: contain;
    z-index: 2;
    position: relative;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.institution-card:hover .institution-logo-bg {
    opacity: 0.22;
    transform: scale(1.15);
    filter: blur(5px);
}

.institution-card:hover .institution-logo img {
    transform: scale(1.08) translateY(-3px);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.institution-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 33, 71, 0.65), rgba(0, 33, 71, 0.88));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(2px);
}

.institution-card:hover .institution-overlay {
    opacity: 1;
}

.view-btn {
    background: linear-gradient(135deg, #c5a47e 0%, #aa8659 100%);
    color: #ffffff;
    padding: 10px 26px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    transform: translateY(12px);
    opacity: 0;
    transition: all 0.35s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.5px;
}

.institution-card:hover .view-btn {
    transform: translateY(0);
    opacity: 1;
}

.institution-info {
    padding: 20px 18px 24px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.institution-name {
    font-family: 'Outfit', sans-serif;
    font-size: 17.5px;
    font-weight: 700;
    color: #002147;
    margin-bottom: 6px;
    line-height: 1.3;
}

.institution-affiliation {
    font-size: 13.5px;
    color: #64748b;
    font-weight: 500;
}

/* History / About Us Section */
.history-section {
    padding: 85px 0;
    background: #f8fafc;
    border-top: 1px solid var(--trust-border);
    border-bottom: 1px solid var(--trust-border);
}

.history-card {
    background: #ffffff;
    border-radius: var(--trust-radius-lg);
    border: 1px solid var(--trust-border);
    box-shadow: var(--trust-shadow-md);
    padding: 45px;
    position: relative;
    border-left: 5px solid var(--trust-gold);
}

.history-lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--trust-navy);
    margin-bottom: 24px;
    line-height: 1.6;
}

.history-text {
    font-size: 1rem;
    color: #334155;
    margin-bottom: 18px;
    text-align: justify;
    line-height: 1.8;
}

/* Timeline Chips */
.history-timeline {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed var(--trust-border);
}

.timeline-title {
    font-size: 1.2rem;
    color: var(--trust-navy);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.timeline-item {
    background: #f8fafc;
    border: 1px solid var(--trust-border);
    padding: 16px;
    border-radius: 10px;
    transition: var(--trust-transition);
}

.timeline-item:hover {
    background: #ffffff;
    border-color: var(--trust-gold);
    box-shadow: var(--trust-shadow-sm);
    transform: translateY(-3px);
}

.timeline-year {
    display: inline-block;
    background: var(--trust-navy);
    color: var(--trust-gold-light);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.timeline-item h4 {
    font-size: 1rem;
    color: var(--trust-navy);
    margin-bottom: 4px;
}

.timeline-item p {
    font-size: 0.84rem;
    color: var(--trust-text-muted);
    line-height: 1.5;
}

/* Vision Section */
.vision-section {
    padding: 85px 0;
    background: #ffffff;
}

.vision-card {
    background: linear-gradient(135deg, var(--trust-navy) 0%, #001733 100%);
    border-radius: var(--trust-radius-lg);
    padding: 55px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 33, 71, 0.25);
    border: 2px solid var(--trust-gold);
}

.vision-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 164, 126, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.vision-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.vision-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(197, 164, 126, 0.2);
    border: 2px solid var(--trust-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--trust-gold-light);
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(197, 164, 126, 0.3);
}

.vision-header h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.vision-statement {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #e2e8f0;
    font-weight: 400;
}

.vision-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
    border-top: 1px solid rgba(197, 164, 126, 0.3);
    padding-top: 40px;
}

.pillar-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--trust-radius);
    padding: 24px;
    transition: var(--trust-transition);
}

.pillar-box:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--trust-gold);
    transform: translateY(-4px);
}

.pillar-box h4 {
    font-size: 1.15rem;
    color: var(--trust-gold-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pillar-box p {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* ==========================================================================
   Chairman Message Section (Executive Vertical Portrait & Polished Typography)
   ========================================================================== */
.chairman-section {
    padding: 90px 0 95px;
    background: #f8fafc;
    position: relative;
}

.chairman-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 40px rgba(0, 33, 71, 0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 380px 1fr;
    transition: box-shadow 0.3s ease;
}

.chairman-card:hover {
    box-shadow: 0 20px 50px rgba(0, 33, 71, 0.12);
}

.chairman-aside {
    background: linear-gradient(180deg, #fdfbf7 0%, #f1f5f9 100%);
    padding: 45px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid #e2e8f0;
    position: relative;
}

/* Vertical Rectangular Portrait Frame (Non-circular) */
.chairman-portrait-container {
    position: relative;
    margin-bottom: 24px;
}

.chairman-photo-frame {
    width: 250px;
    height: 325px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid #c5a47e;
    box-shadow: 0 12px 30px rgba(0, 33, 71, 0.18);
    background: #ffffff;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.chairman-photo-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 33, 71, 0.24);
}

.chairman-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.chairman-name {
    font-family: 'Prata', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #002147;
    margin-top: 5px;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.chairman-designation {
    font-size: 0.88rem;
    color: #b89366;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

.chairman-crest-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 33, 71, 0.1);
    width: 100%;
}

.chairman-crest-sig {
    width: 65px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 2px 6px rgba(0, 33, 71, 0.12));
}

.crest-caption {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.chairman-content {
    padding: 55px 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-icon-bg {
    font-size: 4.5rem;
    color: rgba(197, 164, 126, 0.15);
    position: absolute;
    top: 35px;
    right: 45px;
    line-height: 1;
    pointer-events: none;
}

.chairman-header-wrap {
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.chairman-main-title {
    font-family: 'Prata', serif;
    font-size: 2.2rem;
    color: #002147;
    font-weight: 700;
    margin: 10px 0 14px;
    letter-spacing: 0.3px;
}

.gold-divider-line {
    width: 60px;
    height: 3px;
    background: #c5a47e;
    border-radius: 2px;
}

.chairman-body-paragraphs {
    position: relative;
    z-index: 2;
}

.chairman-p {
    font-size: 1.03rem;
    color: #334155;
    line-height: 1.85;
    margin-bottom: 18px;
    text-align: justify;
}

.chairman-p.lead-p {
    font-size: 1.15rem;
    font-weight: 600;
    color: #002147;
    line-height: 1.75;
}

.chairman-closing {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.closing-salutation {
    font-size: 0.95rem;
    color: #64748b;
    font-style: italic;
    margin-bottom: 4px;
}

.closing-signee {
    font-family: 'Prata', serif;
    font-size: 1.25rem;
    color: #002147;
    margin-bottom: 2px;
}

.closing-sub {
    font-size: 0.86rem;
    color: #b89366;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* ==========================================================================
   Our Logo / Our Trust Emblem Section (State-of-the-Art Executive Showcase)
   ========================================================================== */
.logo-section {
    padding: 90px 0 100px;
    background: #ffffff;
    position: relative;
}

.logo-section .section-title-wrap {
    text-align: center;
    margin-bottom: 50px;
}

.title-gold-accent {
    width: 70px;
    height: 3px;
    background: #c5a47e;
    margin: 14px auto 0;
    border-radius: 2px;
}

.emblem-showcase-wrapper {
    display: grid;
    grid-template-columns: 410px 1fr;
    gap: 40px;
    align-items: stretch;
}

/* Left: Crest Showcase Pedestal Card */
.emblem-crest-showcase {
    display: flex;
}

.crest-pedestal-card {
    background: linear-gradient(150deg, #ffffff 0%, #fdfbf7 50%, #f1f5f9 100%);
    border: 2px solid rgba(197, 164, 126, 0.45);
    border-radius: 16px;
    padding: 45px 35px;
    box-shadow: 0 14px 38px rgba(0, 33, 71, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.crest-halo-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(197, 164, 126, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.crest-image-container {
    position: relative;
    z-index: 2;
    margin-bottom: 26px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.crest-pedestal-card:hover .crest-image-container {
    transform: scale(1.06);
}

.emblem-primary-svg {
    height: 175px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 10px 22px rgba(0, 33, 71, 0.16));
}

.crest-trust-title {
    font-family: 'Prata', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #002147;
    line-height: 1.45;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.crest-motto-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.crest-motto-line {
    flex: 1;
    height: 1px;
    background: rgba(197, 164, 126, 0.45);
}

.crest-trust-subtitle {
    font-family: 'Prata', serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: #b89366;
    font-style: italic;
    white-space: nowrap;
    margin: 0;
}

.crest-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #002147;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    box-shadow: 0 4px 14px rgba(0, 33, 71, 0.2);
    position: relative;
    z-index: 2;
}

.crest-meta-badge i {
    color: #fdc800;
    font-size: 0.9rem;
}

/* Right: The 5 Authentic Emblem Points */
.emblem-narrative-container {
    display: flex;
    flex-direction: column;
}

.emblem-points-flow {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    justify-content: space-between;
}

.emblem-point-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #c5a47e;
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 3px 12px rgba(0, 33, 71, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.emblem-point-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    border-left-color: #002147;
    transform: translateX(6px);
    box-shadow: 0 10px 28px rgba(0, 33, 71, 0.09);
}

.emblem-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #002147 0%, #0d3b66 100%);
    color: #c5a47e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 33, 71, 0.16);
    transition: all 0.3s ease;
}

.emblem-point-card:hover .emblem-card-icon {
    transform: scale(1.08) rotate(4deg);
    background: linear-gradient(135deg, #c5a47e 0%, #a48259 100%);
    color: #ffffff;
}

.emblem-card-body {
    flex: 1;
}

.emblem-exact-text {
    font-size: 1.02rem;
    color: #334155;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

/* Management / Trustees Table */
.trustees-section {
    padding: 85px 0;
    background: #f8fafc;
}

.table-wrapper {
    background: #ffffff;
    border-radius: var(--trust-radius);
    border: 1px solid var(--trust-border);
    box-shadow: var(--trust-shadow-sm);
    overflow: hidden;
}

.trust-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.trust-table th {
    background: var(--trust-navy);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 16px 24px;
    letter-spacing: 0.5px;
}

.trust-table td {
    padding: 16px 24px;
    font-size: 0.96rem;
    color: var(--trust-text-dark);
    border-bottom: 1px solid #f1f5f9;
}

.trust-table tr:nth-child(even) td {
    background: #fbfcfe;
}

.trust-table tr:hover td {
    background: rgba(197, 164, 126, 0.06);
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.role-chairman {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.role-trustee {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.role-leadership {
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
}

.role-advisor {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Contact Us & Map */
.contact-section {
    padding: 85px 0;
    background: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 35px;
}

.contact-card {
    background: linear-gradient(135deg, var(--trust-navy) 0%, #001733 100%);
    border-radius: var(--trust-radius);
    padding: 40px 32px;
    color: #ffffff;
    box-shadow: var(--trust-shadow-md);
    border: 1px solid var(--trust-gold);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card-header h3 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.contact-card-header p {
    color: var(--trust-gold-light);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 35px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(197, 164, 126, 0.2);
    border: 1px solid var(--trust-gold);
    color: var(--trust-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item-info h5 {
    color: var(--trust-gold-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.contact-item-info p,
.contact-item-info a {
    color: #f8fafc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-item-info a:hover {
    color: var(--trust-gold-light);
}

.contact-socials {
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--trust-transition);
}

.social-btn:hover {
    background: var(--trust-gold);
    color: var(--trust-navy);
    transform: translateY(-2px);
}

.map-card {
    border-radius: var(--trust-radius);
    overflow: hidden;
    border: 1px solid var(--trust-border);
    box-shadow: var(--trust-shadow-md);
    height: 100%;
    min-height: 420px;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: none;
    display: block;
}

/* Footer */
.trust-footer {
    background: var(--trust-navy-dark);
    color: #ffffff;
    border-top: 3px solid var(--trust-gold);
}

.footer-top {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--trust-gold);
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.92rem;
    margin-top: 14px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: var(--trust-transition);
}

.footer-links a:hover {
    color: var(--trust-gold-light);
    padding-left: 5px;
}

.footer-bottom {
    padding: 22px 0;
    text-align: center;
    color: #64748b;
    font-size: 0.88rem;
}

.footer-bottom a {
    color: var(--trust-gold-light);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--trust-navy);
    color: #ffffff;
    border: 2px solid var(--trust-gold);
    box-shadow: 0 4px 16px rgba(0, 33, 71, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--trust-transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--trust-gold);
    color: var(--trust-navy);
    transform: translateY(-4px);
}

/* Maintenance Modal */
.maintenance-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 23, 51, 0.75);
    backdrop-filter: blur(6px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease-out;
}

.maintenance-modal-backdrop.active {
    display: flex;
}

.maintenance-modal-content {
    background: linear-gradient(135deg, var(--trust-navy) 0%, #001733 100%);
    border: 2px solid var(--trust-gold);
    border-radius: var(--trust-radius-lg);
    max-width: 460px;
    width: 100%;
    padding: 40px 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: scaleUp 0.3s ease-out;
}

.maintenance-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(197, 164, 126, 0.2);
    border: 2px solid var(--trust-gold);
    color: var(--trust-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.maintenance-modal-content h3 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.maintenance-modal-content p {
    color: #cbd5e1;
    font-size: 0.96rem;
    margin-bottom: 24px;
}

.modal-close-btn {
    padding: 10px 28px;
    background: var(--trust-gold);
    color: var(--trust-navy);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--trust-transition);
}

.modal-close-btn:hover {
    background: #ffffff;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Comprehensive Responsive Breakpoints (Mobile, Tablet, Desktop Optimization)
   Desktop layout is preserved; Small & Medium screens are flawlessly styled.
   ========================================================================== */

/* --- 1. Large Tablets & Small Laptops (max-width: 1200px) --- */
@media (max-width: 1200px) {
    .header-inner-container {
        padding: 0 25px;
    }
    .trust-main-heading {
        font-size: 28px !important;
    }
    .trust-sub-heading {
        font-size: 19px !important;
    }
    .hero-banner-viewport {
        height: 480px;
    }
    .hero-quote-text {
        font-size: 36px !important;
    }
    .emblem-showcase-wrapper {
        grid-template-columns: 360px 1fr;
        gap: 30px;
    }
    .footer-grid {
        grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
        gap: 30px;
    }
}

/* --- 2. Medium Screens & Tablets (max-width: 991px) --- */
@media (max-width: 991px) {
    /* Header Top Bar - Mobile Trio Row: Person 1 (Left) | Crest (Center) | Person 2 (Right) */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .header-inner-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 22px 18px 20px;
    }

    /* Mobile Trio Row */
    .mobile-trio-row {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 20px;
        width: 100%;
        margin-bottom: 4px;
    }

    .mobile-trio-row .founder-frame-card {
        width: 86px;
        height: 108px;
        border: 2px solid #b89150;
        border-radius: 4px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
        flex-shrink: 0;
    }

    .mobile-trio-row .founder-overlay-label {
        font-size: 10px;
        padding: 4px;
    }

    .mobile-trio-row .mobile-center-crest {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .mobile-trio-row .trust-crest-logo {
        height: 76px;
        width: auto;
        filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.16));
        display: block;
    }

    /* Trust Title & Tagline */
    .header-col-center {
        padding: 0;
        width: 100%;
        text-align: center;
    }
    .trust-main-heading {
        font-family: 'Prata', serif !important;
        font-size: 26px !important;
        line-height: 1.25;
        letter-spacing: -0.2px;
        margin: 0;
    }
    .trust-sub-heading {
        font-family: 'Prata', serif !important;
        font-size: 18px !important;
        margin: 8px 0 0;
        letter-spacing: 0.3px;
        line-height: 1.2;
    }

    /* Main Navigation & Hamburger Drawer */
    .main-navigation-bar {
        position: sticky;
        top: 0;
        z-index: 99999;
    }
    .nav-inner-container {
        justify-content: flex-end;
        padding: 8px 20px;
        position: relative;
    }
    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(253, 200, 0, 0.4);
        border-radius: 8px;
        color: #ffffff;
        font-size: 20px;
        cursor: pointer;
        transition: all 0.25s ease;
    }
    .mobile-nav-toggle:hover,
    .mobile-nav-toggle:focus {
        background: rgba(253, 200, 0, 0.2);
        color: #fdc800;
    }
    .trust-nav-menu {
        position: static;
        width: auto;
    }
    .primary-nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #001733;
        padding: 10px 0 20px;
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
        border-top: 2px solid #fdc800;
        max-height: calc(100vh - 65px);
        overflow-y: auto;
        gap: 0;
        z-index: 99999;
    }
    .primary-nav-list.mobile-open {
        display: flex;
        animation: slideUpFade 0.25s ease forwards;
    }
    .primary-nav-list > .nav-item {
        width: 100%;
    }
    .primary-nav-list > .nav-item > .nav-link {
        padding: 13px 22px;
        font-size: 13.5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .dropdown-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background: rgba(0, 15, 36, 0.75);
        padding: 4px 0 8px 18px;
        margin: 0 14px 6px;
        border-left: 3px solid #fdc800;
        border-radius: 0 6px 6px 0;
    }
    .dropdown-submenu li a {
        padding: 10px 16px;
        font-size: 12.5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    /* Hero Banner Slider */
    .hero-banner-viewport {
        height: 400px;
    }
    .hero-slide-caption.top-right {
        top: 12%;
        right: 6%;
        max-width: 65%;
    }
    .hero-quote-text {
        font-size: 28px !important;
    }
    .banner-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .banner-prev {
        left: 14px;
    }
    .banner-next {
        right: 14px;
    }

    /* Section Paddings & General Titles */
    .schoolLogo-area,
    .history-section,
    .vision-section,
    .chairman-section,
    .logo-section,
    .trustees-section,
    .contact-section {
        padding: 60px 0;
    }
    .home-section-title {
        margin-bottom: 35px;
    }
    .home-section-title a {
        font-size: 30px;
    }
    .section-title {
        font-size: 2rem;
    }

    /* Campus Selector & Institutions Grid */
    .institution-cards {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 24px;
    }
    .institution-logo {
        height: 180px;
    }

    /* Chairman Card */
    .chairman-card {
        grid-template-columns: 1fr;
    }
    .chairman-aside {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 35px 25px;
    }
    .chairman-photo-frame {
        width: 220px;
        height: 285px;
    }
    .chairman-content {
        padding: 40px 30px;
    }
    .quote-icon-bg {
        font-size: 3.5rem;
        top: 20px;
        right: 25px;
    }

    /* Emblem Showcase */
    .emblem-showcase-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .crest-pedestal-card {
        padding: 35px 25px;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    .emblem-primary-svg {
        height: 150px;
    }
    .emblem-points-flow {
        gap: 14px;
    }
    .emblem-point-card {
        padding: 16px 20px;
    }

    /* Trustees Table Scroll */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
    }
    .trust-table {
        min-width: 600px;
    }

    /* Contact Section & Footer */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .map-card {
        min-height: 360px;
        height: 360px;
    }
    .map-card iframe {
        min-height: 360px;
        height: 360px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}

/* --- 3. Small Tablets & Landscape Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Header - Mobile Trio Row (Person 1 Left | Crest Center | Person 2 Right) */
    .header-top-area {
        padding: 18px 0 16px;
    }
    .header-inner-container {
        padding: 0 16px;
        gap: 12px;
    }
    .mobile-trio-row {
        gap: 16px;
        margin-bottom: 3px;
    }
    .mobile-trio-row .founder-frame-card {
        width: 82px;
        height: 104px;
    }
    .mobile-trio-row .founder-overlay-label {
        font-size: 9.5px;
        padding: 4px;
    }
    .mobile-trio-row .trust-crest-logo {
        height: 72px;
    }
    .trust-main-heading {
        font-size: 24px !important;
    }
    .trust-sub-heading {
        font-size: 16px !important;
        margin-top: 6px;
    }

    /* Hero Banner */
    .hero-banner-viewport {
        height: 320px;
    }
    .hero-slide-caption.top-right {
        top: 10%;
        right: 5%;
        left: 5%;
        max-width: 90%;
        text-align: right;
    }
    .hero-quote-text {
        font-size: 22px !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.85);
    }
    .banner-nav-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    .banner-prev {
        left: 8px;
    }
    .banner-next {
        right: 8px;
    }
    .banner-indicators {
        bottom: 12px;
    }
    .indicator-dot {
        width: 9px;
        height: 9px;
    }

    /* Titles */
    .home-section-title a {
        font-size: 26px;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Campus Selector */
    .campus-selector {
        max-width: 380px;
        margin-bottom: 35px;
    }
    .campus-selector-button {
        padding: 11px 16px;
        font-size: 14px;
    }

    /* Institution Cards */
    .institution-cards {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
        gap: 20px;
    }
    .fort-single-card-grid .institution-card {
        max-width: 360px;
    }
    .institution-logo {
        height: 165px;
    }
    .institution-info {
        padding: 16px 14px 20px;
    }

    /* History & Heritage */
    .history-card {
        padding: 28px 18px;
        border-left-width: 4px;
    }
    .history-lead {
        font-size: 1.05rem;
        margin-bottom: 16px;
    }
    .history-text {
        font-size: 0.94rem;
        text-align: left;
        line-height: 1.7;
    }
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Vision */
    .vision-card {
        padding: 35px 20px;
    }
    .vision-header h2 {
        font-size: 1.8rem;
    }
    .vision-statement {
        font-size: 1.05rem;
    }
    .vision-pillars {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 25px;
        padding-top: 25px;
    }
    .pillar-box {
        padding: 18px 16px;
    }

    /* Chairman */
    .chairman-aside {
        padding: 28px 16px;
    }
    .chairman-photo-frame {
        width: 190px;
        height: 245px;
    }
    .chairman-name {
        font-size: 1.3rem;
    }
    .chairman-content {
        padding: 30px 18px;
    }
    .chairman-main-title {
        font-size: 1.65rem;
    }
    .chairman-p {
        font-size: 0.95rem;
        line-height: 1.75;
        text-align: left;
    }
    .chairman-p.lead-p {
        font-size: 1.05rem;
    }

    /* Emblem */
    .crest-pedestal-card {
        padding: 28px 18px;
    }
    .emblem-primary-svg {
        height: 130px;
    }
    .crest-trust-title {
        font-size: 1.1rem;
    }
    .emblem-point-card {
        padding: 14px 16px;
        gap: 14px;
    }
    .emblem-card-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        border-radius: 8px;
    }
    .emblem-exact-text {
        font-size: 0.94rem;
        text-align: left;
        line-height: 1.6;
    }

    /* Trustees Table */
    .trust-table {
        min-width: 560px;
    }
    .trust-table th,
    .trust-table td {
        padding: 12px 14px;
        font-size: 0.88rem;
    }

    /* Contact */
    .contact-card {
        padding: 30px 18px;
    }
    .contact-card-header h3 {
        font-size: 1.4rem;
    }
    .map-card {
        min-height: 300px;
        height: 300px;
    }
    .map-card iframe {
        min-height: 300px;
        height: 300px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-top {
        padding: 40px 0 25px;
    }
    .footer-bottom {
        padding: 18px 0;
        font-size: 0.82rem;
    }
    .back-to-top {
        bottom: 18px;
        right: 18px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* --- 4. Extra Small Phones (max-width: 480px) --- */
@media (max-width: 480px) {
    .header-top-area {
        padding: 16px 0 14px;
    }
    .header-inner-container {
        padding: 0 12px;
        gap: 10px;
    }
    .mobile-trio-row {
        gap: 12px;
        margin-bottom: 2px;
    }
    .mobile-trio-row .founder-frame-card {
        width: 76px;
        height: 96px;
    }
    .mobile-trio-row .founder-overlay-label {
        font-size: 8.5px;
        padding: 3px 4px;
        line-height: 1.15;
    }
    .mobile-trio-row .trust-crest-logo {
        height: 66px;
    }
    .trust-main-heading {
        font-size: 21px !important;
        line-height: 1.25;
    }
    .trust-sub-heading {
        font-size: 14.5px !important;
        margin-top: 5px;
    }
    .hero-banner-viewport {
        height: 270px;
    }
    .hero-quote-text {
        font-size: 18px !important;
    }
    .campus-selector {
        max-width: 320px;
        padding: 3px;
    }
    .campus-selector-button {
        padding: 9px 10px;
        font-size: 12.5px;
        gap: 4px;
    }
    .home-section-title a {
        font-size: 22px;
    }
    .section-title {
        font-size: 1.55rem;
    }
    .section-badge {
        font-size: 0.78rem;
        padding: 4px 12px;
    }
    .history-card,
    .vision-card,
    .chairman-content,
    .contact-card {
        padding: 22px 14px;
    }
    .chairman-photo-frame {
        width: 170px;
        height: 220px;
    }
    .crest-motto-wrap {
        flex-direction: column;
        gap: 6px;
    }
    .crest-motto-line {
        width: 60px;
        height: 1px;
    }
    .crest-trust-subtitle {
        white-space: normal;
        text-align: center;
        font-size: 0.9rem;
    }
    .emblem-point-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 10px;
        padding: 14px 12px;
        border-left: 1px solid #e2e8f0;
        border-top: 3px solid #c5a47e;
    }
    .emblem-exact-text {
        text-align: center;
        font-size: 0.9rem;
    }
    .contact-item {
        gap: 12px;
    }
    .contact-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    .maintenance-modal-content {
        padding: 24px 16px;
        margin: 15px;
    }
}

/* --- 5. Compact Small Mobile (max-width: 360px) --- */
@media (max-width: 360px) {
    .mobile-trio-row {
        gap: 8px;
    }
    .mobile-trio-row .founder-frame-card {
        width: 68px;
        height: 86px;
    }
    .mobile-trio-row .founder-overlay-label {
        font-size: 8px;
        padding: 2px 3px;
    }
    .mobile-trio-row .trust-crest-logo {
        height: 58px;
    }
    .trust-main-heading {
        font-size: 19px !important;
    }
    .trust-sub-heading {
        font-size: 13.5px !important;
    }
}
