/* 
 * XPERT GROUP OF INSTITUTIONS - Main Website Styling
 * Design Inspiration: Modern Educational Institution Architecture
 * Developed & Designed by Cyber Arena Tech
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Meetei+Mayek:wght@500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary-navy: #0A2240;
    --primary-navy-dark: #051326;
    --accent-gold: #FFC107;
    --accent-gold-hover: #E0A800;
    --accent-crimson: #C52828;
    --text-dark: #0F172A;
    --text-muted: #475569;
    --text-light: #F8FAFC;
    --bg-light: #F8FAFC;
    --bg-surface: #FFFFFF;
    --border-color: #CBD5E1;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 14px rgba(10,34,64,0.1);
    --shadow-lg: 0 14px 36px rgba(10,34,64,0.16);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* ==================== TOP ANNOUNCEMENT TICKER & UTILITY BAR ==================== */
.top-utility-bar {
    background-color: var(--primary-navy-dark);
    color: #E2E8F0;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    overflow: hidden;
}

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

.top-info-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-info-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-info-item i {
    color: var(--accent-gold);
}

.cohsem-badge {
    background: rgba(255, 193, 7, 0.18);
    color: #FFF;
    border: 1px solid var(--accent-gold);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Bright Yellow Pill Button for ERP Login */
.top-erp-btn {
    background: linear-gradient(135deg, #FFC107, #E0A800);
    color: #0A2240 !important;
    font-weight: 800;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.4);
    border: 1px solid #FFD54F;
    white-space: nowrap;
    transition: var(--transition);
}

.top-erp-btn:hover {
    background: linear-gradient(135deg, #FFD54F, #FFC107);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(255, 193, 7, 0.6);
}

/* Announcement Ticker */
.ticker-wrap {
    background: #0D2D54;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    overflow: hidden;
    width: 100%;
}

.ticker-title {
    background: var(--accent-crimson);
    color: #FFF;
    padding: 5px 14px;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    margin-right: 15px;
    flex-shrink: 0;
}

.ticker-content {
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: tickerAnim 25s linear infinite;
}

.ticker-wrap:hover .ticker-content {
    animation-play-state: paused;
}

@keyframes tickerAnim {
    0% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ==================== NAVIGATION BAR ==================== */
.main-header {
    background: var(--bg-surface);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

/* Distinct Big Stylish Meitei Mayek Title */
.meitei-name {
    display: block;
    font-family: 'Noto Sans Meetei Mayek', sans-serif;
    font-weight: 800;
    font-size: 1.28rem;
    color: var(--primary-navy);
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 3px;
}

/* Stacked Big English Title with OF in middle */
.brand-title-stacked {
    display: flex;
    flex-direction: column;
    line-height: 1.02;
    margin: 1px 0;
}

.brand-title-stacked .bt-main {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-navy);
    letter-spacing: 0.6px;
}

.brand-title-stacked .bt-of {
    font-family: 'Outfit', sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--accent-crimson);
    letter-spacing: 1px;
    margin: 1px 0;
}

.brand-motto {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 2px;
}

/* Distinct & Bigger Navigation Menu Links */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-grow: 1;
}

.nav-item {
    font-weight: 800;
    font-size: 1.02rem;
    color: #0F172A;
    position: relative;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.2px;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
    color: var(--primary-navy);
    background-color: rgba(10, 34, 64, 0.06);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: var(--accent-gold);
    transition: var(--transition);
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
}

.nav-item:hover::after, .nav-item.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.cta-btn-apply {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
    color: #0A2240 !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.92rem;
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    white-space: nowrap;
}

.cta-btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 193, 7, 0.6);
}

.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-navy);
    cursor: pointer;
}

/* ==================== HERO SLIDER ==================== */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 520px;
    max-height: 700px;
    overflow: hidden;
    background: var(--primary-navy-dark);
}

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

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

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

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 34, 64, 0.92) 0%, rgba(10, 34, 64, 0.65) 50%, rgba(0, 0, 0, 0.35) 100%);
}

.slide-content {
    position: relative;
    z-index: 20;
    max-width: 760px;
    color: #FFFFFF;
}

.slide-tag {
    display: inline-block;
    background: var(--accent-gold);
    color: #0A2240;
    font-weight: 800;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.slide-title {
    font-size: 3.2rem;
    color: #FFFFFF;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.15;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.slide-subtitle {
    font-size: 1.2rem;
    color: #F1F5F9;
    margin-bottom: 30px;
    font-weight: 500;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    right: 40px;
    z-index: 30;
    display: flex;
    gap: 10px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.4);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

/* ==================== QUICK HIGHLIGHT CARDS ==================== */
.quick-cards-section {
    margin-top: -60px;
    position: relative;
    z-index: 40;
    padding-bottom: 50px;
}

.quick-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quick-card {
    background: var(--bg-surface);
    padding: 26px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--accent-gold);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quick-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--accent-crimson);
}

.quick-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(10,34,64,0.08);
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.quick-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.quick-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.quick-card-link {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-card-link i {
    transition: var(--transition);
}

.quick-card-link:hover i {
    transform: translateX(4px);
}

/* ==================== SECTION LAYOUT & HEADINGS ==================== */
.section-padding {
    padding: 75px 0;
}

.section-title-wrap {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px auto;
}

.section-subhead {
    color: var(--accent-gold);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.88rem;
    margin-bottom: 8px;
    display: block;
}

.section-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.section-title-bar {
    width: 75px;
    height: 4px;
    background: var(--accent-gold);
    margin: 0 auto;
    border-radius: 2px;
}

/* ==================== ABOUT & STATS SECTION ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img-box {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-box img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.about-img-box:hover img {
    transform: scale(1.03);
}

.about-badge-floating {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--primary-navy);
    color: #FFF;
    padding: 18px 26px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-gold);
    box-shadow: var(--shadow-md);
}

.about-badge-floating h4 {
    color: var(--accent-gold);
    font-size: 2rem;
    margin-bottom: 2px;
}

.about-content-box p {
    margin-bottom: 18px;
    color: #334155;
    font-size: 0.98rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 24px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.highlight-item i {
    color: var(--accent-gold);
    font-size: 1.4rem;
    margin-top: 2px;
}

/* ==================== LEADERSHIP MESSAGES ==================== */
.leadership-section {
    background: #F1F5F9;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.leader-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.leader-img-holder {
    height: 250px;
    overflow: hidden;
    position: relative;
    background: #CBD5E1;
}

.leader-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.leader-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.leader-role {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-crimson);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.leader-name {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.leader-quote {
    font-size: 0.88rem;
    font-style: italic;
    color: var(--text-muted);
    border-left: 3px solid var(--accent-gold);
    padding-left: 10px;
    margin-bottom: 14px;
}

/* ==================== YOUTUBE VIDEO SECTION ==================== */
.video-section {
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-navy-dark));
    color: #FFF;
    padding: 85px 0;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center;
}

.video-text h2 {
    color: #FFFFFF;
    font-size: 2.4rem;
    margin-bottom: 18px;
}

.video-text p {
    color: #CBD5E1;
    margin-bottom: 26px;
    font-size: 1rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(0,0,0,0.4);
    border: 3px solid rgba(255,255,255,0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==================== NOTICES & UPCOMING EVENTS ==================== */
.notices-events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.widget-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-navy);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.widget-header h3 {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notice-item {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.notice-item:hover {
    border-color: var(--accent-gold);
    background: #FFF;
}

.notice-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.78rem;
    margin-bottom: 6px;
}

.badge-urgent {
    background: var(--accent-crimson);
    color: #FFF;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
}

.badge-cat {
    background: #E2E8F0;
    color: var(--text-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.notice-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.event-card-item {
    display: flex;
    gap: 18px;
    padding: 16px;
    background: #F8FAFC;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.event-date-box {
    background: var(--primary-navy);
    color: #FFF;
    min-width: 65px;
    height: 65px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.event-date-box .day {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-gold);
}

.event-date-box .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
}

/* ==================== SUBJECT COMBINATIONS & FEE TABLES ==================== */
.table-responsive {
    overflow-x: auto;
    background: #FFF;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    -webkit-overflow-scrolling: touch;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    min-width: 500px;
}

.custom-table th {
    background: var(--primary-navy);
    color: #FFF;
    padding: 16px 20px;
    font-weight: 800;
}

.custom-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.custom-table tbody tr:nth-child(even) {
    background-color: #F8FAFC;
}

.custom-table tbody tr:hover {
    background-color: #F1F5F9;
}

/* ==================== PHOTO GALLERY ==================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 38px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 9px 22px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: #FFF;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-navy);
    color: #FFF;
    border-color: var(--primary-navy);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.gallery-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow-sm);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10,34,64,0.8);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #FFF;
    padding: 16px;
    text-align: center;
}

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

/* ==================== UNIFORM GUIDELINES ==================== */
.uniform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.uniform-card {
    background: #FFF;
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent-gold);
}

.uniform-card.girls {
    border-left-color: var(--accent-crimson);
}

.uniform-card h3 {
    font-size: 1.35rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.uniform-list li {
    padding: 9px 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.98rem;
}

.uniform-list li i {
    color: var(--accent-gold);
}

/* ==================== FOOTER & CREDITS ==================== */
.main-footer {
    background: var(--primary-navy-dark);
    color: #CBD5E1;
    padding-top: 65px;
    width: 100%;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 55px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
    color: #FFF;
    font-size: 1.2rem;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 8px;
}

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

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

.footer-links a {
    color: #94A3B8;
    font-size: 0.92rem;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

.footer-bottom {
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: #94A3B8;
}

.dev-credit {
    font-weight: 800;
    color: var(--accent-gold);
}

/* Container */
.container {
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== RESPONSIVE BREAKPOINTS (DESKTOP, LAPTOP, TABLET, MOBILE) ==================== */

/* Standard Desktop & Large Laptops */
@media (max-width: 1440px) {
    .container {
        max-width: 1320px;
    }
    .nav-links {
        gap: 4px;
    }
    .nav-item {
        font-size: 0.92rem;
        padding: 6px 9px;
    }
    .meitei-name {
        font-size: 1.15rem;
    }
    .brand-title-stacked .bt-main {
        font-size: 1.15rem;
    }
}

/* Mid Laptops (1200px - 1365px) */
@media (max-width: 1365px) {
    .container {
        max-width: 1200px;
    }
    .nav-links {
        gap: 2px;
    }
    .nav-item {
        font-size: 0.88rem;
        padding: 5px 7px;
    }
    .meitei-name {
        font-size: 1.05rem;
    }
    .brand-title-stacked .bt-main {
        font-size: 1.08rem;
    }
    .brand-logo-img {
        height: 52px;
    }
}

/* Small Laptops (1025px - 1199px) */
@media (max-width: 1199px) {
    .nav-links {
        gap: 1px;
    }
    .nav-item {
        font-size: 0.84rem;
        padding: 4px 6px;
    }
    .meitei-name {
        font-size: 0.98rem;
    }
    .brand-title-stacked .bt-main {
        font-size: 1rem;
    }
    .brand-logo-img {
        height: 48px;
    }
}

/* Tablet Breakpoint (769px - 1024px) */
@media (max-width: 1024px) {
    .quick-cards-grid, .leadership-grid, .gallery-grid, .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid, .video-grid, .notices-events-grid, .uniform-grid {
        grid-template-columns: 1fr;
    }
    .mobile-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #FFF;
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        align-items: flex-start;
        gap: 12px;
        border-top: 3px solid var(--accent-gold);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-item {
        font-size: 1.1rem;
        font-weight: 800;
        width: 100%;
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-item::after {
        display: none;
    }
}

/* SMARTPHONE & MOBILE SCREENS (<= 768px) */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .container {
        padding: 0 16px !important;
        max-width: 100% !important;
    }

    /* Top Utility Bar Mobile Layout */
    .top-utility-bar {
        padding: 6px 0;
        font-size: 0.78rem;
    }

    .top-bar-flex {
        flex-direction: column;
        gap: 6px;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .top-info-left {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 12px;
        width: 100%;
    }

    .top-info-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 12px;
        width: 100%;
    }

    .top-info-item {
        font-size: 0.76rem;
        word-break: break-all;
    }

    .top-erp-btn {
        padding: 5px 16px;
        font-size: 0.78rem;
    }

    /* Announcement Ticker Mobile */
    .ticker-wrap {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .ticker-title {
        padding: 3px 8px;
        font-size: 0.68rem;
        margin-right: 8px;
    }

    /* Header Container & Brand Logo Mobile */
    .header-container {
        padding: 8px 14px;
    }

    .brand-logo {
        max-width: calc(100% - 48px);
        gap: 10px;
    }

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

    .logo-text-group {
        min-width: 0;
        overflow: hidden;
    }

    .meitei-name {
        font-size: 0.9rem;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 1px;
    }

    .brand-title-stacked .bt-main {
        font-size: 0.95rem;
        letter-spacing: 0.2px;
    }

    .brand-title-stacked .bt-of {
        font-size: 0.62rem;
        margin: 0;
    }

    .brand-motto {
        font-size: 0.65rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-toggle {
        font-size: 1.6rem;
        padding: 4px;
        flex-shrink: 0;
    }

    /* Hero Slider Mobile */
    .hero-slider-section {
        min-height: 420px;
        height: auto;
    }

    .slide-item {
        min-height: 420px;
        padding: 40px 0 50px 0;
    }

    .slide-tag {
        font-size: 0.74rem;
        padding: 4px 12px;
        margin-bottom: 12px;
    }

    .slide-title {
        font-size: 1.85rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .slide-subtitle {
        font-size: 0.95rem;
        margin-bottom: 22px;
        line-height: 1.4;
    }

    .slider-controls {
        bottom: 15px;
        right: 15px;
    }

    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    /* Quick Cards Mobile */
    .quick-cards-section {
        margin-top: 0;
        padding: 24px 0 35px 0;
    }

    .quick-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-padding {
        padding: 45px 0;
    }

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

    .about-img-box img {
        height: 250px;
    }

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

    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .video-text h2 {
        font-size: 1.85rem;
    }

    .notices-events-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .gallery-card {
        height: 175px;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* NARROW PHONES (<= 420px) */
@media (max-width: 420px) {
    .brand-logo-img {
        height: 40px;
    }
    .meitei-name {
        font-size: 0.82rem;
    }
    .brand-title-stacked .bt-main {
        font-size: 0.85rem;
    }
    .slide-title {
        font-size: 1.6rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
