/*
Theme Name: KF Patil Institute Theme
Theme URI: https://example.com/kfpatil-theme
Author: AI Collaborator
Description: Custom WordPress theme styled precisely after K.F. Patil Institute layout with multi-column dropdown mega menus, top bar, sticky navbar, slider, stats bar, programs grid, and footer.
Version: 1.2
Text Domain: kfpatil-theme
*/

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

:root {
    --primary-navy: #0b1c3c;
    --accent-gold: #c5a059;
    --accent-orange: #f97316;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background-color: var(--accent-orange, #f97316);
    color: var(--white, #ffffff);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

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

/* Universal Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent-orange, #f97316);
    outline-offset: 2px;
}

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

/* --- Top Utility Bar --- */
.top-utility-bar {
    background-color: var(--primary-navy);
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.top-bar-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-left a {
    color: var(--white);
    transition: var(--transition);
}

.top-bar-left a:hover {
    color: var(--accent-gold);
}

/* --- Branding / Logo Section --- */
.site-branding-section {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.branding-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logos-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
}

.institute-titles h1 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.institute-titles h2 {
    font-size: 20px;
    font-weight: 800;
    color: #b91c1c;
    line-height: 1.2;
}

.institute-titles p {
    font-size: 11px;
    color: var(--text-muted);
}

.branding-cta {
    display: flex;
    gap: 10px;
}

.btn-enquire {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-apply {
    background-color: #f97316;
    color: var(--white);
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-enquire:hover, .btn-apply:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* --- Sticky Main Navigation & Glassmorphism --- */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    border-bottom: 2px solid var(--accent-gold);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(11, 28, 60, 0.08);
    transition: all 0.3s ease;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-navigation {
    width: 100%;
}

.main-navigation ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 14px 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    position: relative;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary-navy);
    padding: 8px 4px;
    transition: var(--transition);
}

/* Animated hover indicator line under menu items */
.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-orange, #f97316);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after, 
.main-navigation .current-menu-item > a::after, 
.main-navigation .current_page_item > a::after {
    width: 100%;
}

.main-navigation .current-menu-item > a, 
.main-navigation .current_page_item > a {
    color: var(--accent-orange, #f97316) !important;
}

/* --- Professional Multi-Column Dropdown for Large Sub-Menus --- */
.main-navigation ul ul {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 260px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border-radius: 6px;
    border-top: 3px solid var(--accent-orange, #f97316);
    padding: 10px;
    z-index: 9999;
    list-style: none;
    margin: 0;
    max-height: none !important;
    overflow: visible !important;
}

/* Automatically switches to a grid format on hover */
.main-navigation ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: grid !important;
    grid-template-columns: repeat(1, minmax(220px, 1fr));
    gap: 4px;
}

/* Automatically expands to 2 columns if there are 6 or more items */
.main-navigation ul li.menu-item-has-children ul:has(> li:nth-child(6)),
.main-navigation ul li.page_item_has_children ul:has(> li:nth-child(6)) {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    min-width: 460px;
}

/* Invisible bridge to prevent mouse-slip hover bug */
.main-navigation li::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
}

/* Sub-menu item styling */
.main-navigation ul ul li {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
}

.main-navigation ul ul a {
    display: block;
    padding: 8px 12px !important;
    color: var(--text-dark) !important;
    font-size: 13px !important;
    text-transform: none;
    font-weight: 600;
    white-space: normal !important;
    line-height: 1.3;
    border-radius: 4px;
    border-bottom: none !important;
    transition: var(--transition);
}

.main-navigation ul ul a:hover {
    background-color: var(--bg-light, #f8fafc);
    color: var(--accent-orange, #f97316) !important;
    padding-left: 15px !important;
}

.main-navigation ul ul ul {
    top: 0;
    left: 100%;
    display: none !important;
}

.main-navigation ul ul li:hover > ul {
    display: block !important;
    grid-template-columns: 1fr !important;
}

/* --- Banner Slider Section --- */
.banner-slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: var(--primary-navy);
}

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

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

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11,28,60,0.92) 0%, rgba(11,28,60,0.7) 60%, rgba(11,28,60,0.3) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 650px;
    padding: 20px;
}

.slide-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
}

.slide-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.slide-content p {
    font-size: 14px;
    margin-bottom: 25px;
    color: #cbd5e1;
    line-height: 1.5;
}

.slide-btns {
    display: flex;
    gap: 12px;
}

.btn-slide-primary {
    background-color: var(--primary-navy);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-slide-secondary {
    background-color: #e2e8f0;
    color: var(--primary-navy);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-slide-primary:hover, .btn-slide-secondary:hover {
    opacity: 0.85;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

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

/* --- Stats Bar Section --- */
.stats-bar {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 20px 0;
    border-bottom: 4px solid var(--accent-gold);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    text-align: center;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 0 10px;
}

.stat-item:last-child {
    border-right: none;
}

.stat-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
}

.stat-item p {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

/* --- Programs & Content Section --- */
.main-content-section {
    padding: 50px 0;
    background-color: var(--bg-light);
}

.section-title {
    margin-bottom: 30px;
}

.section-title span {
    font-size: 12px;
    font-weight: 700;
    color: #f97316;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-navy);
}

.programs-three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .programs-three-grid {
        grid-template-columns: 1fr;
    }
}

.program-card {
    background: var(--white);
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.program-card h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 5px;
}

.program-card span.sub {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 20px;
}

.program-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-know-more {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--accent-orange, #f97316);
    color: var(--accent-orange, #f97316);
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    text-align: center;
    transition: var(--transition);
}

.btn-know-more:hover {
    background-color: var(--accent-orange, #f97316);
    color: var(--white);
}

.why-choose-card {
    background: var(--white);
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-choose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.why-choose-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.why-choose-card ul li {
    font-size: 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}

.why-choose-card ul li::before {
    content: '✓';
    color: #16a34a;
    font-weight: bold;
    font-size: 16px;
}

/* --- Why Choose Us with Overlapping College Background Image --- */
.why-choose-overlap-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.why-choose-bg-img {
    width: 100%;
    height: 380px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

.why-choose-floating-box {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 420px;
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

@media (max-width: 992px) {
    .why-choose-overlap-wrapper {
        position: static;
    }
    .why-choose-floating-box {
        position: static;
        width: 100%;
        margin-top: 20px;
    }
    .why-choose-bg-img {
        height: 250px;
    }
}

.why-choose-floating-box h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 18px;
}

.why-choose-floating-box ul li {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}

.why-choose-floating-box ul li::before {
    content: '✓';
    color: #16a34a;
    font-weight: bold;
    font-size: 16px;
}

.btn-why-learn-more {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: var(--primary-navy);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    text-align: center;
    margin-top: 20px;
    transition: var(--transition);
}

.btn-why-learn-more:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 8px;
    display: inline-block;
}

.footer-col p, .footer-col li {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.footer-col ul li a {
    transition: var(--transition);
}

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

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

/* --- Announcement Ticker Bar --- */
.announcement-bar {
    background-color: var(--accent-orange, #f97316);
    color: var(--white);
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
}

.announcement-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.announcement-badge {
    background: rgba(0,0,0,0.2);
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    font-size: 11px;
}

.announcement-text {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

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

/* --- Ultra-Modern Campus Updates & Events Section --- */
.campus-notices-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    position: relative;
    overflow: hidden;
}

.campus-notices-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-navy, #0b1c3c), var(--accent-orange, #f97316), var(--accent-gold, #c5a059));
}

.campus-notices-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.campus-notices-section .section-title span {
    display: inline-block;
    background-color: rgba(249, 115, 22, 0.12);
    color: var(--accent-orange, #f97316);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.campus-notices-section .section-title h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary-navy, #0b1c3c);
    letter-spacing: -0.5px;
}

.notices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.notice-card {
    background: var(--white, #ffffff);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-left: 6px solid var(--accent-orange, #f97316);
    border-radius: 16px;
    padding: 35px 30px;
    position: relative;
    box-shadow: 0 15px 35px -5px rgba(11, 28, 60, 0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.notice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(11, 28, 60, 0.12);
    border-color: #cbd5e1;
    border-left-color: var(--primary-navy, #0b1c3c);
}

.notice-tag {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: var(--white, #ffffff);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.notice-card h4 {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-navy, #0b1c3c);
    margin-bottom: 25px;
    line-height: 1.45;
}

.notice-card h4 a {
    color: inherit;
    transition: color 0.2s ease;
}

.notice-card h4 a:hover {
    color: var(--accent-orange, #f97316);
}

.notice-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-navy, #0b1c3c);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.2s ease;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}

.notice-read-more:hover {
    color: var(--accent-orange, #f97316);
    gap: 12px;
}

/* --- Professional Mobile Hamburger & Accordion Menu with Mobile-Only Arrows --- */
.menu-toggle-btn {
    display: none;
    background: var(--primary-navy);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    margin: 10px;
}

.menu-toggle-btn span:not(.menu-text) {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    margin: 4px 0;
    transition: var(--transition);
}

.submenu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        overflow-x: hidden !important;
    }

    body {
        overflow-x: hidden !important;
    }

    .top-bar-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
    }

    .top-bar-left {
        justify-content: center;
        gap: 10px;
        font-size: 11px;
    }

    .branding-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .logos-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .logo-img {
        height: 50px;
    }

    .institute-titles h2 {
        font-size: 15px;
        line-height: 1.2;
    }

    .institute-titles h1, .institute-titles p {
        font-size: 10px;
    }

    .branding-cta {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .btn-enquire, .btn-apply {
        flex: 1;
        padding: 10px 6px;
        font-size: 11px;
        text-align: center;
    }

    .site-header {
        position: relative;
    }

    .menu-toggle-btn {
        display: flex;
    }

    .nav-container {
        flex-direction: column;
        align-items: stretch !important;
        width: 100% !important;
        display: block !important;
        padding: 5px 0 !important;
    }

    .main-navigation {
        width: 100% !important;
    }

    .main-navigation ul {
        display: none !important;
        flex-direction: column !important;
        width: 100% !important;
        background: var(--white);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        padding: 10px 0 !important;
        margin: 0 !important;
    }

    .main-navigation ul.mobile-open {
        display: flex !important;
    }

    .main-navigation li {
        width: 100%;
        text-align: left !important;
        border-bottom: 1px solid #f1f5f9;
        display: block !important;
    }

    .main-navigation li.menu-item-has-children > a,
    .main-navigation li.page_item_has_children > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .submenu-toggle {
        display: inline-block !important;
        background: none;
        border: none;
        color: var(--primary-navy, #0b1c3c);
        font-size: 16px;
        padding: 5px 15px;
        cursor: pointer;
    }

    .main-navigation a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 20px !important;
        font-size: 13px !important;
    }

    .main-navigation ul ul {
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 15px !important;
        background: #f8fafc !important;
    }

    .main-navigation li.submenu-active > ul {
        display: flex !important;
        flex-direction: column !important;
    }

    .banner-slider {
        height: 320px;
    }

    .slide-content {
        padding: 15px;
        max-width: 100%;
    }

    .slide-content h2 {
        font-size: 22px;
    }

    .slide-content h4 {
        font-size: 12px;
    }

    .slide-content p {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .slide-btns {
        flex-direction: row;
        gap: 8px;
    }

    .btn-slide-primary, .btn-slide-secondary {
        flex: 1;
        padding: 8px 10px;
        font-size: 11px;
        text-align: center;
    }

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

    .stat-item h3 {
        font-size: 15px;
    }

    .stat-item p {
        font-size: 10px;
    }

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

    .program-card {
        padding: 20px;
        min-height: auto;
    }

    .why-choose-overlap-wrapper {
        position: static;
    }

    .why-choose-floating-box {
        position: static;
        width: 100%;
        margin-top: 15px;
        padding: 20px;
        box-shadow: none;
    }

    .why-choose-bg-img {
        height: 200px;
    }

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

    .site-footer {
        padding: 40px 0 70px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* --- Universal Print Stylesheet --- */
@media print {
    .site-header, .banner-slider, .site-footer, .menu-toggle-btn, .mobile-sticky-action-bar {
        display: none !important;
    }
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
}

/* --- Custom Inner Page Header Size Adjustments --- */
.page-header-title-area {
    padding: 20px 0 !important;
}

.page-header-title-area h1 {
    font-size: 24px !important;
    line-height: 1.2 !important;
}

.page-header-title-area p {
    font-size: 13px !important;
    margin-top: 5px !important;
}

/* --- Attractive Modern Inner Page Layouts --- */
.page-layout-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
    align-items: start;
}

.page-layout-grid.sidebar-disabled {
    grid-template-columns: 1fr !important;
}

@media (max-width: 992px) {
    .page-layout-grid {
        grid-template-columns: 1fr;
    }
}

.page-content-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(11, 28, 60, 0.05);
    border: 1px solid #e2e8f0;
    font-size: 15px;
    color: var(--text-dark, #1e293b);
    line-height: 1.8;
}

.page-content-box h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-navy, #0b1c3c);
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-gold, #c5a059);
    padding-bottom: 8px;
    display: inline-block;
}

.page-content-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-navy, #0b1c3c);
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-content-box p {
    margin-bottom: 15px;
}

.page-content-box ul, .page-content-box ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-content-box li {
    margin-bottom: 8px;
}

/* Attractive Sidebar Widgets */
.page-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(11, 28, 60, 0.05);
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--primary-navy, #0b1c3c);
}

.sidebar-widget h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-navy, #0b1c3c);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.sidebar-widget ul li {
    margin-bottom: 10px;
    border-bottom: 1px dashed #f1f5f9;
    padding-bottom: 8px;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-widget ul li a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark, #1e293b);
    transition: var(--transition);
}

.sidebar-widget ul li a:hover {
    color: var(--accent-orange, #f97316);
    padding-left: 4px;
}

.admission-cta-box {
    background: linear-gradient(135deg, var(--primary-navy, #0b1c3c) 0%, #172554 100%);
    color: #ffffff;
    border-top-color: var(--accent-orange, #f97316);
}

.admission-cta-box h3 {
    color: #ffffff;
    border-bottom-color: rgba(255,255,255,0.1);
}

.admission-cta-box p {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.sidebar-btn {
    display: block;
    width: 100%;
    background: var(--accent-orange, #f97316);
    color: #ffffff;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

.sidebar-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- Professional Page Content Image Upgrades --- */
.page-content-box img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(11, 28, 60, 0.08);
    margin: 20px 0;
    display: block;
}

.page-content-box .alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 15px;
}

.page-content-box .alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-content-box .aligncenter {
    margin-left: auto;
    margin-right: auto;
}

.page-content-box .wp-block-gallery, 
.page-content-box .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.page-content-box .wp-block-gallery img, 
.page-content-box .gallery img {
    margin: 0 !important;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background-color: #25d366;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(18, 140, 126, 0.5);
}

.whatsapp-text {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 75px;
        left: 15px;
        padding: 10px 12px;
    }
    .whatsapp-text {
        font-size: 12px;
    }
}