/* Different background for parent and subfolder accordion */
.tree-folder > li > .tree-folder-header {
    background: #f3f7fa;
}
.tree-folder > li > ul > li > .tree-folder-header,
.tree-folder > li > .tree-folder-content > ul > li > .tree-folder-header {
    background: #f7f9f3;
}
.tree-folder > li > ul > li > ul > li > .tree-folder-header,
.tree-folder > li > .tree-folder-content > ul > li > ul > li > .tree-folder-header {
    background: #f9f7fa;
}
/* Collapsible Tree View for Gallery Folders */
.tree-folder {
    list-style: none;
    padding-left: 1.2em;
    margin: 0.5em 0;
    font-size: 1.08em;
}
.tree-folder li {
    margin: 0.2em 0;
    position: relative;
}
.tree-folder-toggle {
    cursor: pointer;
    font-weight: 600;
    color: #1565c0;
    user-select: none;
    display: inline-block;
}
.tree-folder-toggle::before {
    content: '\25B6'; /* right-pointing triangle */
    display: inline-block;
    margin-right: 6px;
    transition: transform 0.2s;
}
.tree-folder-open > .tree-folder-toggle::before {
    transform: rotate(90deg);
}
.tree-folder ul {
    display: none;
    margin-left: 1.2em;
    border-left: 1px dashed #b0bec5;
    padding-left: 0.7em;
}
.tree-folder-open > ul {
    display: block;
}
.tree-folder a {
    color: #1565c0;
    text-decoration: none;
}
.tree-folder a:hover {
    text-decoration: underline;
}
/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}
.dropdown > a::after {
    content: " ▼";
    font-size: 0.7em;
}
.dropdown-menu {
    display: none;
    position: absolute;
    background: #ecb313;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    top: 100%;
    left: 0;    
    padding: 0;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li {
    display: block;
}
.dropdown-menu li a {
    color: #fff;
    padding: 12px 20px;
    display: block;
    font-size: 1em;
    text-align: left;
    border-bottom: 1px solid #377dce;
    background: none;
    transition: background 0.2s, color 0.2s;
}
.dropdown-menu li:last-child a {
    border-bottom: none;
}
.dropdown-menu li a:hover {
    background: #377dce;
    color: #fffbe7;
}

/* Redesigned News & Events Section */
.modern-news-events-row {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    margin: 40px auto 60px auto;
    max-width: 1200px;
}
.modern-upcoming-events-col {
    background: #f7faff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 32px 32px 24px 32px;
    flex: 1 1 320px;
    min-width: 260px;
}
.modern-upcoming-title {
    color: #377dce;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 18px;
}
.modern-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.modern-upcoming-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e3e8ee;
}
.modern-upcoming-date {
    background: #377dce;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 4px;
    padding: 6px 12px;
    min-width: 60px;
    text-align: center;
}
.modern-upcoming-details {
    color: #205c2a;
    font-size: 1.1rem;
}
.modern-news-gallery-col {
    flex: 2 1 520px;
    min-width: 320px;
    padding: 32px 32px 24px 32px;
}
.modern-news-gallery-title {
    color: #222;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 18px;
}
.modern-viewall-link {
    font-size: 1rem;
    color: #377dce;
    margin-left: 12px;
    text-decoration: underline;
}
.modern-news-gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.modern-news-featured {
    display: flex;
    background: #fffbe7;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
    align-items: stretch;
}
.modern-news-featured img {
    width: 180px;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}
.modern-news-featured-content {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.modern-news-featured-date {
    color: #377dce;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.modern-news-featured-title {
    color: #205c2a;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.modern-news-featured-desc {
    color: #444;
    font-size: 1rem;
}
.modern-news-gallery-row {
    display: flex;
    gap: 18px;
    margin-top: 12px;
}
.modern-news-card {
    background: #f7faff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px 16px 8px;
    min-width: 0;
}
.modern-news-card img {
    width: 100%;
    max-width: 110px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}
.modern-news-card-date {
    color: #377dce;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.modern-news-card-title {
    color: #205c2a;
    font-size: 1rem;
    text-align: center;
}
@media (max-width: 900px) {
    .modern-news-events-row {
        flex-direction: column;
        gap: 24px;
        max-width: 98vw;
    }
    .modern-upcoming-events-col, .modern-news-gallery-col {
        min-width: 0;
        width: 100%;
        padding: 24px 12px 18px 12px;
    }
    .modern-news-featured {
        flex-direction: column;
    }
    .modern-news-featured img {
        width: 100%;
        height: 120px;
        border-radius: 8px 8px 0 0;
    }
    .modern-news-gallery-row {
        flex-direction: column;
        gap: 12px;
    }
    .modern-news-card img {
        max-width: 100%;
        height: 80px;
    }
}
.info-box:nth-child(1) {
    background-color: #FFF8E1;
}
.info-box:nth-child(1) h3 {
    background-color: #FFD54F;
    color: #333;
    border-radius: 6px;
    padding: 6px 0;
}
.info-box:nth-child(2) {
    background-color: #E1F5FE;
}
.info-box:nth-child(2) h3 {
    background-color: #4FC3F7;
    color: #fff;
    border-radius: 6px;
    padding: 6px 0;
}
.info-box:nth-child(3) {
    background-color: #F3E5F5;
}
.info-box:nth-child(3) h3 {
    background-color: #BA68C8;
    color: #fff;
    border-radius: 6px;
    padding: 6px 0;
}

/* Animation for info boxes */
.info-box {
    opacity: 0;
    transform: translateY(40px);
    animation: infoBoxFadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.info-box:nth-child(1) {
    animation-delay: 0.1s;
}
.info-box:nth-child(2) {
    animation-delay: 0.3s;
}
.info-box:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes infoBoxFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f8f8;
}
header {
    background: #1a73e8;
    color: #fff;
    padding: 0;
    height: 100px;
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
}
.logo {
    height: 60px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: large;
}
.slider {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.slide {
    display: none;
    width: 100%;
}
.slide.active {
    display: block;
}
.slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}
.prev { left: 20px; }
.next { right: 20px; }
.info-boxes {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
}
.info-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    text-align: center;
    width: 300px;
    transition: box-shadow 0.3s;
}
.info-box:hover {
    box-shadow: 0 4px 16px rgba(26,115,232,0.15);
}
.info-box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}
.info-box h3 {
    margin: 15px 0 10px 0;
    color: #1a73e8;
}
.info-box p {
    color: #444;
    font-size: 1rem;
}
.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: #1a73e8;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}
.btn:hover {
    background: #155ab6;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    padding: 0 40px 40px 40px;
}
.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}
.footer-links {
    display: flex;
    gap: 60px;
}
.footer-links h4 {
    margin-bottom: 10px;
    color: #1a73e8;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #b39494;
}
.footer-bottom {
    text-align: center;
    padding: 15px 0;
    background: #111;
    font-size: 0.95rem;
    color: #bbb;
}
@media (max-width: 900px) {
    .info-boxes {
        flex-direction: column;
        align-items: center;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}

/* About Our School Section */
.about-school {
    background: #fff;
    max-width: 1200px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 30px 40px;
    min-height: 350px;
}
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.about-text {
    flex: 1;
}
.about-text h2 {
    color: #1a73e8;
    margin-bottom: 15px;
}
.about-text p {
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.about-image {
    flex: 1;
    text-align: center;
}
.about-image img {
    width: 100%;
    max-width: 350px;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(26,115,232,0.08);
}

/* Number Counters Section */
.counters-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    background: #ffeaea;
    padding: 30px 0;
    margin: 40px 0;
}
.counter-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 25px 40px;
    text-align: center;
    min-width: 150px;
}
.counter {
    font-size: 2.5rem;
    color: #1a73e8;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}
.counter-label {
    color: #444;
    font-size: 1.1rem;
}

/* Split About Us & Modern Counters Section */
.about-counters-section {
    background: linear-gradient(120deg, #e5d6c2 0%, #ece8d4 40%, #21d4fd 100%);
    padding: 60px 0 30px 0;
}
.about-counters-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 48px;
}
.about-img-col {
    flex: 1;
    text-align: right;
}
.about-img {
    max-width: 600px;
    height: 400px;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.about-text-col {
    flex: 1.2;
    padding-right: 0;
}
.about-title {
    font-size: 2.3rem;
    margin-bottom: 18px;
    color: #1a237e;
    display: flex;
    align-items: center;
    gap: 10px;
}
.about-icon {
    font-size: 2.1rem;
    margin-right: 6px;
}
.about-desc {
    font-size: 1.13rem;
    color: #333;
    margin-bottom: 22px;
    line-height: 1.7;
}

.modern-counters-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    background: #f5f7fa;
    padding: 32px 0 38px 0;
    margin-top: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.modern-counter-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 32px 38px 24px 38px;
    text-align: center;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}
.modern-counter-box:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 6px 24px rgba(26,35,126,0.10);
}
.counter-icon {
    font-size: 2.3rem;
    margin-bottom: 10px;
    color: #1a237e;
    display: block;
}
.modern-counter-box .counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a237e;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.modern-counter-box .counter-label {
    font-size: 1.13rem;
    color: #333;
    font-weight: 500;
}

@media (max-width: 900px) {
    .about-counters-wrapper {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    .about-img-col {
        text-align: center;
    }
    .about-img {
        max-width: 320px;
    }
    .modern-counters-row {
        gap: 24px;
        padding: 24px 0 24px 0;
    }
    .modern-counter-box {
        padding: 24px 18px 18px 18px;
        min-width: 100px;
    }
}
}
.news-events h2 {
    color: #1a73e8;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.view-all {
    font-size: 1rem;
    color: #1a73e8;
    text-decoration: underline;
    margin-left: 10px;
}
.news-main {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
}
.news-image {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(26,115,232,0.08);
}
.news-details {
    color: #444;
    font-size: 1rem;
}
.news-desc {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 0.98rem;
}
.news-gallery {
    display: flex;
    gap: 20px;
}
.news-thumb {
    background: #f5faff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(26,115,232,0.05);
    padding: 10px;
    text-align: center;
    width: 120px;
}
.news-thumb img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 6px;
}
.news-thumb-details {
    font-size: 0.95rem;
    color: #444;
}

@media (max-width: 900px) {
    .events-news-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .upcoming-events {
        border-right: none;
        padding-right: 0;
    }
    .news-events {
        padding-left: 0;
    }
    .news-gallery {
        flex-direction: column;
        gap: 10px;
    }
}

/* Apply for Admission Section */
.admission-section {
    max-width: 900px;
    margin: 40px auto;
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(26,115,232,0.08);
    padding: 30px 40px;
    text-align: center;
}
.admission-title {
    color: #1a73e8;
    margin-bottom: 18px;
}
.admission-desc {
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.admission-btn {
    margin-top: 10px;
    font-size: 1.1rem;
}

/* Our Parents Say Section */
.parents-say-section {
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 30px 40px;
    text-align: center;
}
.parents-title {
    color: #1a73e8;
    margin-bottom: 25px;
}
.parents-testimonials {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}
.testimonial-box {
    background: #f5faff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(26,115,232,0.05);
    padding: 20px 25px;
    width: 300px;
    text-align: left;
    color: #444;
}
.testimonial-box strong {
    color: #1a73e8;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .parents-testimonials {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .admission-section, .parents-say-section {
        padding: 20px 10px;
    }
}
