/* =============================================
   GOOGLE FONTS
   Merriweather – headings
   Lora         – body text
   Roboto Condensed – navigation
============================================= */

/* =============================================
   ROOT VARIABLES
============================================= */
:root {
    --primary:      #104E8B;
    --primary-dark: #0a3660;
    --secondary:    #74C2E1;
    --accent:       #ffcc00;
    --danger:       #ff2400;
    --nav-hover:    #022d57;
    --dark-bg:      #2d2d2d;
    --light-bg:     #f8f9fa;
    --gold:         #c8972b;
    --border:       #dee2e6;
    --shadow:       0 2px 12px rgba(0,0,0,.10);
    --shadow-hover: 0 6px 24px rgba(0,0,0,.18);
    --radius:       8px;
    --transition:   all .25s ease;
}

/* =============================================
   BASE RESET
============================================= */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--primary);
    font-family: 'Lora', Georgia, serif;
    font-size: 15px;
    color: #222;
}

.site-wrapper {
    background: #fff;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* =============================================
   TYPOGRAPHY
============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #1a1a1a;
}

p {
    font-family: 'Lora', Georgia, serif;
    font-size: 15px !important;
    line-height: 28px;
    color: #333;
    text-align: justify;
    margin-bottom: 10px;
}

li {
    font-family: 'Lora', Georgia, serif;
    font-size: 15px;
    line-height: 28px;
}

td, th { font-family: 'Lora', Georgia, serif; font-size: 14px; }

a { font-family: 'Lora', Georgia, serif; }

h6 { color: #F70106; }

/* =============================================
   HEADER BANNER
============================================= */
.header-banner { position: relative; overflow: hidden; }

.header-banner img { width: 100%; display: block; }

/* =============================================
   NAVIGATION
============================================= */
#cssmenu {
    background: var(--danger);
    font-family: 'Roboto Condensed', Tahoma, Arial, sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

#cssmenu ul, #cssmenu li { list-style: none; margin: 0; padding: 0; }

#cssmenu > ul {
    text-transform: uppercase;
    display: flex;
    flex-wrap: wrap;
}

#cssmenu ul li {
    float: left;
    min-height: 1px;
    vertical-align: middle;
    position: relative;
}

#cssmenu > ul > li > a {
    display: block;
    line-height: 46px;
    font-size: 12px;
    font-weight: 700;
    background: var(--danger);
    color: #fff;
    padding: 0 18px;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

#cssmenu > ul > li > a:hover,
#cssmenu > ul > li.active > a {
    background: var(--nav-hover);
    color: #fff;
}

#cssmenu .admin-btn { margin-left: auto; }

#cssmenu .admin-btn > a {
    background: var(--accent) !important;
    color: #000 !important;
    font-weight: 900;
    letter-spacing: 1px;
}

#cssmenu .admin-btn > a:hover {
    background: #e6b800 !important;
    color: #000 !important;
}

#cssmenu ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 998;
    min-width: 210px;
    border-top: 3px solid var(--nav-hover);
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    text-transform: none;
}

#cssmenu ul ul ul { top: 0; left: 100%; border-top: none; }

#cssmenu ul li:hover > ul { display: block; }

#cssmenu ul ul li { float: none; }

#cssmenu ul ul a {
    display: block;
    background: var(--nav-hover);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
    line-height: 150%;
    padding: 11px 20px;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    transition: var(--transition);
}

#cssmenu ul ul li > a:hover { background: var(--danger); }

/* =============================================
   SCROLLING NEWS BAR
============================================= */
.news-marquee-bar {
    background: #111;
    color: #fff;
    height: 42px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 12px;
    margin-top: 0;
    margin-bottom: 0;
    border-bottom: 2px solid var(--danger);
}

.news-marquee-bar .label {
    background: var(--danger);
    color: #fff;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Roboto Condensed', sans-serif;
}

.scroll-left-container { overflow: hidden; flex: 1; }

.scroll-left-inner {
    display: inline-block;
    white-space: nowrap;
    animation: scrollLeft 40s linear infinite;
    font-size: 14px;
}

.scroll-left-inner:hover { animation-play-state: paused; }

@keyframes scrollLeft {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* =============================================
   NOTICE BOARD SCROLL
============================================= */
.scroll-up-container { height: 305px; overflow: hidden; position: relative; }

.scroll-up-inner { animation: scrollUp 22s linear infinite; }

.scroll-up-inner:hover { animation-play-state: paused; }

@keyframes scrollUp {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.notice-board-wrap { background: #f0f4f8; height: 395px; }

.notice-board-header {
    background: var(--primary);
    color: #fff;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Merriweather', serif;
    letter-spacing: 0.3px;
}

.notice-item h6 {
    color: var(--danger);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
    text-align: left;
}

.notice-item p {
    font-size: 13px !important;
    color: #444;
    text-align: left;
    line-height: 22px;
}

/* =============================================
   HOME PAGE — SLIDER
============================================= */
.slider-bg { background: #1a1a1a; width: 100%; }

.slider-wrapper { position: relative; overflow: hidden; width: 100%; }

.slider-img { width: 100%; display: block; max-height: 480px; object-fit: cover; }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.55);
    color: #fff;
    border: none;
    font-size: 22px;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 3px;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover { background: rgba(0,0,0,.85); }

.slider-btn-prev { left: 12px; }
.slider-btn-next { right: 12px; }

/* =============================================
   HOME PAGE — LAYOUT
============================================= */
.main-content-row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 3px solid var(--border);
}

.welcome-col {
    flex: 0 0 75%;
    max-width: 75%;
    padding: 30px 36px;
    box-sizing: border-box;
    border-right: 2px solid var(--border);
}

.noticeboard-col {
    flex: 0 0 25%;
    max-width: 25%;
    background: #f0f4f8;
    box-sizing: border-box;
}

.noticeboard-inner { height: 395px; }

.section-heading-red {
    font-family: 'Merriweather', Georgia, serif;
    color: var(--danger);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.notice-item-wrap {
    padding: 10px 14px;
    border-bottom: 1px solid #d0dce8;
}

.notice-h6   { color: var(--danger); text-align: left; font-size: 13px; }
.notice-p    { text-align: left; font-size: 13px !important; padding: 0; line-height: 20px; color: #555; }

/* =============================================
   HOME PAGE — INFO SECTION
============================================= */
.info-section-row {
    width: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf5 100%);
    padding: 28px 20px;
    box-sizing: border-box;
    border-bottom: 3px solid var(--border);
}

.info-boxes-flex { display: flex; gap: 22px; flex-wrap: wrap; }

.info-box-flex-item { flex: 1; min-width: 220px; }

.info-box {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    height: 420px;
    text-align: left;
    box-shadow: var(--shadow);
    background: #fff;
    transition: var(--transition);
}

.info-box:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.info-box .box-header {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
}

.info-box .box-header.gold { background: linear-gradient(135deg, #c8972b, #e6b800); color: #fff; }
.info-box .box-header.blue { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.info-box .box-header.red  { background: linear-gradient(135deg, #cc0000, var(--danger)); color: #fff; }

.info-box .box-body {
    padding: 12px 16px;
    overflow: auto;
    height: calc(420px - 50px);
}

.info-box a {
    display: block;
    color: var(--primary);
    font-size: 13px !important;
    padding: 7px 0;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
    font-family: 'Lora', serif;
}

.info-box a:last-child { border-bottom: none; }

.info-box a:hover { color: var(--danger); padding-left: 6px; }

/* =============================================
   HOME PAGE — PHOTO STRIP
============================================= */
.photo-strip {
    width: 100%;
    background: #1a1a1a;
    height: 270px;
    overflow: hidden;
    padding: 18px 0;
    box-sizing: border-box;
    border-top: 4px solid var(--primary);
}

.photo-strip-inner {
    display: flex;
    gap: 16px;
    align-items: center;
    height: 234px;
    animation: photoScroll 22s linear infinite;
    white-space: nowrap;
    padding: 0 20px;
}

.photo-strip-inner:hover { animation-play-state: paused; }

.photo-strip-img {
    width: 360px;
    height: 234px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 6px;
    border: 3px solid rgba(255,255,255,.15);
    transition: var(--transition);
}

.photo-strip-img:hover { border-color: var(--accent); }

@keyframes photoScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
   TABLES
============================================= */
.table-jss th { background: var(--primary); color: #fff; border-color: #0d3d6e; }

.jss-table { border-color: #000078 !important; }

.jss-th {
    background: var(--primary);
    color: #fff;
    border-color: #000078;
    text-align: center;
    padding: 8px 6px;
    font-family: 'Merriweather', serif;
    font-size: 13px;
}

.jss-td {
    border-color: #000078;
    text-align: center;
    padding: 7px 6px;
}

.jss-td-vm {
    border-color: #000078;
    text-align: center;
    vertical-align: middle;
    padding: 8px;
}

.jss-td-justify {
    border-color: #000078;
    text-align: justify;
    vertical-align: middle;
    padding: 10px 12px;
    line-height: 26px;
}

/* Bootstrap table override */
.table > :not(caption) > * > * { padding: 8px 10px; }

/* =============================================
   PAGE TITLE BAR
============================================= */
.page-title-bar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 14px 20px;
    margin-bottom: 22px;
    margin-left: -12px;
    margin-right: -12px;
    font-family: 'Merriweather', Georgia, serif;
    letter-spacing: 0.5px;
    border-left: 5px solid var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.page-title-bar h5 { margin: 0; font-size: 16px; font-weight: 700; color: #fff; }

/* =============================================
   COLOR / HEADING UTILITIES
============================================= */
.page-heading {
    color: var(--primary);
    font-family: 'Merriweather', Georgia, serif;
}

.red-heading {
    color: var(--danger);
    font-weight: 700;
    font-family: 'Merriweather', Georgia, serif;
}

.red-subheading {
    color: var(--danger);
    font-weight: 700;
    font-size: 15px;
    font-family: 'Merriweather', Georgia, serif;
}

.text-primary-jss { color: var(--primary); }
.text-red-jss     { color: var(--danger); }
.text-green-jss   { color: #006600; }
.text-grey        { color: #888; }

/* =============================================
   IMAGE / STAFF UTILITIES
============================================= */
.staff-photo-lg  { height: 180px; width: 100%; object-fit: cover; }
.staff-photo-md  { height: 160px; width: 100%; object-fit: cover; }
.staff-photo-sm  { width: 70px;  height: 80px;  object-fit: cover; border-radius: 4px; }
.staff-photo-xs  { width: 60px;  height: 70px;  object-fit: cover; border-radius: 4px; }
.admin-thumb     { width: 40px;  height: 45px;  object-fit: cover; border-radius: 3px; }

.staff-placeholder-lg {
    height: 180px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-placeholder-md {
    height: 160px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-4x  { font-size: 4rem;   color: #aaa; }
.icon-3x  { font-size: 3rem;   color: #aaa; }
.icon-2x  { font-size: 2rem;   color: #aaa; }
.icon-18x { font-size: 1.8rem; color: #aaa; }
.icon-15x { font-size: 1.5rem; }
.icon-25x { font-size: 2.5rem; }
.icon-xs  { font-size: 11px; }

.gallery-img        { height: 200px; object-fit: cover; width: 100%; }
.alumni-gallery-img { height: 180px; object-fit: cover; width: 100%; }
.admin-gallery-img  { height: 120px; object-fit: cover; width: 100%; }

.pdf-icon  { width: 28px; height: 28px; vertical-align: middle; }
.news-gif  { width: 36px; height: 18px; vertical-align: middle; }

/* =============================================
   PRINCIPAL PAGE
============================================= */
.principal-card {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    border: 1px solid #dde3ed;
    border-radius: 12px;
    padding: 36px 48px;
    max-width: 920px;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(16,78,139,.12);
    border-top: 4px solid var(--primary);
}

.principal-details { flex: 1; }

.principal-details p {
    font-size: 15px !important;
    margin-bottom: 12px;
    text-align: left;
    line-height: 26px;
    color: #222;
    border-bottom: 1px dashed #eee;
    padding-bottom: 6px;
}

.principal-details p:last-child { border-bottom: none; }

.principal-label {
    color: var(--danger);
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    font-size: 14px;
}

.principal-details strong {
    color: #006600;
    font-family: 'Lora', Georgia, serif;
}

.principal-photo-wrap {
    flex-shrink: 0;
    border: 5px solid #444;
    padding: 4px;
    background: #2a2a2a;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
}

.principal-photo {
    width: 190px;
    height: 230px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.principal-photo-placeholder {
    width: 190px;
    height: 230px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================
   ALUMNI ASSOCIATION PAGE
============================================= */
.alumni-card {
    width: 100%;
}

.alumni-header {
    background: #ff2400;
    color: #fff;
    text-align: center;
    padding: 6px 4px;
    font-size: 13px;
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    line-height: 1.4;
}

.alumni-header small {
    font-size: 11px;
    font-weight: 400;
    font-family: 'Lora', Georgia, serif;
}

.alumni-photo-wrap {
    border: 1px solid #ccc;
    padding: 7px;
    margin-top: -1px;
    background: #fff;
}

.alumni-photo-wrap img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 3/4;
}

/* =============================================
   ABOUT US PAGE
============================================= */
.about-section-heading {
    color: #006600;
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.about-hr {
    border: none;
    border-top: 2px solid #ccc;
    margin: 6px 0 14px 0;
}

.about-italic {
    font-style: italic;
    color: #444;
    font-size: 14px !important;
    line-height: 26px;
    text-align: left;
}

.about-vision-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-vision-list li {
    font-size: 14px;
    line-height: 26px;
    color: #444;
    padding: 2px 0 2px 20px;
    position: relative;
    font-style: italic;
}

.about-vision-list li::before {
    content: '\279C';
    position: absolute;
    left: 0;
    color: #006600;
    font-style: normal;
}

.about-list {
    margin: 10px 0 14px 20px;
    padding: 0;
}

.about-list li {
    font-size: 15px;
    line-height: 28px;
    color: #333;
}

/* =============================================
   ADMISSION PAGE
============================================= */
.admission-criteria-title {
    color: #009246;
    font-size: 16px;
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
}

.admission-right-col {
    border-left: 2px solid #dee2e6;
    padding-left: 24px;
}

.admission-list { font-size: 14px; line-height: 28px; }

.admission-text { font-size: 14px; text-align: justify; line-height: 26px; }

/* =============================================
   TRADES PAGE
============================================= */
.trade-link { color: var(--primary); font-weight: 600; text-decoration: underline; }

.trade-link:hover { color: var(--danger); }

/* =============================================
   DOWNLOADS PAGE
============================================= */
.download-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    background: #fff;
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.download-item:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* =============================================
   MISC UTILITIES
============================================= */
.map-iframe   { border: 0; border-radius: var(--radius); }
.max-w-640    { max-width: 640px; }
.table-auto   { width: auto; }
.admin-info-text { font-size: 13px; }

/* =============================================
   SECTION DIVIDER
============================================= */
.section-divider {
    border: none;
    border-top: 2px solid var(--border);
    margin: 20px 0;
}

/* =============================================
   FOOTER
============================================= */
footer.site-footer {
    background: var(--dark-bg);
    min-height: 60px;
    border-top: 4px solid var(--primary);
    padding: 16px;
    text-align: center;
}

.footer-txt {
    font-size: 13px;
    font-family: 'Lora', Georgia, serif;
    color: #ccc;
}

footer.site-footer a {
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

footer.site-footer a:hover { color: #fff; text-decoration: underline; }

/* =============================================
   MOBILE NAVIGATION
============================================= */
.nav-toggler-btn {
    display: none;
    background: var(--nav-hover);
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-size: 20px;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

@media (max-width: 991px) {
    .nav-toggler-btn { display: block; }
    #cssmenu > ul { display: none; flex-direction: column; }
    #cssmenu > ul.open { display: flex; }
    #cssmenu ul li { float: none; width: 100%; }
    #cssmenu ul ul { position: static; display: none; border-top: none; padding-left: 20px; box-shadow: none; }
    #cssmenu ul li.open > ul { display: block; }
    #cssmenu > ul > li > a { line-height: 44px; }
    .welcome-col  { flex: 0 0 100% !important; max-width: 100% !important; border-right: none; border-bottom: 2px solid var(--border); }
    .noticeboard-col { flex: 0 0 100% !important; max-width: 100% !important; }
    .principal-card { flex-direction: column; align-items: center; padding: 24px; gap: 24px; }
    .info-box { height: auto; }
    .info-box .box-body { height: auto; max-height: 300px; }
}

@media (max-width: 576px) {
    .info-boxes-flex { flex-direction: column; }
    .photo-strip-img { width: 260px; height: 170px; }
}
