/*!
Theme Name: bof
Theme URI: https://centavenue.com//
Author: ziauddin khan
Author URI: http://centavenue.com
Description: The Bharat Olympiad Foundation (BOF) is committed to nurturing academic excellence and holistic development among school students across the country.
Version: 1.0.1
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: bof
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

bof is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

:root {
    --primary-color: #10375c;
    /* Navy Blue */
    --primary-dark: #0a2540;
    --text-main: #333333;
    --text-light: #777777;
    --white: #ffffff;
    --bg-light: #f4f6fa;
    --border-color: #e6e6e6;
    --yellow-accent: #ff7a00;
    --danger: #d32f2f;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Top Bar --- */
.topbar {
    background-color: var(--primary-dark);
    color: #dfd2fa;
    font-size: 13px;
    padding: 5px 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left a,
.topbar-right a {
    margin: 0 8px;
    transition: color 0.3s ease;
}

.topbar-left a:hover,
.topbar-right a:hover {
    color: var(--white);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-group {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.icon-btn {
    font-size: 16px;
    cursor: pointer;
}

.contrast-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.contrast-btn.dark {
    background-color: #000;
    border: 1px solid #555;
}

.contrast-btn.light {
    background-color: #fff;
    border: 1px solid #ccc;
}

.lang-btn {
    font-weight: 600;
}

/* Topbar Dropdowns and Search */
.topbar-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.topbar-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    min-width: 130px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.topbar-dropdown-container:hover .topbar-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.topbar-dropdown-menu li {
    border-bottom: 1px solid var(--border-color);
}

.topbar-dropdown-menu li:last-child {
    border-bottom: none;
}

.topbar-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    color: var(--text-main);
    font-size: 13px;
    transition: background 0.3s, color 0.3s;
}

.topbar-dropdown-menu a .material-symbols-outlined {
    font-size: 16px;
    opacity: 0.8;
}

.topbar-dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background-color: var(--white);
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.search-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-box input {
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    border-radius: 4px;
    outline: none;
    font-size: 13px;
    font-family: inherit;
    width: 150px;
}

.search-box button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.search-box button:hover {
    background-color: var(--primary-dark);
}

/* --- Main Header --- */
.main-header {
    background-color: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    height: 80px;
    width: auto;
}

.brand-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.emblem-area .azadi-logo {
    height: 70px;
    width: auto;
}

/* --- Navigation --- */
.main-nav-wrapper {
    background-color: var(--primary-color);
    color: var(--white);
    position: relative;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.main-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0 15px;
    /* keep container padding */
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: var(--white);
    width: 40px;
    height: 40px;
    min-width: 40px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
    padding: 0;
    outline: none;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
}

.mobile-menu-btn:active {
    transform: scale(0.93);
    background: rgba(255, 255, 255, 0.3);
}

.mobile-menu-btn.is-open {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.mobile-menu-btn .material-symbols-outlined {
    font-size: 22px;
    line-height: 1;
    display: block;
    transition: transform 0.25s ease;
}

.mobile-menu-btn.is-open .material-symbols-outlined {
    transform: rotate(90deg);
}

.nav-menu-area {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.apply-online-area {
    background-color: #ee7f1a;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.apply-online-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -30px;
    height: 100%;
    width: 30px;
    background-color: #ee7f1a;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.apply-online-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.apply-online-text:hover {
    color: var(--primary-dark);
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-links>li {
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.nav-links>li:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links>li>a {
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 100%;
    min-height: 56px;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-links a .material-symbols-outlined {
    font-size: 20px;
    margin-right: 6px;
}

/* ── Dropdown Menu ── */
.dropdown-container {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    background-color: var(--white);

    /* Auto-fit to the longest item; cap at 360px for very long labels */
    width: max-content;
    min-width: 200px;
    max-width: 456px;

    list-style: none;
    padding: 6px 0 8px;
    margin: 0;

    border-top: 3px solid var(--yellow-accent);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 32px rgba(10, 37, 64, 0.14), 0 2px 8px rgba(0,0,0,0.08);

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 500;

    /* Prevent wrapping inside items */
    white-space: nowrap;
}

/* Tiny upward caret */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 22px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 6px solid var(--yellow-accent);
}

.dropdown-container:hover > .dropdown-menu,
.dropdown-container:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-menu li:first-child {
    border-top: none;
}

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

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px 11px 16px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
    position: relative;
}

/* Left accent bar on hover */
.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 0;
    background: var(--yellow-accent);
    border-radius: 0 2px 2px 0;
    transition: width 0.18s ease;
}

.dropdown-menu a:hover::before,
.dropdown-menu li.current-menu-item > a::before {
    width: 3px;
}

.dropdown-menu a:hover,
.dropdown-menu li.current-menu-item > a {
    background-color: #f0f4fa;
    color: var(--primary-color);
    padding-left: 20px;
}

.dropdown-menu a .material-symbols-outlined {
    font-size: 17px;
    color: var(--primary-color);
    opacity: 0.75;
    flex-shrink: 0;
    transition: opacity 0.18s, transform 0.18s;
}

.dropdown-menu a:hover .material-symbols-outlined,
.dropdown-menu li.current-menu-item > a .material-symbols-outlined {
    opacity: 1;
    transform: translateX(2px);
}

/* ── Nested / submenu ── */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .nested-menu {
    top: 0;
    left: 100%;
    margin-top: 0;
    border-top: 3px solid var(--yellow-accent);
    border-radius: 0 10px 10px 10px;
    transform: translateX(6px);
}

.dropdown-submenu:hover > .nested-menu,
.dropdown-submenu:focus-within > .nested-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-submenu:hover>.nested-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0);
}

/* --- Ticker --- */
.news-ticker {
    background-color: #fff9db;
    border-bottom: 1px solid #f2e7b1;
}

.ticker-inner {
    display: flex;
    align-items: center;
}

.ticker-label {
    background-color: #fff;
    color: var(--danger);
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid #f2e7b1;
    border-left: 1px solid #f2e7b1;
    z-index: 2;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

.ticker-content {
    flex-grow: 1;
    padding: 0 20px;
    font-size: 14px;
    color: #333;
}

.ticker-content strong {
    color: #c68a00;
    /* important color */
}

.new-tag {
    color: var(--danger);
    font-weight: 700;
}

/* --- Hero Section & Slider --- */
.hero-section {
    position: relative;
    width: 100%;
    background-color: #222;
}

.slider-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.hero-slide {
    min-width: 100%;
    height: auto;
    min-height: 618px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 10px;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Simulate a deep purple gradient overlay on the left */
    background: linear-gradient(0deg, rgb(23 23 23 / 95%) 0%, rgb(53 32 81 / 80%) 25%, rgba(63, 27, 112, 0.1) 60%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text-box {
    display: flex;
    align-items: center;
    max-width: 1060px;
    margin: 0 auto;
}

.orange-bar {
    width: 8px;
    height: 60px;
    background-color: var(--yellow-accent);
    margin-right: 20px;
}

.hero-text-box h2 {
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.slider-dots {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.slider-dots .dot {
    width: 14px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots .dot.active,
.slider-dots .dot:hover {
    background-color: var(--white);
    transform: scale(1.2);
}

/* --- Block Title --- */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 600;
}

.title-icon {
    background-color: #f1f0fa;
    color: var(--primary-color);
    border-radius: 8px;
    padding: 6px;
    font-size: 24px;
}

/* --- Candidate Corner --- */
.candidate-corner {
    padding: 60px 0 30px 0;
    background-image: linear-gradient(to right, rgb(39 39 39 / 52%), rgb(70 70 70 / 12%)), url(images/footer_img.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.candidate-corner .section-title {
    color: #ffffff;
}

.candidate-corner .title-icon {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.candidate-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    padding-right: 5px;
}

/* Custom scrollbar styling for candidate-grid */
.candidate-grid::-webkit-scrollbar {
    height: 8px;
}

.candidate-grid::-webkit-scrollbar-track {
    background: #f4f6fa;
    border-radius: 4px;
}

.candidate-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.candidate-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.candidate-card {
    flex: 0 0 auto;
    width: 179px;
    background-color: var(--white);
    border-radius: 12px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.candidate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.card-text {
    font-size: 15px;
    font-weight: 600;
    color: #444;
}

/* Card Themes */
.pink-card {
    background-color: #fff0f3;
    border-color: #ffe0e6;
}

.pink-card .card-icon {
    color: #f06595;
}

.pink-card:hover {
    border-color: #f06595;
}

.blue-card {
    background-color: #ebf5ff;
    border-color: #d8eafa;
}

.blue-card .card-icon {
    color: #339af0;
}

.blue-card:hover {
    border-color: #339af0;
}

.purple-card {
    background-color: #f3f0ff;
    border-color: #e8e0ff;
}

.purple-card .card-icon {
    color: #845ef7;
}

.purple-card:hover {
    border-color: #845ef7;
}

.yellow-card {
    background-color: #fff9db;
    border-color: #fcf1b8;
}

.yellow-card .card-icon {
    color: #fcc419;
}

.yellow-card:hover {
    border-color: #fcc419;
}

.orange-card {
    background-color: #fff4e6;
    border-color: #ffd8a8;
}

.orange-card .card-icon {
    color: #fd7e14;
}

.orange-card:hover {
    border-color: #fd7e14;
}

.green-card {
    background-color: #ebfbee;
    border-color: #d3f9d8;
}

.green-card .card-icon {
    color: #51cf66;
}

.green-card:hover {
    border-color: #51cf66;
}

/* --- Main Content Area --- */
.main-content {
    padding: 30px 0 60px 0;
}

.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.view-all-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* What's New List */
.whats-new-section {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    border-top: 5px solid var(--primary-color);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom scrollbar styling for news list */
.news-list::-webkit-scrollbar {
    width: 6px;
}

.news-list::-webkit-scrollbar-track {
    background: #f1f0fa;
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.news-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.05);
    border-color: #d0d0d0;
}

.news-icon-wrapper {
    color: var(--primary-color);
    opacity: 0.7;
}

.news-body {
    flex-grow: 1;
}

.news-title {
    font-size: 16px;
    color: #222;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}

.new-badge {
    background-color: var(--danger);
    color: var(--white);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
}

.news-meta .date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-meta .date .material-symbols-outlined {
    font-size: 18px;
}

.view-pdf-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #f1f0fa;
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.view-pdf-btn:hover {
    background-color: #e2dcf7;
}

.view-pdf-btn .material-symbols-outlined {
    font-size: 18px;
}

/* Important Links List */
.important-links-section {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    border-top: 5px solid var(--primary-color);
}

.important-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom scrollbar styling for important links */
.important-links-grid::-webkit-scrollbar {
    width: 6px;
}

.important-links-grid::-webkit-scrollbar-track {
    background: #f1f0fa;
    border-radius: 4px;
}

.important-links-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.important-links-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.link-card {
    border-radius: 8px;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-height: 120px;
    border: 1px solid transparent;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.link-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.link-text {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.link-pink {
    background-color: #fff0f3;
    border-color: #ffe0e6;
    color: #f06595;
}

.link-blue {
    background-color: #ebf5ff;
    border-color: #d8eafa;
    color: #339af0;
}

.link-purple {
    background-color: #f3f0ff;
    border-color: #e8e0ff;
    color: #845ef7;
}

.link-yellow {
    background-color: #fff9db;
    border-color: #fcf1b8;
    color: #fcc419;
}

.link-green {
    background-color: #ebfbee;
    border-color: #d3f9d8;
    color: #51cf66;
}

.link-teal {
    background-color: #e6fcf5;
    border-color: #c3fae8;
    color: #20c997;
}

/* --- About & Chairman Section --- */
.section-padding {
    padding: 50px 0;
}

.about-chairman-section {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    background-image: url(images/bg/bg6.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-chairman-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.about-opsc-area p {
    color: #444;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    color: var(--white);
}

.chairman-desk-area {
    height: 100%;
    border-top: 5px solid var(--primary-color);
    border-radius: 8px 8px 0 0;
}

.chairman-desk-panel {
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 8px;
    min-height: 286px;
    box-shadow: 0 10px 30px rgb(0 0 0 / 29%);
    height: 100%;
}

.chairman-title-banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3px 30px;
    display: inline-block;
    position: absolute;
    top: 10px;
    left: 0;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    padding-right: 50px;
    z-index: 2;
}

.chairman-title-banner h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.chairman-card {
    position: absolute;
    bottom: 77px;
    left: 30px;
    right: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.chairman-profile-img {
    border-radius: 8px;
    width: 80px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.chairman-info {
    flex-grow: 1;
}

.chairman-socials {
    margin-top: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.chairman-social-icon {
    width: 18px !important;
    height: 18px !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    opacity: 0.7;
    transition: opacity 0.3s;
    object-fit: contain !important;
}

.chairman-social-icon:hover {
    opacity: 1;
}

.chairman-msg-btn {
    position: absolute;
    bottom: 12px;
    right: 30px;
    z-index: 10;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(16, 55, 92, 0.25);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.chairman-msg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 55, 92, 0.4);
}

.chairman-info h4 {
    color: #111;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.chairman-info p {
    color: #555;
    font-size: 13px;
    margin: 0;
}

/* about-chairman mobile rules are now consolidated in the main mobile block below */

/* --- Media Gallery --- */
.media-gallery {
    background-image: url('images/gallery_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.media-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

.media-gallery-card {
    background-color: #fff;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background-image: radial-gradient(#e0e6ed 2px, transparent 2px);
    background-size: 20px 20px;
    position: relative;
    overflow: hidden;
}

/* Optional soft white gradient overlay to soften the dots like the image */
.media-gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.95) 100%);
    z-index: 1;
}

.gallery-header,
.gallery-content,
.media-gallery-dots {
    position: relative;
    z-index: 2;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.gallery-tabs {
    display: flex;
    gap: 15px;
}

.gallery-tab {
    padding: 10px 25px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-tab.active {
    background-color: #ee7f1a;
    color: white;
}

.gallery-tab:not(.active) {
    background-color: #1f3b8a;
    color: white;
}

.gallery-view-all {
    color: #5c7bfa;
    font-weight: 600;
    font-size: 14px;
    text-decoration: underline;
}

.gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-grid::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
    border: 3px solid white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 15px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 11;
    margin: 0;
    text-align: center;
}

.gallery-item:hover .gallery-item-title {
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.video-item .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.video-item .video-overlay span {
    font-size: 48px;
    color: white;
    opacity: 0.8;
}

.video-item:hover .video-overlay span {
    opacity: 1;
}

.media-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    background-color: #5c7bfa;
    border-radius: 50%;
    opacity: 0.5;
    cursor: pointer;
}

.gallery-dot.active {
    opacity: 1;
}

/* Base Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    position: relative;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 85vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid #fff;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-nav span {
    font-size: 28px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 991px) {
    .gallery-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 575px) {
    .gallery-item {
        flex: 0 0 calc(100%);
    }

    .gallery-header {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- Partner Logos --- */
.partner-logos {
    padding: 30px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

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

.logos-flex img {
    max-height: 50px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.logos-flex img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-dark);
    color: #bbb;
    /* background-image: url(images/footer_img.png); */
    background-size: cover;
}

.footer-top {
    padding: 50px 15px 30px 15px;
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1.8fr;
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.address-col h4::after,
.links-col h4::after,
.reach-col h4::after,
.contact-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
}

.links-col ul {
    list-style: none;
}

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

.links-col a {
    color: #bbb;
    transition: color 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.links-col a::before {
    content: '•';
    margin-right: 8px;
    color: #666;
}

.links-col a:hover {
    color: var(--white);
}

.address-block {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 15px;
}

.address-logo {
    height: 45px;
    width: 45px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 4px;
    object-fit: contain;
}

.address-content {
    padding-top: 2px;
}

.address-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--yellow-accent);
    line-height: 1.3;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-bottom: 8px;
}

/* --- Study Aids Section --- */
.study-aids {
    background-color: var(--primary-dark);
    color: rgb(187, 187, 187);
    background-image: url(images/bg/bg1.png);
    background-size: cover;
    position: relative;
    z-index: 10;

}

.study-aids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.aid-card {
    background: var(--white);
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.aid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.aid-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.aid-icon .material-symbols-outlined {
    font-size: 28px;
}

.aid-card h4 {
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Popular Courses --- */
.popular-courses .courses-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 20px;
}

.popular-courses .courses-grid::-webkit-scrollbar {
    display: none;
}

.popular-courses .course-card {
    flex: 0 0 calc(33.3333% - 20px);
    min-width: 300px;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .popular-courses .course-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .popular-courses .course-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

.popular-courses .course-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px);
}

.courses-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.courses-nav-btn.prev {
    border: 1px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
}

.courses-nav-btn.prev:hover {
    background: var(--bg-light);
}

.courses-nav-btn.next {
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.courses-nav-btn.next:hover {
    background: var(--primary-dark);
}

/* --- National Toppers / Events Section --- */

.toppers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}

.topper-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    display: flex;
    flex-direction: column;
}

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

/* Image area */
.topper-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #dde4ee;
}

.topper-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.topper-card:hover .topper-card-img-wrap img {
    transform: scale(1.05);
}

/* Date badge */
.topper-date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #00bcd4;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

/* Info panel below image */
.topper-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 3px solid var(--primary-color);
}

.topper-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 4px;
    line-height: 1.35;
}

.topper-meta {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12.5px;
    color: #555;
    line-height: 1.45;
}

.topper-meta .material-symbols-outlined {
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

.topper-class .material-symbols-outlined  { color: var(--primary-color); }
.topper-school .material-symbols-outlined { color: var(--yellow-accent); }
.topper-location .material-symbols-outlined { color: #00bcd4; }

/* Legacy hover kept for non-topper event cards */
.events-section .event-card:not(.topper-card):hover img {
    transform: scale(1.05);
}

.events-section .event-card:not(.topper-card) img {
    transition: all 0.4s ease;
}

/* --- Transform Banner --- */
.transform-banner {
    position: relative;
    z-index: 1;
}

.transform-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/gallery_bg.png') center/cover;
    opacity: 0.1;
    z-index: -1;
}


.address-col address {
    font-style: normal;
    line-height: 1.6;
    color: #bbbbbb;
    font-size: 14px;
}

/* map-placeholder kept for backward compatibility */
.map-placeholder {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* ── Footer Office Addresses ── */
.footer-office-addresses {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 4px;
}

.footer-office-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 16px;
    transition: background 0.2s;
}

.footer-office-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-office-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: var(--yellow-accent);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.footer-office-badge--branch {
    background: rgba(255, 255, 255, 0.2);
}

.footer-office-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-style: normal;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.footer-office-address .material-symbols-outlined {
    font-size: 18px;
    color: var(--yellow-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-assist-flex {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.contact-group {
    margin-bottom: 25px;
}

.contact-group h4 {
    margin-bottom: 12px;
    font-size: 14px;
    border: none;
    padding-bottom: 0;
}

.contact-group h4::after {
    display: none;
}

.contact-group p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-group .material-symbols-outlined {
    font-size: 18px;
    color: #888;
}

.footer-bottom {
    background-color: var(--primary-dark);
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.bottom-nic-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-nic-logo {
    background-color: white;
    padding: 5px;
    border-radius: 4px;
    height: 40px;
}

.visitor-count-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 6px;
}

.visitor-count-bottom .material-symbols-outlined {
    font-size: 24px;
    color: #dfd2fa;
}

.visitor-count-bottom strong {
    color: #fff;
    font-size: 16px;
    margin-left: 5px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .candidate-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

/* --- Inner Page Styles --- */
/* ============================================================
   INNER PAGE BANNER
   ============================================================ */

.inner-page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 55%, #1a4a72 100%);
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 72px 0 56px;
    position: relative;
    overflow: hidden;
    text-align: left;
}

/* Decorative floating circles */
.iph-decor-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.iph-circle-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.04);
    top: -100px;
    right: -80px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.iph-circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 122, 0, 0.08);
    bottom: -60px;
    left: 5%;
    border: 1px solid rgba(255, 122, 0, 0.15);
}

/* Subtle dot grid pattern */
.iph-decor-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
}

.iph-inner {
    position: relative;
    z-index: 2;
}

.iph-content {
    max-width: 780px;
}

.iph-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--yellow-accent);
    margin-bottom: 12px;
}

.iph-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin: 0 0 18px 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.iph-divider {
    margin-bottom: 18px;
}

.iph-divider span {
    display: inline-block;
    width: 56px;
    height: 3px;
    background: var(--yellow-accent);
    border-radius: 2px;
    position: relative;
}

.iph-divider span::after {
    content: '';
    position: absolute;
    left: 64px;
    top: 0;
    width: 16px;
    height: 3px;
    background: rgba(255, 122, 0, 0.4);
    border-radius: 2px;
}

/* ── Breadcrumb ── */

.breadcrumb {
    font-size: 13.5px;
}

.bc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.bc-item {
    display: flex;
    align-items: center;
}

.bc-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.25s;
    font-weight: 500;
}

.bc-link:hover {
    color: var(--yellow-accent);
    text-decoration: underline;
}

.bc-home-icon {
    font-size: 16px;
}

.bc-sep {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 4px;
}

.bc-sep .material-symbols-outlined {
    font-size: 16px;
}

.bc-current span {
    color: var(--yellow-accent);
    font-weight: 600;
}

/* Legacy .breadcrumb-wrapper compatibility */
.breadcrumb-wrapper .breadcrumb {
    font-size: 13.5px;
}

/* ============================================================
   INNER PAGE LAYOUT
   ============================================================ */

.inner-page-content {
    padding: 48px 0 60px;
    background-color: var(--bg-light);
}

.content-wrapper {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.content-wrapper.layout-with-sidebar .main-content-area {
    flex: 1;
    min-width: 0;
}

.content-wrapper.layout-full-width .main-content-area {
    flex: 1;
}

/* ── Main Content Card ── */

.main-content-area {
    flex-grow: 1;
    min-width: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 36px 40px;
    border-top: 3px solid var(--primary-color);
}

/* Featured image inside page */
.entry-featured-image {
    margin: -36px -40px 32px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.entry-featured-image .page-hero-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 360px;
    object-fit: cover;
}

/* ============================================================
   CONTENT TYPOGRAPHY
   ============================================================ */

.content-box,
.entry-content.content-box {
    color: var(--text-main);
    line-height: 1.85;
    font-size: 15px;
}

/* ── Headings ── */

.content-box h2,
.entry-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 36px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.content-box h2::before,
.entry-content h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 52px;
    height: 2px;
    background: var(--yellow-accent);
}

.content-box h3,
.entry-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 28px 0 12px;
    padding-left: 14px;
    border-left: 4px solid var(--yellow-accent);
    line-height: 1.4;
}

.content-box h4,
.entry-content h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 22px 0 10px;
}

.content-box h5,
.entry-content h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin: 18px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.content-box h6,
.entry-content h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    margin: 14px 0 6px;
}

/* First heading has no top margin */
.content-box > h2:first-child,
.content-box > h3:first-child,
.entry-content > h2:first-child,
.entry-content > h3:first-child {
    margin-top: 0;
}

/* ── Paragraphs ── */

.content-box p,
.entry-content p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.85;
    color: #3a3a3a;
}

.content-box p:last-child,
.entry-content p:last-child {
    margin-bottom: 0;
}

/* ── Unordered Lists ── */

.content-box ul,
.entry-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}

.content-box ul li,
.entry-content ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.75;
    color: #3a3a3a;
}

.content-box ul li::before,
.entry-content ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow-accent);
    box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.2);
}

/* Second-level ul */
.content-box ul ul,
.entry-content ul ul {
    margin-top: 8px;
    margin-bottom: 0;
    padding-left: 16px;
}

.content-box ul ul li::before,
.entry-content ul ul li::before {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    box-shadow: none;
}

/* ── Mission-style checklist (keeps backward compat) ── */

.content-box ul.mission-list,
.entry-content ul.mission-list {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.content-box ul.mission-list li,
.entry-content ul.mission-list li {
    padding-left: 32px;
    margin-bottom: 12px;
    font-size: 15px;
    position: relative;
}

.content-box ul.mission-list li::before,
.entry-content ul.mission-list li::before {
    content: 'check_circle';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    left: 0;
    top: 1px;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    color: var(--primary-color);
    font-size: 20px;
    border-radius: 0;
}

/* ── Ordered Lists ── */

.content-box ol,
.entry-content ol {
    list-style: none;
    counter-reset: bof-counter;
    padding: 0;
    margin: 0 0 22px;
}

.content-box ol li,
.entry-content ol li {
    counter-increment: bof-counter;
    position: relative;
    padding-left: 40px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.75;
    color: #3a3a3a;
}

.content-box ol li::before,
.entry-content ol li::before {
    content: counter(bof-counter);
    position: absolute;
    left: 0;
    top: 1px;
    width: 26px;
    height: 26px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Blockquote / Pull-quote ── */

.content-box blockquote,
.entry-content blockquote {
    margin: 28px 0;
    padding: 24px 28px 24px 36px;
    background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%);
    border-left: 5px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    position: relative;
    font-style: italic;
    color: var(--primary-dark);
}

.content-box blockquote::before,
.entry-content blockquote::before {
    content: '\201C';
    font-size: 72px;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: Georgia, serif;
}

.content-box blockquote p,
.entry-content blockquote p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

.content-box blockquote cite,
.entry-content blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
}

.content-box blockquote cite::before {
    content: '— ';
}

/* ── Info / Highlight Boxes ── */

.info-box,
.highlight-box,
.warning-box,
.success-box,
.tip-box {
    display: flex;
    gap: 14px;
    padding: 18px 22px;
    border-radius: 8px;
    margin: 24px 0;
    font-size: 14.5px;
    line-height: 1.7;
    align-items: flex-start;
}

.info-box {
    background: #e8f4fd;
    border: 1px solid #b3d9f5;
    color: #0d4f7c;
}

.info-box::before {
    content: 'info';
    font-family: 'Material Symbols Outlined';
    font-size: 22px;
    color: #1a7cc0;
    flex-shrink: 0;
    margin-top: 1px;
}

.highlight-box {
    background: #fff8e8;
    border: 1px solid #ffd680;
    color: #7a4800;
}

.highlight-box::before {
    content: 'star';
    font-family: 'Material Symbols Outlined';
    font-size: 22px;
    color: #e6960a;
    flex-shrink: 0;
    margin-top: 1px;
}

.warning-box {
    background: #fff3e0;
    border: 1px solid #ffcc80;
    color: #7a3800;
}

.warning-box::before {
    content: 'warning';
    font-family: 'Material Symbols Outlined';
    font-size: 22px;
    color: #e65100;
    flex-shrink: 0;
    margin-top: 1px;
}

.success-box {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
}

.success-box::before {
    content: 'check_circle';
    font-family: 'Material Symbols Outlined';
    font-size: 22px;
    color: #388e3c;
    flex-shrink: 0;
    margin-top: 1px;
}

.tip-box {
    background: #f3e5f5;
    border: 1px solid #ce93d8;
    color: #4a148c;
}

.tip-box::before {
    content: 'lightbulb';
    font-family: 'Material Symbols Outlined';
    font-size: 22px;
    color: #8e24aa;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Tables ── */

.content-box table,
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.content-box table thead,
.entry-content table thead {
    background: var(--primary-color);
    color: var(--white);
}

.content-box table th,
.entry-content table th {
    padding: 13px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.content-box table td,
.entry-content table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    color: #3a3a3a;
}

.content-box table tbody tr:nth-child(even),
.entry-content table tbody tr:nth-child(even) {
    background-color: #f8f9fc;
}

.content-box table tbody tr:hover,
.entry-content table tbody tr:hover {
    background-color: #eef3fb;
    transition: background 0.2s;
}

/* Responsive table wrapper (add class in editor) */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}

/* ── Image Alignment ── */

.content-box img,
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.content-box .alignleft,
.entry-content .alignleft {
    float: left;
    margin: 4px 24px 16px 0;
    border-radius: 6px;
}

.content-box .alignright,
.entry-content .alignright {
    float: right;
    margin: 4px 0 16px 24px;
    border-radius: 6px;
}

.content-box .aligncenter,
.entry-content .aligncenter {
    display: block;
    margin: 20px auto;
    border-radius: 6px;
}

.content-box .alignfull,
.entry-content .alignfull {
    width: 100%;
    margin: 20px 0;
}

/* WordPress figure captions */
.wp-caption {
    max-width: 100%;
    margin-bottom: 16px;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    padding: 6px 8px;
    font-style: italic;
}

/* ── Links inside content ── */

.content-box a,
.entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: rgba(16, 55, 92, 0.3);
    text-underline-offset: 3px;
    transition: color 0.25s, text-decoration-color 0.25s;
}

.content-box a:hover,
.entry-content a:hover {
    color: var(--yellow-accent);
    text-decoration-color: var(--yellow-accent);
}

/* ── Horizontal Rule ── */

.content-box hr,
.entry-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    margin: 30px 0;
    border-radius: 2px;
}

/* ── Page pagination ── */

.page-links {
    clear: both;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
}

.page-links-title {
    font-weight: 600;
    margin-right: 6px;
    color: var(--text-light);
}

.page-links .page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1.5px solid var(--border-color);
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
    transition: all 0.2s;
}

.page-links .page-number:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ── Edit link ── */

.entry-footer {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
}

.edit-link a {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.edit-link a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.inner-sidebar {
    width: 280px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Common widget card */
.sidebar-widget {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.sidebar-widget-title,
h3.sidebar-widget-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--white);
    background: var(--primary-color);
    margin: 0;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.2px;
}

.sidebar-widget-title .material-symbols-outlined {
    font-size: 18px;
    opacity: 0.9;
}

/* Quick Navigation widget */
.sidebar-nav-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.sidebar-nav-list li {
    border-bottom: 1px solid var(--border-color);
}

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

.sidebar-nav-list li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.25s;
    border-left: 3px solid transparent;
}

.sidebar-nav-list li a .material-symbols-outlined {
    font-size: 16px;
    color: var(--text-light);
    transition: color 0.25s;
}

.sidebar-nav-list li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 20px;
}

.sidebar-nav-list li a:hover .material-symbols-outlined {
    color: var(--primary-color);
}

.sidebar-nav-list li.active a {
    background: #eef3fb;
    color: var(--primary-color);
    border-left-color: var(--yellow-accent);
    font-weight: 600;
}

.sidebar-nav-list li.active a .material-symbols-outlined {
    color: var(--yellow-accent);
}

/* Recent posts widget */
.sidebar-post-list {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.sidebar-post-list li {
    border-bottom: 1px solid var(--border-color);
}

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

.sidebar-post-list li a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 16px;
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar-post-list li a:hover {
    background: var(--bg-light);
}

.sp-date {
    font-size: 11px;
    color: var(--yellow-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-title {
    font-size: 13.5px;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.45;
    transition: color 0.2s;
}

.sidebar-post-list li a:hover .sp-title {
    color: var(--primary-color);
}

/* Contact card widget */
.sidebar-contact-card .sc-body {
    padding: 16px;
}

.sidebar-contact-card .sc-body p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.6;
}

.sc-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--primary-color);
    color: var(--white) !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    margin-bottom: 8px;
    transition: background 0.25s, transform 0.15s;
}

.sc-btn:last-child {
    margin-bottom: 0;
}

.sc-btn:hover {
    background: var(--primary-dark);
    transform: translateX(3px);
}

.sc-btn-email {
    background: var(--yellow-accent);
}

.sc-btn-email:hover {
    background: #d96800;
}

.sc-btn .material-symbols-outlined {
    font-size: 17px;
    flex-shrink: 0;
}

/* Downloads widget */
.sidebar-download-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.sidebar-download-list li {
    border-bottom: 1px solid var(--border-color);
}

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

.sidebar-download-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13.5px;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-download-list li a .material-symbols-outlined {
    font-size: 18px;
    color: var(--yellow-accent);
    transition: transform 0.2s;
}

.sidebar-download-list li a:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
    padding-left: 22px;
}

.sidebar-download-list li a:hover .material-symbols-outlined {
    transform: translateY(2px);
}

/* WP widget compatibility */
.sidebar-widget .widget-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--white);
    background: var(--primary-color);
    margin: 0;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Inner page breadcrumb legacy ── */
.breadcrumb-wrapper .breadcrumb a {
    color: var(--yellow-accent);
    text-decoration: none;
}

.breadcrumb-wrapper .breadcrumb .sep {
    color: rgba(255,255,255,0.5);
    margin: 0 4px;
}

/* ============================================================
   INNER PAGE RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .inner-sidebar {
        width: 260px;
        position: static;
    }

    .main-content-area {
        padding: 28px 30px;
    }
}

@media (max-width: 768px) {
    /* Banner */
    .inner-page-header {
        padding: 48px 0 38px;
        text-align: center;
    }

    .iph-content {
        max-width: 100%;
    }

    .iph-label {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .iph-title {
        font-size: 26px;
    }

    .iph-divider {
        display: flex;
        justify-content: center;
    }

    .bc-list {
        justify-content: center;
    }

    .iph-decor-circle {
        display: none;
    }

    /* Layout */
    .content-wrapper,
    .content-wrapper.layout-with-sidebar {
        flex-direction: column;
        gap: 20px;
    }

    /* Sidebar goes below content on mobile */
    .inner-sidebar {
        width: 100%;
        position: static;
        order: 2;
    }

    .main-content-area {
        order: 1;
        padding: 22px 20px;
        border-radius: 8px;
    }

    .entry-featured-image {
        margin: -22px -20px 24px;
    }

    /* Typography scale-down */
    .content-box h2,
    .entry-content h2 {
        font-size: 21px;
    }

    .content-box h3,
    .entry-content h3 {
        font-size: 18px;
    }

    .content-box h4,
    .entry-content h4 {
        font-size: 16px;
    }

    /* Tables */
    .content-box table,
    .entry-content table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Floated images become block */
    .content-box .alignleft,
    .content-box .alignright,
    .entry-content .alignleft,
    .entry-content .alignright {
        float: none;
        display: block;
        margin: 16px auto;
    }

    /* Sidebar widgets stack */
    .sidebar-widget {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .inner-page-header {
        padding: 36px 0 30px;
    }

    .iph-title {
        font-size: 22px;
    }

    .main-content-area {
        padding: 18px 16px;
    }

    .entry-featured-image {
        margin: -18px -16px 20px;
    }

    .content-box h2,
    .entry-content h2 {
        font-size: 19px;
    }

    .content-box h3,
    .entry-content h3 {
        font-size: 17px;
    }

    .info-box,
    .highlight-box,
    .warning-box,
    .success-box,
    .tip-box {
        padding: 14px 16px;
        font-size: 14px;
    }
}

/* Legacy 576px rule kept for non-overridden selectors */
@media (max-width: 576px) {
    .contact-assist-flex {
        flex-direction: column;
        gap: 20px;
    }
}

/* ============================================================
   WORDPRESS-SPECIFIC FIXES
   ============================================================ */

/* Custom logo wrapper */
.logo-area .custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    font-size: 0;
}

.logo-area .custom-logo-link img.custom-logo,
.brand-logo {
    display: block;
    height: 80px;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

/* WordPress admin bar offset */
body.admin-bar .main-nav-wrapper {
    top: 0px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .main-nav-wrapper {
        top: 1px;
    }
}

/* Search form inside topbar */
.search-box .search-form {
    display: flex;
    gap: 5px;
}

.search-box .search-field {
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    border-radius: 4px;
    outline: none;
    font-size: 13px;
    font-family: inherit;
    width: 150px;
}

.search-box .search-submit {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: background 0.3s;
}

.search-box .search-submit:hover {
    background-color: var(--primary-dark);
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* WordPress alignment classes */
.alignleft  { float: left;  margin: 0 1.5em 1.5em 0; }
.alignright { float: right; margin: 0 0 1.5em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide  { max-width: 100%; }
.alignfull  { max-width: 100%; width: 100%; }

/* WordPress block editor fix */
.wp-block-image img { max-width: 100%; height: auto; }

/* Breadcrumb wrapper */
.breadcrumb-wrapper {
    margin-top: 10px;
}

.breadcrumb-wrapper .breadcrumb {
    font-size: 14px;
    color: #e0e0e0;
}

.breadcrumb-wrapper .breadcrumb a {
    color: var(--yellow-accent);
}

.breadcrumb-wrapper .breadcrumb .sep {
    margin: 0 5px;
    opacity: 0.6;
}

/* Fix nav-links when WordPress menu is active */
.nav-links > .menu-item > a {
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 100%;
    min-height: 56px;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.nav-links > .menu-item > a:hover,
.nav-links > .menu-item > a.active,
.nav-links > .current-menu-item > a,
.nav-links > .current-menu-ancestor > a {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Footer iframe map — kept for themes using embedded maps */
.map-placeholder iframe {
    display: block;
    border-radius: 6px;
    width: 100%;
    height: 190px;
}

/* BOF Gallery - ACF image object-fit */
.gallery-item img[style] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   BRAND TEXT (from header.php — moved out of inline styles)
   ============================================================ */

.brand-text-area {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.brand-title a {
    color: inherit;
    text-decoration: none;
}

.brand-subtitle {
    color: orange;
    font-size: 14px;
    margin: 5px 0 0 0;
    font-weight: 500;
    display: block;
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================================ */

/* ── Tablet breakpoint (≤ 1024px) ── */
@media (max-width: 1024px) {

    .hero-slide {
        min-height: 450px;
    }

    .slider-container {
        min-height: 450px;
    }

    .hero-text-box h2 {
        font-size: 20px;
    }

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

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Mobile breakpoint (≤ 768px) ── */
@media (max-width: 768px) {

    /* -------- TOPBAR -------- */
    .topbar-left {
        display: none;
    }

    .topbar-hide-mobile {
        display: none !important;
    }

    .topbar-inner {
        justify-content: center;
    }

    .topbar-right {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 4px 0;
    }

    .topbar-right a,
    .topbar-right .lang-btn {
        font-size: 12px;
        padding: 3px 6px;
    }

    /* Ensure registration dropdown is above everything */
    .topbar-dropdown-menu {
        right: auto;
        left: 0;
        top: calc(100% + 4px);
        z-index: 999;
    }

    /* -------- MAIN HEADER -------- */
    .main-header {
        padding: 6px 0;
        overflow: hidden;
    }

    .header-inner {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        text-align: left;
    }

    /* Hide site name and tagline — show logo only */
    .brand-text-area {
        display: none;
    }

    /* Collapse every level of the logo chain to remove gaps */
    .logo-area {
        gap: 0;
        justify-content: flex-start;
        align-items: center;
        line-height: 0;
        font-size: 0;
    }

    .logo-area .custom-logo-link {
        display: inline-flex;
        align-items: center;
        line-height: 0;
        font-size: 0;
        margin: 0;
        padding: 0;
    }

    .brand-logo,
    .logo-area .custom-logo-link img.custom-logo {
        display: block;
        height: 56px;
        width: auto;
        margin: 0;
        padding: 0;
        vertical-align: top;
        border: 0;
    }

    /* -------- NAVIGATION -------- */
    .main-nav-wrapper {
        position: relative;
    }

    .main-nav-container {
        flex-wrap: wrap;
        padding: 0 12px;
        align-items: center;
        position: relative;
    }

    /* Hamburger button — show on mobile */
    .mobile-menu-btn {
        display: flex;
        order: 1;
        z-index: 10;
        margin: 8px 0;
    }

    /* "View Result" button — move to right of hamburger */
    .apply-online-area {
        order: 2;
        margin-left: auto;
        padding: 7px 14px;
        clip-path: none;
        position: relative;
    }

    .apply-online-area::before {
        display: none;
    }

    .apply-online-text {
        font-size: 13px;
        white-space: nowrap;
    }

    /* Nav menu area — full width, below hamburger row */
    .nav-menu-area {
        order: 3;
        width: 100%;
        display: none;
        flex-direction: column;
        background-color: var(--primary-color);
    }

    .nav-menu-area.active {
        display: flex;
    }

    /* Nav links list */
    .nav-links {
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-links > li {
        border-right: none;
        border-left: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        display: block;
        width: 100%;
    }

    .nav-links > li > a,
    .nav-links > .menu-item > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 13px 16px;
        min-height: 48px;
        font-size: 14px;
        font-weight: 500;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links > li > a:hover,
    .nav-links > li > a.active,
    .nav-links > .current-menu-item > a {
        background-color: rgba(255, 255, 255, 0.12);
    }

    /* Dropdown menus — accordion style on mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        white-space: normal;
        border-radius: 0;
        border-top: none;
        display: none;
        background-color: rgba(0, 0, 0, 0.18);
        padding: 0;
        margin: 0;
    }

    /* hide the caret on mobile */
    .dropdown-menu::before {
        display: none;
    }

    .dropdown-container.active > .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .dropdown-menu a {
        color: rgba(255, 255, 255, 0.85);
        font-size: 13px;
        padding: 11px 16px 11px 28px;
        background: transparent;
    }

    .dropdown-menu a::before {
        display: none;
    }

    .dropdown-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
        padding-left: 34px;
    }

    .dropdown-menu a .material-symbols-outlined {
        color: rgba(255, 255, 255, 0.7);
    }

    /* Arrow icon on parent items */
    .nav-links > .dropdown-container > a .material-symbols-outlined:last-child {
        transition: transform 0.25s ease;
    }

    .nav-links > .dropdown-container.active > a .material-symbols-outlined:last-child {
        transform: rotate(180deg);
    }

    /* -------- HERO SLIDER -------- */
    .slider-container {
        min-height: 0;
        height: auto;
    }

    .slider-wrapper {
        height: auto;
        align-items: stretch;
    }

    .hero-slide {
        /* Viewport-relative height keeps images proportional on any screen width */
        height: 56vw;
        min-height: 240px;
        max-height: 380px;
        min-width: 100%;
        background-size: cover;
        background-position: center center;
        padding-bottom: 16px;
        align-items: flex-end;
    }

    .hero-text-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 4px;
        gap: 0;
    }

    .orange-bar {
        display: none;
    }

    .hero-text-box h2 {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.35;
        margin: 0;
        padding: 6px 10px;
        background: rgba(0, 0, 0, 0.45);
        border-radius: 4px;
    }

    .hero-text-box p {
        font-size: 12px !important;
        margin-top: 6px !important;
    }

    .hero-text-box .btn-primary {
        font-size: 12px;
        padding: 7px 14px;
        margin-top: 8px !important;
    }

    /* Slider dots — move to bottom center on mobile */
    .slider-dots {
        top: auto;
        bottom: 10px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 8px;
    }

    .slider-dots .dot {
        width: 10px;
        height: 10px;
    }

    /* -------- ABOUT + CHAIRMAN -------- */
    .about-chairman-section {
        background-attachment: scroll;
    }

    .about-chairman-grid {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .about-opsc-area p {
        font-size: 14px;
    }

    .chairman-desk-panel {
        min-height: 320px;
        margin-top: 10px;
    }

    .chairman-title-banner {
        position: static;
        clip-path: none;
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
        padding: 10px 20px;
        border-radius: 4px;
    }

    .chairman-title-banner h3 {
        font-size: 17px;
    }

    .chairman-card {
        position: static;
        margin: 15px auto;
        max-width: 100%;
    }

    .chairman-msg-btn {
        position: static;
        display: inline-flex;
        margin: 15px auto 0;
        left: auto;
        right: auto;
        bottom: auto;
    }

    /* -------- STUDY AIDS -------- */
    .study-aids-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .aid-card {
        padding: 18px 10px;
    }

    .aid-card h4 {
        font-size: 13px;
    }

    .aid-icon {
        width: 48px;
        height: 48px;
    }

    /* -------- REFERENCE MATERIAL / COURSES -------- */
    .popular-courses .course-card {
        flex: 0 0 90vw;
        min-width: 90vw;
    }

    /* -------- NATIONAL TOPPERS -------- */
    .events-section {
        background-attachment: scroll;
    }

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

    .important-links-grid {
        grid-template-columns: 1fr;
    }

    /* -------- TRANSFORM BANNER -------- */
    .transform-banner .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .transform-banner h3 {
        font-size: 20px !important;
    }

    /* -------- MEDIA GALLERY -------- */
    .gallery-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .gallery-tab {
        padding: 8px 18px;
        font-size: 13px;
    }

    .gallery-item {
        flex: 0 0 85vw;
    }

    /* -------- FOOTER -------- */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 15px 20px;
    }

    .contact-assist-flex {
        flex-direction: column;
        gap: 15px;
    }

    .bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-policy-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* -------- LIGHTBOX -------- */
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }

    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}

/* ── Small mobile (≤ 480px) ── */
@media (max-width: 480px) {

    /* Topbar even tighter */
    .topbar-right {
        gap: 4px;
    }

    .topbar-right a,
    .topbar-right .lang-btn {
        font-size: 11px;
    }

    /* Slider */
    .hero-slide {
        height: 62vw;
        min-height: 210px;
        max-height: 300px;
    }

    .hero-text-box h2 {
        font-size: 13px;
    }

    /* Nav */
    .nav-links > li > a,
    .nav-links > .menu-item > a {
        font-size: 13px;
        padding: 12px 14px;
    }

    /* Study aids — 2 columns on very small screens */
    .study-aids-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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

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

    .topper-card-img-wrap {
        aspect-ratio: 3 / 4;
    }

    /* Courses — full width */
    .popular-courses .course-card {
        flex: 0 0 95vw;
        min-width: 95vw;
    }

    /* Gallery — full width */
    .gallery-item {
        flex: 0 0 95vw;
    }

    /* Section padding */
    .section-padding {
        padding: 35px 0;
    }

    /* Footer */
    .footer-top {
        padding: 25px 12px 15px;
    }
}

/* ── Very small screens (≤ 360px) ── */
@media (max-width: 360px) {

    .hero-slide {
        height: 65vw;
        min-height: 190px;
    }

    .hero-text-box h2 {
        font-size: 12px;
    }

    .brand-logo,
    .logo-area .custom-logo-link img.custom-logo {
        height: 48px;
        margin: 0;
        padding: 0;
    }

    .apply-online-text {
        font-size: 11px;
        letter-spacing: 0;
    }

    .topbar-right a {
        font-size: 10px;
    }
}
/* =========================
   CO PARTNER SECTION
========================= */

.co-partner {
    width: 100%;
    padding: 50px 20px;
    background: #ffffff;
    box-sizing: border-box;
}

.co-partner .co-partner-container {
    max-width: 1400px;
    margin: 0 auto;
}

.co-partner .co-partner-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 25px;
    align-items: center;
}

.co-partner .co-partner-item {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    transition: all 0.3s ease;
}

.co-partner .co-partner-item:hover {
    transform: translateY(-5px);
}

.co-partner .co-partner-item img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
    .co-partner .co-partner-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 991px) {
    .co-partner .co-partner-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .co-partner .co-partner-item {
        min-height: 110px;
    }
}

@media (max-width: 767px) {
    .co-partner {
        padding: 40px 15px;
    }

    .co-partner .co-partner-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .co-partner .co-partner-item {
        min-height: 90px;
        padding: 10px;
    }

    .co-partner .co-partner-item img {
        max-height: 70px;
    }
}

@media (max-width: 480px) {
    .co-partner .co-partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .co-partner .co-partner-item {
        min-height: 80px;
    }

    .co-partner .co-partner-item img {
        max-height: 60px;
    }
}
/* ====================================
   Single Post Previous/Next Navigation
==================================== */

.post-navigation .nav-links{
	display:flex;
	gap:24px;
	margin:50px 0;
	flex-wrap:wrap;
	align-items:stretch;
}

.post-navigation .nav-previous,
.post-navigation .nav-next{
	flex:1;
	min-width:280px;
}

.post-navigation .nav-links a{
	position:relative;
	display:flex;
	flex-direction:column;
	justify-content:center;
	height:100%;
	padding:24px 28px;
	border-radius:18px;
	background:#ffffff;
	text-decoration:none;
	box-shadow:0 8px 24px rgba(0,0,0,0.06);
	border:1px solid #e9eef5;
	transition:all 0.35s ease;
	overflow:hidden;
}

/* Hover Effect */
.post-navigation .nav-links a:hover{
	transform:translateY(-5px);
	box-shadow:0 14px 35px rgba(0,0,0,0.12);
	border-color:#0b7dda;
}

/* Left Accent */
.post-navigation .nav-links a::before{
	content:"";
	position:absolute;
	top:0;
	left:0;
	width:5px;
	height:100%;
	background:linear-gradient(180deg,#0b7dda,#00b4db);
	transition:0.3s ease;
}

.post-navigation .nav-next a::before{
	background:linear-gradient(180deg,#ff9800,#ff5722);
}

/* Subtitle */
.post-navigation .nav-subtitle{
	font-size:13px;
	font-weight:600;
	text-transform:uppercase;
	letter-spacing:1px;
	color:#7b8794;
	margin-bottom:10px;
	display:inline-block;
}

/* Title */
.post-navigation .nav-title{
	font-size:20px;
	line-height:1.5;
	font-weight:700;
	color:#10375c;
	transition:0.3s ease;
	word-break:break-word;
}

/* Hover Colors */
.post-navigation .nav-links a:hover .nav-title{
	color:#0b7dda;
}

.post-navigation .nav-next a:hover .nav-title{
	color:#ff6b00;
}

/* Arrows */
.post-navigation .nav-previous a::after,
.post-navigation .nav-next a::after{
	position:absolute;
	font-size:24px;
	font-weight:700;
	top:50%;
	right:22px;
	transform:translateY(-50%);
	opacity:0.15;
	transition:0.3s ease;
}

.post-navigation .nav-previous a::after{
	content:"←";
}

.post-navigation .nav-next a::after{
	content:"→";
}

/* Hover Arrow Animation */
.post-navigation .nav-links a:hover::after{
	opacity:0.45;
	transform:translateY(-50%) translateX(4px);
}

/* Responsive */
@media (max-width:768px){

	.post-navigation .nav-links{
		flex-direction:column;
		gap:18px;
	}

	.post-navigation .nav-links a{
		padding:20px;
		border-radius:14px;
	}

	.post-navigation .nav-title{
		font-size:17px;
	}
}