:root {
    /* DPS Replica Colors: Sky Blue & Orange Theme */
    --theme-blue: #0088cc;
    --theme-blue-dark: #005f8f;
    --theme-orange: #f37021;
    --theme-orange-dark: #cc5a15;
    
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    
    --font-main: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

/* Header Top */
.header-top {
    background-color: var(--theme-blue-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
    position: relative;
    z-index: 110;
}

.top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-details ul {
    display: flex;
    gap: 20px;
}

.contact-details a:hover {
    color: var(--theme-orange);
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-links a {
    color: var(--white);
    font-weight: bold;
}

.social-links .social-icon a {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-links .social-icon a:hover {
    color: var(--theme-orange) !important;
    transform: scale(1.2);
}

.social-links .portal-link {
    background: var(--theme-orange);
    color: var(--white) !important;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s ease;
    border: 1px solid var(--theme-orange);
    display: inline-block;
}

.social-links .portal-link:hover {
    background: var(--white);
    color: var(--theme-orange) !important;
    border-color: var(--white);
}

.social-links a:hover {
    color: var(--theme-orange);
}

/* Main Header */
.header-bot {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo-img {
    height: 68px;
    width: 68px;
    object-fit: contain;
    margin-right: 15px;
    border-radius: 50%;
    background: var(--white);
    padding: 2px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.5s ease-in-out;
}

.logo:hover .header-logo-img {
    transform: rotate(360deg);
}

.logo-title {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: var(--theme-blue);
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-subtitle {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--theme-orange);
    line-height: 1.1;
    margin-bottom: 2px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.logo-sub {
    display: block;
    font-size: 10.5px;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Navigation - Desktop */
.main-menu {
    display: flex;
    align-items: center;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: block;
    padding: 35px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--theme-blue);
    text-transform: uppercase;
}

.main-menu > li > a span {
    font-weight: 400;
    color: var(--text-light);
}

.main-menu > li:hover > a {
    color: var(--theme-orange);
}

.main-menu > li:hover > a span {
    color: var(--theme-orange);
}

/* Dropdown */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--theme-blue);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 3px solid var(--theme-orange);
}

.main-menu > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

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

.sub-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--white);
    font-size: 14px;
}

.sub-menu a:hover {
    background: var(--theme-orange);
    padding-left: 25px;
}

/* Mobile Menu Button */
.m-nav-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}

.m-nav-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--theme-blue);
    transition: 0.3s;
}

/* Hero Slider */
.hero-slider {
    width: 100%;
    height: calc(100vh - 126px); /* minus header height approx */
    background: #000;
}

.hero-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slider .swiper-slide::after {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.4);
}

/* Fallback background if dynamic style is empty */
.hero-slider .swiper-slide {
    background-color: #000;
}

.slide-content {
    position: relative;
    z-index: 10;
    color: var(--white);
}

.slide-content h2 {
    font-size: 60px;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 24px;
    background: var(--theme-orange);
    display: inline-block;
    padding: 5px 15px;
}

/* Common Components */
.section-heading {
    font-size: 42px;
    color: var(--theme-blue);
    margin-bottom: 30px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.section-heading span {
    color: var(--theme-orange);
    text-shadow: 2px 2px 4px rgba(243, 112, 33, 0.25);
}

/* Typed cursor styling */
.typed-cursor {
    color: var(--theme-orange);
    font-weight: 800;
    font-size: 42px;
}

/* Preloader styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    padding: 20px;
    max-width: 95%;
}

.preloader-content .preloader-mantra {
    font-size: 22px;
    font-weight: 800;
    color: var(--theme-orange);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 20px;
    display: block;
    opacity: 0;
    animation: slideUpMantra 0.8s ease-out forwards;
}

@keyframes slideUpMantra {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preloader-content .spinner {
    width: 70px;
    height: 70px;
    border: 6px solid rgba(0, 136, 204, 0.1);
    border-top: 6px solid var(--theme-blue);
    border-right: 6px solid var(--theme-orange);
    border-radius: 50%;
    margin: 0 auto 25px;
    animation: spin 1s linear infinite;
}

.preloader-content h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: -1px;
    display: inline-block;
    
    /* Dynamic color transition from Sky Blue to Orange (stays orange at the end) */
    animation: colorTransition 1s ease-in-out forwards, pulse 1.5s ease-in-out infinite;
}

@keyframes colorTransition {
    0% {
        color: var(--theme-blue);
    }
    100% {
        color: var(--theme-orange);
    }
}

.preloader-content p {
    font-size: 18px;
    color: var(--theme-orange);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Mobile responsive preloader rules */
@media (max-width: 768px) {
    .preloader-content h1 {
        font-size: 32px;
    }
    .preloader-content p {
        font-size: 14px;
        letter-spacing: 2px;
    }
    .preloader-content .spinner {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.btn-theme {
    display: inline-block;
    background: var(--theme-orange);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 20px;
}

.btn-theme:hover {
    background: var(--theme-blue);
}

/* Welcome & Notice Section */
.welcome-notice-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr; /* Notice Board column shrunk to 30% width */
    gap: 40px;
    align-items: flex-start;
}

.welcome-text p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* Welcome Stats */
.welcome-stats {
    display: flex;
    gap: 45px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number-wrapper {
    font-size: 44px;
    font-weight: 800;
    color: var(--theme-blue);
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--theme-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notice-board-container {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--theme-orange);
}

.notice-board-container .section-heading {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Highlights Section */
.highlights-section {
    background: var(--bg-light);
}

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

.highlight-card {
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    color: var(--white);
    transition: transform 0.3s;
}

.highlight-card:hover {
    transform: translateY(-10px);
}

.blue-card {
    background: var(--theme-blue);
}

.orange-card {
    background: var(--theme-orange);
}

.highlight-card .icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.highlight-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* Notice Board */
.notice-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.notice-item {
    display: flex;
    background: var(--white);
    border: 1px solid #eee;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--theme-orange);
}

.notice-item .date {
    background: var(--bg-light);
    padding: 12px 15px;
    text-align: center;
    min-width: 80px;
    border-right: 1px solid #eee;
}

.notice-item .date span:first-child {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--theme-blue);
    line-height: 1;
}

.notice-item .date span:last-child {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-light);
    text-transform: uppercase;
}

.notice-content {
    padding: 12px 15px;
}

.notice-content h4 {
    font-size: 15px;
    margin-bottom: 3px;
}

.notice-content p {
    font-size: 13px;
    line-height: 1.4;
}

.notice-content h4 a {
    color: var(--theme-blue);
}

.notice-content h4 a:hover {
    color: var(--theme-orange);
}

/* Gallery Section */
.gallery-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.gallery-header-row .section-heading {
    margin-bottom: 0;
}

.btn-theme-outline {
    display: inline-block;
    border: 2px solid var(--theme-orange);
    color: var(--theme-orange);
    background: transparent;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-main);
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-theme-outline:hover {
    background: var(--theme-orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.2);
}

/* Admin Panel */
.admin-panel {
    background: var(--bg-light);
    border: 1px solid #e1e8ed;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 50px;
    display: none;
    border-top: 4px solid var(--theme-blue);
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

.admin-panel.active {
    display: block;
    animation: fadeInSlideDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeInSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-panel h3 {
    margin-bottom: 20px;
    color: var(--theme-blue);
    font-size: 22px;
    font-weight: 800;
}

/* Admin Panel Tabs */
.admin-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #cbd5e1;
    margin-bottom: 25px;
    padding-bottom: 5px;
    overflow-x: auto;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-main);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--theme-blue);
}

.tab-btn.active {
    color: var(--theme-blue);
    border-bottom-color: var(--theme-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.admin-panel form {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 20px;
    align-items: flex-end;
}

.form-group.col-form {
    display: flex;
    flex-direction: column;
}

.form-group.col-form label {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-dark);
}

.form-group.col-form input {
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 14px;
    background: var(--white);
    outline: none;
    transition: 0.3s;
}

.form-group.col-form input:focus {
    border-color: var(--theme-blue);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Homepage specific 4-column Gallery Grid */
.home-page .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1199px) {
    .home-page .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .home-page .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 50, 80, 0.95) 10%, rgba(243, 112, 33, 0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--white);
    transition: bottom 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
    opacity: 0.85;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay h4 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1.3;
}

.gallery-overlay span {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 8px;
}

.photo-count {
    background: var(--theme-orange);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: 0.5px !important;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    width: 90%;
    max-width: 850px;
    text-align: center;
    color: var(--white);
    position: relative;
}

.lightbox-swiper {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    margin-bottom: 25px;
    background: #0d0d0d;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lightbox-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.close-lightbox {
    position: fixed;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 60px;
    font-weight: 200;
    cursor: pointer;
    z-index: 100001;
    transition: color 0.3s;
    line-height: 1;
}

.close-lightbox:hover {
    color: var(--theme-orange);
}

#lightbox-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

#lightbox-date {
    font-size: 14px;
    color: var(--theme-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .lightbox-swiper {
        height: 350px;
    }
    .close-lightbox {
        top: 15px;
        right: 20px;
        font-size: 45px;
    }
    #lightbox-title {
        font-size: 20px;
    }
}

/* Footer */
.main-footer {
    background: #1a1a1a;
    color: #cccccc;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-widget h3 {
    color: var(--theme-orange);
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--theme-blue);
}

/* Cool Interactive Footer Map Location */
.footer-map {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--theme-orange);
    height: 150px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.8) contrast(1.1); /* Grayscale by default */
    transition: filter 0.4s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Hover effects */
.footer-map:hover {
    transform: translateY(-8px) scale(1.03); /* Floats up slightly */
    border-color: var(--theme-blue); /* Borders changes to blue */
    box-shadow: 0 15px 30px rgba(0, 136, 204, 0.3); /* Blue glowing drop shadow */
}

.footer-map:hover iframe {
    filter: grayscale(0) contrast(1); /* Smoothly returns to full color */
    transform: scale(1.08); /* Map zooms in slightly */
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul a:hover {
    color: var(--theme-orange);
    padding-left: 5px;
}

.footer-bot {
    background: #111111;
    padding: 20px 0;
    font-size: 14px;
}

/* Responsive CSS - Mimicking Mobile Variant */
@media (max-width: 991px) {
    .top-container {
        flex-direction: column;
        gap: 12px;
        padding: 8px 15px;
    }

    .contact-details ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }
    
    .header-bot {
        padding: 15px 0;
    }
    
    .nav-container {
        height: auto;
    }

    .m-nav-btn {
        display: flex;
    }

    .menu-cont {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--theme-blue);
        z-index: 1000;
        transition: right 0.4s ease;
        overflow-y: auto;
        padding-top: 60px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }

    .menu-cont.active {
        right: 0;
    }

    .main-menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-menu > li > a {
        padding: 15px 20px;
        color: var(--white);
    }
    
    .main-menu > li > a span {
        color: var(--white);
        opacity: 0.8;
    }

    .sub-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background: var(--theme-blue-dark);
        border-top: none;
    }

    .sub-menu.active {
        display: block;
    }

    .m-nav-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .m-nav-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .m-nav-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .m-nav-btn.active {
        position: fixed;
        right: 20px;
        top: 30px;
    }

    /* Stacking grids */
    .welcome-notice-grid, .cards-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .admin-panel form {
        grid-template-columns: 1fr;
        gap: 15px;
        align-items: stretch;
    }

    .hero-slider {
        height: 50vh;
    }

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

/* Chalkboard Footer Art Section */
.chalkboard-footer-section {
    position: relative;
    background-color: #0d1e36; /* Slate chalkboard background */
    padding: 100px 0;
    overflow: hidden;
    border-top: 5px solid var(--theme-orange);
    border-bottom: 3px solid var(--theme-blue);
}

.chalkboard-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.chalkboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.chalkboard-content {
    position: relative;
    z-index: 5;
}

.chalkboard-title {
    font-weight: 800;
    font-size: 36px;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chalkboard-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* Pencil Drawing Path Animation */
.pencil-drawing-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.drawing-path-svg {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.animated-draw-line {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: drawLine 8s linear infinite;
}

.pencil-icon {
    position: absolute;
    color: var(--theme-orange);
    font-size: 26px;
    filter: drop-shadow(0 0 8px rgba(243, 112, 33, 0.8));
    offset-path: path('M 0,50 Q 250,90 500,50 T 1000,50');
    offset-rotate: auto;
    animation: movePencil 8s linear infinite;
}

/* Floating wisdom icons */
.wisdom-icons-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.wisdom-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    font-size: 32px;
    transition: color 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    cursor: pointer;
}

.wisdom-icon:hover {
    color: var(--theme-orange) !important;
    transform: scale(1.4) rotate(15deg);
}

/* Position and animate floating items */
.w-book { top: 15%; left: 8%; animation: floatUp 8s ease-in-out infinite; }
.w-cap { top: 60%; left: 20%; animation: floatUp 10s ease-in-out infinite 1s; }
.w-ruler { top: 20%; right: 10%; animation: floatUp 9s ease-in-out infinite 0.5s; }
.w-globe { top: 65%; right: 22%; animation: floatUp 11s ease-in-out infinite 2s; }
.w-bulb { top: 35%; left: 85%; animation: floatUp 7s ease-in-out infinite 1.5s; }
.w-atom { top: 50%; left: 4%; animation: floatUp 12s ease-in-out infinite 0.2s; }

/* Interactive Hover Reactions for Blackboard */
.chalkboard-footer-section:hover .wisdom-icon {
    color: rgba(255, 255, 255, 0.25);
}

.chalkboard-footer-section:hover .w-bulb:hover {
    color: rgba(255, 221, 51, 0.8) !important; /* Yellow lightbulb glow! */
    filter: drop-shadow(0 0 10px rgba(255, 221, 51, 0.6));
}

.chalkboard-footer-section:hover .w-book:hover {
    color: rgba(0, 136, 204, 0.8) !important; /* Blue book glow */
    filter: drop-shadow(0 0 10px rgba(0, 136, 204, 0.6));
}

.chalkboard-footer-section:hover .w-cap:hover {
    color: rgba(243, 112, 33, 0.8) !important; /* Orange graduation cap */
    filter: drop-shadow(0 0 10px rgba(243, 112, 33, 0.6));
}

/* CSS Keyframes */
@keyframes drawLine {
    0% {
        stroke-dashoffset: 1200;
    }
    50% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -1200;
    }
}

@keyframes movePencil {
    0% {
        offset-distance: 0%;
    }
    100% {
        offset-distance: 100%;
    }
}

@keyframes floatUp {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(8deg);
    }
}

/* Mobile responsive fixes for chalkboard */
@media (max-width: 768px) {
    .chalkboard-footer-section {
        padding: 60px 0;
    }
    .chalkboard-title {
        font-size: 26px;
    }
    .wisdom-icon {
        font-size: 24px;
    }
}
