/* ============================================================
   SACON Global Shared Styles
   Applied to: index.html, application.php, all modules
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Roboto:wght@400;500;600;700&display=swap');

:root {
    --maroon:  #800000;
    --maroon2: #9B1D21;
    --forest:  #1e3a1e;
    --forest2: #2d5a2d;
    --dark:    #1a2e1a;
    --light:   #f5f7f5;
    --text:    #444;
    --radius:  4px;
}

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

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    color: var(--text);
    background: #f3f3ef;
}

.container {
    max-width: 1200px;
}

p {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
}

/* ── TOP ACCESSIBILITY BAR ── */
.site-top-bar {
    /* style.css has a bare `header { position: fixed }` rule that also matches
       this element and lifts it out of flow, overlapping the main header on
       every page that loads style.css. Pin it back into normal flow. */
    position: static;
    width: 100%;
    height: 35px;
    background: #ffdfae;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
/* style.css contains a broad `header` rule for the legacy layout. Keep the
   shared utility bar in normal document flow on pages that load both files. */
header.site-top-bar {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    padding: 0 30px;
    z-index: auto;
}
.site-utility-links {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #111;
    font-size: 15px;
    white-space: nowrap;
}
.site-utility-links a {
    color: #111;
    text-decoration: none;
}
.site-utility-links a:hover { text-decoration: underline; }
.site-social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-social-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #084b39;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.site-social-icon.x { font-size: 15px; }
.site-social-icon.youtube { width: 26px; height: 20px; border-radius: 5px; font-size: 12px; }

/* ── MAIN HEADER ── */
.site-main-header {
    width: 100%;
    height: 96px;
    background: #faf9f1;
    display: grid;
    grid-template-columns: 29% 48% 23%;
    align-items: center;
    border-bottom: 1px solid #eee;
}
.site-wii-section {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 18px;
}
.site-header-logo-left {
    /*width: 235px;*/
    max-width: 76%;
    height: auto;
    object-fit: contain;
}
.site-header-center {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.site-header-center-logo {
    display: block;
    width: min(100%, 500px);
    height: auto;
    max-height: 86px;
    object-fit: contain;
}
.site-title-box {
    /* Shrink-to-fit: the box takes the width of its widest line (the English
       title), giving the Hindi line above a concrete width to justify against. */
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 5px 10px 2px;
}
.site-header-hindi {
    /* Stretch word gaps so this line matches the English title's width. */
    text-align: justify;
    text-align-last: justify;
    font-family: 'Noto Sans Devanagari', serif;
    font-size: 23.8px;
    line-height: 1.25;
    font-weight: 700;
    color: #080808;
    margin-bottom: 1px;
}
.site-header-title {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    color: #080808;
    margin-bottom: 3px;
}
.site-header-subtitle {
    font-family: 'Noto Sans Devanagari', serif;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;
    color: #222;
}
.site-header-tagline {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;
    color: #222;
}
.site-right-section {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding-right: 30px;
}
.site-salim-ali-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.site-salim-ali {
    width: 51px;
    height: 51px;
    object-fit: cover;
    border-radius: 2px;
}
.site-header-logo-right {
    width: 55px;
    height: 63px;
    object-fit: contain;
}

/* ── NAV BAR ── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e8ede8;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    margin: 0 auto;
}
.site-nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0; padding: 0;
}
.site-nav-links li a {
    display: block;
    color: #444;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 18px;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}
.site-nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 18px; right: 18px;
    height: 2px;
    background: var(--forest);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform 0.2s;
}
.site-nav-links li a:hover { color: var(--forest); }
.site-nav-links li a:hover::after { transform: scaleX(1); }
.site-nav-links li a.active { color: var(--forest); font-weight: 700; }
.site-nav-links li a.active::after { transform: scaleX(1); }
.site-nav-cta {
    background: var(--forest);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}
.site-nav-cta:hover { background: var(--forest2); }

/* ── FOOTER ── */
.site-footer {
    background: url('../images/footer-bg.jpg') center/cover no-repeat;
    position: relative;
    color: rgba(255,255,255,0.85);
    padding: 50px 0 0;
}
.site-footer::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(26,46,26,0.88);
    pointer-events: none;
}
.site-footer .container { position: relative; z-index: 2; }
.site-footer-top { padding-bottom: 40px; }
.site-footer-logo { height: 80px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.site-footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
}
.site-footer-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.25);
}
.site-footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer-links li { margin-bottom: 10px; }
.site-footer-links li a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.site-footer-links li a::before {
    content: '\203a';
    font-size: 18px;
    line-height: 1;
    color: rgba(255,255,255,0.4);
}
.site-footer-links li a:hover { color: #fff; }
.site-footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
}
.sfc-icon {
    width: 34px; height: 34px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--forest);
    flex-shrink: 0;
    margin-top: 1px;
}
.site-footer-contact a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}
.site-footer-contact a:hover { color: #fff; text-decoration: underline; }
.site-footer-bottom-bar {
    background: rgba(0,0,0,0.30);
    padding: 16px 0;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}
.site-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
.site-footer-bottom-inner a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer-bottom-inner a:hover { color: #fff; }
.sfb-sep { opacity: 0.3; margin: 0 4px; }

/* ── RESPONSIVE ── */
@media (min-width: 1000px) {
    .site-main-header { height: 96px; grid-template-columns: 28% 51% 21%; }
    .site-header-logo-left { /*width: 238px;*/ }
    .site-right-section { gap: 45px; padding-right: 25px; }
}
@media (max-width: 900px) {
    .site-top-bar, header.site-top-bar { padding: 0 15px; }
    .site-main-header { grid-template-columns: 25% 55% 20%; }
    .site-header-logo-left { width: 152px; }
    .site-header-center-logo { width: 100%; }
    .site-right-section { gap: 18px; padding-right: 12px; }
    .site-salim-ali { width: 43px; height: 43px; }
    .site-header-logo-right { width: 45px; height: 52px; }
}
@media (max-width: 650px) {
    .site-top-bar, header.site-top-bar { height: auto; min-height: 35px; padding: 8px 10px; }
    .site-top-bar { display: none; }
    .site-social-icons { display: none; }
    .site-main-header { height: auto; min-height: 190px; grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding: 15px 10px; gap: 12px; }
    .site-wii-section { padding: 0; height: auto; }
    .site-header-logo-left { width: 160px; }
    .site-header-center { height: auto; }
    .site-header-center-logo { width: min(100%, 500px); }
    .site-right-section { height: auto; padding: 0; gap: 35px; }
    .site-salim-ali { width: 48px; height: 48px; }
    .site-header-logo-right { width: 49px; height: 56px; }
}
@media (max-width: 768px) {
    .site-nav { flex-wrap: wrap; padding: 0 12px; }
    .site-nav-links { flex-wrap: wrap; }
    .site-nav-links li a { padding: 10px 12px; font-size: 13px; }
    .site-footer-bottom-inner { flex-direction: column; text-align: center; }
    p { font-size: 16px; }
}
