/*
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 top bar, sticky navbar, slider, stats bar, programs grid, and footer.
Version: 1.0
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;
}

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);
}

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

ul {
    list-style: none;
}

.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; /* Deep red matching image text */
    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 --- */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid #e2e8f0;
    border-bottom: 2px solid var(--accent-gold);
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* --- Clean Horizontal Navigation Menu Fix --- */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-top: 1px solid #e2e8f0;
    border-bottom: 2px solid var(--accent-gold);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.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;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary-navy);
    transition: var(--transition);
    padding: 5px 0;
}

/* Dropdown & Submenus Styling (Non-Overlapping & Clean Dropdown) */
.main-navigation ul li {
    position: relative;
}

.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-radius: 6px;
    border-top: 3px solid var(--accent-orange, #f97316);
    flex-direction: column;
    padding: 8px 0;
    z-index: 9999;
    list-style: none;
    margin: 0;
}

/* Show immediate child submenu on hover */
.main-navigation ul li:hover > ul {
    display: flex;
}

.main-navigation ul ul li {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
}

.main-navigation ul ul a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark) !important;
    font-size: 13px;
    text-transform: none;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
}

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

/* Handle third-level (sub-submenus) so they pop out to the right without overlapping */
.main-navigation ul ul ul {
    top: 0;
    left: 100%;
}



/* --- 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 Controls */
.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-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

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

.program-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.program-card {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

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

.btn-know-more {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #f97316;
    color: #f97316;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    transition: var(--transition);
    text-align: center;
}

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

.why-choose-box {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

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

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

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

/* --- 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%); }
}


/* --- Modern UI Enhancements --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-header {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
}

.main-navigation ul {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 14px 0;
}

.main-navigation a {
    position: relative;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: var(--transition);
}

/* Modern hover indicator line under menu items */
.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    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 {
    width: 100%;
}

/* Modern card hover animations */
.program-card, .why-choose-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover, .why-choose-box: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);
}


/* --- Programs & Why Choose Us 3-Grid Layout --- */
.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;
}

.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;
}

.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);
}


/* --- Sticky Mobile Action Bar --- */
.mobile-sticky-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--primary-navy);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .mobile-sticky-action-bar {
        display: flex;
    }
}

.sticky-bar-btn {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
}

.sticky-btn-apply {
    background-color: var(--accent-orange, #f97316);
    border-right: 1px solid rgba(255,255,255,0.2);
}

.sticky-btn-enquire {
    background-color: var(--primary-navy);
}


/* --- Banner Slider Effects (Fade vs Slide) --- */
.banner-slider[data-effect="fade"] .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.banner-slider[data-effect="fade"] .slide.active {
    opacity: 1;
    visibility: visible;
}

.banner-slider[data-effect="slide"] .slider-container {
    display: flex;
    transition: transform 0.8s ease-in-out;
    width: 100%;
    height: 100%;
}

.banner-slider[data-effect="slide"] .slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    opacity: 1;
    visibility: visible;
}


/* --- Slider Mask & Blur Overlays --- */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--slider-overlay, rgba(11,28,60,0.7));
    z-index: 1;
}

.slide {
    backdrop-filter: var(--slider-blur, blur(0px));
}

.slide-content {
    position: relative;
    z-index: 2;
}
