/* ==========================================================================
   LAYOUT 6: DPS RANCHI ULTRA-PREMIUM SIGNATURE GREEN & GOLD THEME
   Replicating www.dpsranchi.com visual aesthetics, layout, and colors
   ========================================================================== */

:root {
    --dps-green-primary: #0B5F3D;
    --dps-green-dark: #07472E;
    --dps-green-deep: #053623;
    --dps-green-light: #03834B;
    --dps-gold: #FFC63C;
    --dps-gold-hover: #E5AE27;
    --dps-bg-light: #F5F7F6;
    --dps-text-dark: #1E293B;
    --dps-text-muted: #64748B;
    --dps-white: #FFFFFF;
    --dps-shadow: 0 10px 30px rgba(11, 95, 61, 0.12);
}

body.layout6-body {
    font-family: 'Jost', 'Poppins', sans-serif;
    color: var(--dps-text-dark);
    background-color: #FAFCFB;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.l6-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   1. TOP UTILITY BAR
   ========================================================================== */
.l6-topbar {
    background-color: var(--dps-green-dark);
    color: var(--dps-white);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.l6-topbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.l6-top-info span, .l6-top-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.l6-top-info a:hover {
    color: var(--dps-gold);
}

.l6-sep {
    margin: 0 6px;
    opacity: 0.5;
}

.l6-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.l6-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--dps-white);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.l6-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--dps-white);
    transform: translateY(-1px);
}

.l6-action-btn.l6-btn-gold {
    background: var(--dps-gold);
    color: #000000;
    box-shadow: 0 4px 12px rgba(255, 198, 60, 0.3);
}

.l6-action-btn.l6-btn-gold:hover {
    background: var(--dps-gold-hover);
    color: #000000;
}

/* ==========================================================================
   2. BRANDING HEADER
   ========================================================================== */
.l6-branding-header {
    background: var(--dps-white);
    padding: 16px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid rgba(11, 95, 61, 0.08);
}

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

.l6-header-badges {
    display: flex;
    align-items: center;
    gap: 16px;
}

.l6-info-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.l6-info-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 95, 61, 0.1);
    border-color: var(--dps-green-primary);
}

.l6-info-badge.l6-badge-highlight {
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    border-color: #FCD34D;
}

.l6-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #D1FAE5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.l6-badge-icon.gold {
    background: var(--dps-green-primary);
    color: var(--dps-gold);
}

.l6-badge-text {
    display: flex;
    flex-direction: column;
}

.l6-badge-lbl {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #64748B;
    text-transform: uppercase;
}

.l6-badge-val {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.2;
}

@media (max-width: 991px) {
    .l6-header-badges {
        display: none;
    }
}

.l6-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
}

.l6-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.l6-logo-badge {
    width: 65px;
    height: 65px;
    background: var(--dps-green-primary);
    color: var(--dps-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 15px rgba(11, 95, 61, 0.25);
}

.l6-school-title {
    font-family: 'Jost', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--dps-green-primary);
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.l6-school-sub {
    font-size: 13px;
    color: var(--dps-text-muted);
    margin: 3px 0 0 0;
    font-weight: 500;
}

.l6-mobile-toggle {
    display: none;
    background: var(--dps-green-primary);
    color: var(--dps-white);
    border: none;
    font-size: 20px;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

/* ==========================================================================
   3. NAVIGATION BAR
   ========================================================================== */
.l6-navbar {
    background: var(--dps-green-primary);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.l6-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.l6-nav-menu > li {
    position: relative;
}

.l6-nav-item {
    display: block;
    padding: 14px 18px;
    color: var(--dps-white);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-transform: capitalize;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.l6-nav-item.active {
    background-color: var(--dps-gold);
    color: #000000 !important;
    border-bottom-color: #000;
    font-weight: 700;
}

.l6-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--dps-gold);
}

.l6-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: var(--dps-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
    border-top: 3px solid var(--dps-gold);
}

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

.l6-dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--dps-text-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.l6-dropdown-menu li a:hover {
    background: var(--dps-bg-light);
    color: var(--dps-green-primary);
    padding-left: 25px;
}

/* ==========================================================================
   4. DPS HOMEPAGE SECTION OVERRIDES
   ========================================================================== */

/* Hero Banner DPS Green Styling & Custom Animations */
.layout6-body .web-hero-section:not(.has-slider) {
    background: var(--dps-green-deep, #053623) !important;
    border-bottom: 4px solid var(--dps-gold, #FFC63C);
    box-shadow: 0 10px 30px rgba(5, 54, 35, 0.4);
}

.layout6-body .web-hero-section.has-slider {
    background: var(--dps-green-deep, #053623) !important;
    border-bottom: 4px solid var(--dps-gold, #FFC63C);
}

.layout6-body .web-slide {
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Animations for Active Slide Elements in Layout 6 */
.layout6-body .web-slide.active .web-badge {
    animation: l6BadgeBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.layout6-body .web-slide.active .web-hero-title {
    animation: l6TitleZoomIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.layout6-body .web-slide.active .web-hero-sub {
    animation: l6SubSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.layout6-body .web-slide.active .web-hero-btns {
    animation: l6BtnsPopIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s forwards;
}

/* Layout 6 Keyframe Animations */
@keyframes l6BadgeBounce {
    0% {
        opacity: 0;
        transform: translateY(-40px) scale(0.8);
    }
    70% {
        transform: translateY(5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes l6TitleZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes l6SubSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
        letter-spacing: 2px;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0.3px;
    }
}

@keyframes l6BtnsPopIn {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Layout 6 Navigation Controls & Badge Override */
.layout6-body .web-badge {
    background: var(--dps-gold, #FFC63C) !important;
    color: #053623 !important;
    font-weight: 800 !important;
    border: 1px solid #FFFFFF !important;
    box-shadow: 0 4px 15px rgba(255, 198, 60, 0.4) !important;
}

.layout6-body .web-hero-title {
    font-family: 'Jost', sans-serif !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 198, 60, 0.2) !important;
}

.layout6-body .web-hero-arrow {
    background: var(--dps-green-primary, #0B5F3D) !important;
    border: 2px solid var(--dps-gold, #FFC63C) !important;
    color: var(--dps-gold, #FFC63C) !important;
    box-shadow: 0 6px 20px rgba(11, 95, 61, 0.4) !important;
}

.layout6-body .web-hero-arrow:hover {
    background: var(--dps-gold, #FFC63C) !important;
    color: #053623 !important;
    border-color: #FFFFFF !important;
    box-shadow: 0 8px 25px rgba(255, 198, 60, 0.6) !important;
    transform: translateY(-50%) scale(1.15) rotate(360deg);
    transition: transform 0.5s ease, background 0.25s ease !important;
}

.layout6-body .web-hero-dots {
    background: rgba(5, 54, 35, 0.8) !important;
    border: 1px solid var(--dps-gold, #FFC63C) !important;
}

.layout6-body .web-hero-dot.active {
    background: var(--dps-gold, #FFC63C) !important;
    box-shadow: 0 0 15px rgba(255, 198, 60, 0.9) !important;
    animation: l6DotPulse 2s infinite ease-in-out;
}

@keyframes l6DotPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 198, 60, 0.7);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 198, 60, 1);
    }
}

.layout6-body .web-btn-gold {
    background: var(--dps-gold);
    color: #000000;
}

.layout6-body .web-btn-gold:hover {
    background: var(--dps-gold-hover);
}

/* Ticker Bar */
.layout6-body .web-ticker-bar {
    background: var(--dps-green-deep);
    border-bottom: 2px solid var(--dps-gold);
}

.layout6-body .web-ticker-label {
    background: var(--dps-gold);
    color: #000000;
    font-weight: 700;
}

/* Spotlight Green Card Section (Aryabhata Competition Style) */
.l6-spotlight-box {
    background: linear-gradient(135deg, #096542 0%, #054B30 100%);
    border-radius: 20px;
    padding: 35px;
    color: var(--dps-white);
    margin: 40px 0;
    box-shadow: var(--dps-shadow);
    display: flex;
    gap: 30px;
    align-items: center;
}

@media (max-width: 768px) {
    .l6-spotlight-box {
        flex-direction: column;
    }
}

.l6-spotlight-img {
    width: 320px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.l6-spotlight-content {
    flex: 1;
}

.l6-spotlight-tag {
    display: inline-block;
    background: var(--dps-gold);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.l6-spotlight-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--dps-white);
    line-height: 1.3;
}

.l6-spotlight-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 20px;
}

.l6-btn-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dps-gold);
    color: #000;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.l6-btn-readmore:hover {
    background: var(--dps-gold-hover);
    transform: translateY(-2px);
}

/* Toppers Posters Block */
.l6-toppers-section {
    background: #F0F5F2;
    padding: 50px 0;
}

.l6-toppers-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: center;
}

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

.l6-topper-poster-card {
    background: var(--dps-white);
    border: 2px solid var(--dps-green-primary);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--dps-shadow);
    transition: transform 0.3s ease;
}

.l6-topper-poster-card:hover {
    transform: translateY(-5px);
}

.l6-poster-badge {
    background: var(--dps-green-primary);
    color: var(--dps-gold);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(11, 95, 61, 0.2);
}

.l6-poster-img {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 8px;
}

/* ==========================================================================
   5. DPS FOOTER STYLING
   ========================================================================== */
.l6-footer {
    background: linear-gradient(180deg, var(--dps-green-dark) 0%, var(--dps-green-deep) 100%);
    color: var(--dps-white);
    padding: 60px 0 25px 0;
    border-top: 5px solid var(--dps-gold);
}

.l6-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

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

.l6-footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.l6-footer-logo {
    height: 60px;
    width: auto;
    background: white;
    padding: 4px;
    border-radius: 50%;
}

.l6-footer-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--dps-gold);
}

.l6-footer-sub {
    font-size: 12px;
    margin: 2px 0 0 0;
    opacity: 0.8;
}

.l6-foot-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--dps-gold);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.l6-foot-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--dps-gold);
    border-radius: 2px;
}

.l6-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.l6-contact-list li {
    margin-bottom: 10px;
    opacity: 0.9;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.l6-contact-list i {
    color: var(--dps-gold);
    margin-top: 3px;
}

.l6-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 13px;
}

.l6-quick-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.2s ease;
}

.l6-quick-links a:hover {
    color: var(--dps-gold);
    padding-left: 5px;
}

.l6-app-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.l6-app-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s;
}

.l6-app-btn:hover {
    background: var(--dps-gold);
    color: #000;
}

.l6-map-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.l6-map-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dps-gold);
}

.l6-map-preview {
    position: relative;
}

.l6-map-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.l6-map-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--dps-gold);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.l6-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.l6-social-row {
    display: flex;
    gap: 10px;
}

.l6-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.l6-social-icon:hover {
    background: var(--dps-gold);
    color: #000;
    transform: translateY(-3px);
}

.l6-copyright {
    font-size: 13px;
    opacity: 0.8;
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
    .l6-mobile-toggle {
        display: block;
    }
    .l6-navbar {
        display: none;
    }
    .l6-navbar.active {
        display: block;
    }
    .l6-nav-menu {
        flex-direction: column;
        align-items: stretch;
    }
    .l6-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.15);
        display: none;
    }
    .l6-dropdown.open .l6-dropdown-menu {
        display: block;
    }
    .l6-dropdown-menu li a {
        color: white;
    }
}
