/* K. Kamarajar School Style Redesign */
:root {
    --primary-purple: #6a1b9a;
    --secondary-purple: #4a148c;
    --accent-yellow: #ffc107;
    --accent-red: #e91e63;
    --light-yellow: #fff9c4;
    --text-dark: #333;
    --white: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}



.header-area {
    background: #1e1f36 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    top: 0px !important;
    transition: all 0.3s ease;
}

.header-area.background-header {
    top: 0 !important;
}

.header-area .main-nav .nav li a {
    color: #fff !important;
    padding-left: 5px !important;
}

.header-area .main-nav .logo h4 {
    color: #fff !important;
}

/* Fix mobile menu visibility for tablet/mobile */
@media (max-width: 1200px) {
    .header-area .main-nav .nav li a {
        color: #333 !important;
        padding-left: 5px !important;
        /* Dark text for light mobile background */
    }

    .header-area.header-sticky .nav li a.active {
        color: var(--accent-yellow) !important;
    }

    .header-area .main-nav .menu-trigger span,
    .header-area .main-nav .menu-trigger span:before,
    .header-area .main-nav .menu-trigger span:after {
        background-color: #fff;
        /* Ensure hamburger is white on dark header */
    }
}

.school-selector {
    padding-top: 5px !important;
    padding-bottom: 0px !important;
    background: #fff;
    text-align: center;
    position: relative;
    z-index: 1;
}

.school-card {
    border-radius: 0;
    /* Edged border (Square corners) */
    padding: 30px 40px;
    box-shadow: none;
    /* Clean full-width look */
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Icon on left */
    height: 120px;
    /* Keep height as requested */
    overflow: hidden;
    color: var(--white);
    border: none;
    position: relative;
}

.school-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.school-card .icon-placeholder {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.school-card .content {
    text-align: left;
    flex-grow: 1;
}

.school-card h3 {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--white);
    font-size: 1.4rem;
}

.school-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.25;
}


/* Different colors for the banners */
.card-variant-1 {
    background: linear-gradient(135deg, #e91e63, #f48fb1);
}

.card-variant-2 {
    background: linear-gradient(135deg, #6a1b9a, #9c27b0);
}

.card-variant-3 {
    background: linear-gradient(135deg, #1976d2, #64b5f6);
}

.card-variant-4 {
    background: linear-gradient(135deg, #ef6c00, #ffb74d);
}

.card-pre-kg {
    background: linear-gradient(135deg, #e91e63, #f48fb1);
}

.card-hr-sec {
    background: linear-gradient(135deg, #6a1b9a, #9c27b0);
}

/* Our Strength Section */
.strength-section {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.strength-section .section-heading h6 {
    color: var(--primary-purple);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.strength-section .section-heading h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
    max-width: 600px;
    margin: 0 auto;
}

.strength-item {
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    height: 100%;
}

.strength-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.strength-icon {
    width: 70px;
    height: 70px;
    background: rgba(106, 27, 154, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary-purple);
}

.strength-item h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 5px;
}

.strength-item p {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Different colors for icons */
.strength-item:nth-child(2) .strength-icon {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.strength-item:nth-child(3) .strength-icon {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
}

.strength-item:nth-child(4) .strength-icon {
    background: rgba(30, 136, 229, 0.1);
    color: #1e88e5;
}

/* Achievement Section (Matched to Image) */
.achievement-section {
    background: #b71c1c;
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.achievement-section .trophy-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.achievement-section .content {
    padding-left: 30px;
}

.achievement-section h6 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 15px;
    opacity: 0.9;
}

.achievement-section h2 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--white);
    text-transform: uppercase;
}

.achievement-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 500px;
}

.achievement-section .btns {
    display: flex;
    gap: 20px;
}

.btn-achievement {
    background: #ffec3d;
    color: #333 !important;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-achievement:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--white);
}

@media (max-width: 991px) {
    .achievement-section {
        text-align: center;
        padding: 60px 0;
    }

    .achievement-section .content {
        padding-left: 0;
        margin-top: 40px;
    }

    .achievement-section h2 {
        font-size: 2.5rem;
    }

    .achievement-section .trophy-img {
        max-width: 250px;
    }

    .achievement-section .btns {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Fee Structure Section */
.fee-section {
    padding: 20px 0;
    background: #fff;
}

.fee-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.fee-card:hover {
    transform: translateY(-10px);
}

.fee-header {
    background: #333;
    padding: 40px 20px;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
}

.fee-header h6 {
    color: #f0648c;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.fee-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}

.fee-header span {
    font-size: 2.2rem;
    font-weight: 800;
    opacity: 0.9;
}

.fee-body {
    padding: 30px 20px;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.fee-item:last-child {
    border-bottom: none;
}

.fee-item .price {
    font-weight: 700;
    color: #000;
}

/* Animations */
.fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

footer h4 {
    color: var(--accent-yellow);
    font-weight: 700;
    margin-bottom: 20px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.8);
}

/* Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeInDown {
    animation-name: fadeInDown;
}

/* Split-Screen About Section */
.about-split {
    display: flex;
    flex-wrap: wrap;
    min-height: 600px;
}

.about-quote-side {
    flex: 1;
    background-color: #ffde2e;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.about-quote-side .quote-text {
    font-size: 1rem;
    font-style: italic;
    color: #333;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 450px;
}

.about-quote-side .avatar-red {
    width: 80px;
    height: 80px;
    background: #ff3333;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.trustee-info h4 {
    font-weight: 700;
    color: #f0648c;
    font-size: 1.1rem;
    margin-bottom: 0;
    text-transform: uppercase;
}

.trustee-info p {
    color: #444;
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination-dots {
    display: flex;
    gap: 8px;
    margin-top: 40px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
}

.dot.active {
    background: #f0648c;
}

.about-content-side {
    flex: 1;
    background: #fff;
    padding: 0px 100px 10px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.about-content-side h6 {
    color: #f0648c;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 15px;
}

.about-content-side h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #000;
    line-height: 1.1;
    margin-bottom: 30px;
}

.about-content-side p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 40px;
}

.btn-read-more {
    background: #ff7675;
    color: #fff !important;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(255, 118, 117, 0.3);
}

.star-decoration {
    position: absolute;
    bottom: 20px;
    left: -50px;
    width: 150px;
    opacity: 0.9;
    pointer-events: none;
}

@media (max-width: 991px) {
    .about-split {
        flex-direction: column;
    }

    .about-quote-side,
    .about-content-side {
        padding: 60px 30px;
    }

    .about-content-side h2 {
        font-size: 2.5rem;
    }

    .star-decoration {
        left: 20px;
        width: 100px;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
    .school-selector {
        padding-top: 5px !important;
    }

    .school-card {
        padding: 15px 20px !important;
        height: auto !important;
        min-height: 100px !important;
        position: relative !important;
    }

    .school-card .content {
        padding-right: 90px !important;
        /* Space for button on right */
    }

    .school-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 2px !important;
    }

    .school-card p {
        font-size: 0.85rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0 !important;
    }

    .btn-explore {
        position: absolute !important;
        right: 15px !important;
        bottom: 15px !important;
        top: auto !important;
        transform: none !important;
        padding: 5px 15px !important;
        font-size: 11px !important;
        border-radius: 4px !important;
        z-index: 5 !important;
    }
}

/* Committee Section */
.committee-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.committee-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(106, 27, 154, 0.03);
    border-radius: 50%;
    z-index: 0;
}

.committee-title-box {
    background: #ffffff;
    color: var(--primary-purple);
    padding: 20px 40px;
    border-radius: 50px;
    margin-bottom: 50px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(106, 27, 154, 0.1);
    position: relative;
    z-index: 1;
}

.committee-title-box h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.committee-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.committee-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-purple);
    transition: width 0.3s ease;
    border-radius: 0 0 15px 15px;
}

.committee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(106, 27, 154, 0.1);
}

.committee-card:hover::after {
    width: 100%;
}

.committee-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.committee-role {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
}

@media (max-width: 767px) {
    .committee-title-box {
        padding: 15px 25px;
        width: 100%;
        border-radius: 15px;
    }

    .committee-title-box h3 {
        font-size: 1.1rem;
    }

    .committee-section {
        padding: 60px 0;
    }
}

/* Two-Row Header Redesign (3-Column Top) */
.header-area {
    position: relative !important;
    height: auto !important;
    background: #fff !important;
    top: 0 !important;
    padding: 0 !important;
}

.top-header {
    background: #1e1f36 !important;
    padding: 15px 0;
    border-bottom: 2px solid #ffc107;
}

.school-info h1 {
    font-family: 'Poppins', sans-serif;
    color: #ffc107 !important;
    margin-bottom: 5px !important;
}

.school-info p {
    color: #ffc107 !important;
    margin-bottom: 2px !important;
}

.sub-header {
    background: #1e1f36 !important;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky !important;
    top: 0;
    z-index: 9999 !important;
}

.sub-header .main-nav {
    min-height: 50px !important;
    background: transparent !important;
    position: relative !important;
}

.sub-header .nav {
    float: none !important;
    margin-top: 0 !important;
    display: flex;
    justify-content: center;
    width: 100%;
}

.sub-header .nav li {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.sub-header .nav li a {
    color: #fff !important;
    height: 50px !important;
    line-height: 50px !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}

.sub-header .nav li a:hover,
.sub-header .nav li a.active {
    color: #ffc107 !important;
}

.sub-header .menu-trigger {
    top: 5px !important;
}

.sub-header .menu-trigger span,
.sub-header .menu-trigger span:before,
.sub-header .menu-trigger span:after {
    background-color: #ffc107 !important;
}

.sub-header .menu-trigger.active span {
    background-color: transparent !important;
}

.sub-header .menu-trigger.active span:before,
.sub-header .menu-trigger.active span:after {
    background-color: #ffc107 !important;
}

@media (max-width: 991px) {
    .top-header .col-md-2 {
        display: none;
        /* Hide logos on small mobile to save space */
    }

    .top-header .col-md-8 {
        width: 100%;
    }

    .school-info h1 {
        font-size: 22px !important;
    }

    .sub-header .nav {
        display: none;
        /* Managed by JS */
        background: #1e1f36 !important;
        position: absolute;
        top: 50px;
        left: 0;
        text-align: left;
        width: 100%;
        z-index: 1001;
    }

    .sub-header .nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sub-header .nav li a {
        padding-left: 20px !important;
        background: #1e1f36 !important;
        color: #fff !important;
    }

    .sub-header .nav li a {
        color: #333 !important;
        border-bottom: 1px solid #eee;
    }
}