

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold:  #d48b14;
    --primary-blue: #007bff;
    --primary-red: #d1122f;
    --bg-gradient: rgb(201, 233, 240);
    --white: #b4dded;
    --light-gray: #eac6ee;
    --dark-gray: #060404;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.973);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.884);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.3);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
    background: #e0dddd;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}


.container {width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
     gap: 2rem; /* Gap between logo-section and details-part */
}


header {
     background: #AFEEEE;
    color: #ae0808;
    padding: 1.2rem 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: flex;
    top: 0;
    z-index: 1000;
}

header .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2.5rem;
    margin-right: 15rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.logo, #logoLeft {
    height: 180px;
    width: 160px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    cursor: pointer;
}


.contact-sticker {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    padding: 0.8rem;
   
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0; 
}

.contact-sticker span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.details-part {
    text-align: center;
    gap: 1.5rem; 
}




.contact-top {
    display: inline-block;
    margin-left: 0;
    width: 225px;
}

.contact-top img {
    width: 60px;
    height: 55px;
    vertical-align: middle;
    margin-right: 1px;
}

/* Marquee */
.marquee-container {
    background: #010326;
    padding: .3rem;
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 0rem 0; /* Consistent spacing */
}

.news-marquee, #newsMarquee {
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    padding: 04.rem 0;
    
    font-weight: 500;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.news-marquee:hover, #newsMarquee:hover {
    animation-play-state: paused;
}

/* Banner */
.banner-images {
    position: relative;
    margin: 1rem 0;
    overflow: hidden;
}

.banner-images::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(52,152,219,0.3), rgba(231,76,60,0.3));
    z-index: 1;
}

.banner-container {
    background: #ffffff;
    max-width: 1500px;
    margin: 0 auto;
    border-radius: 4px;
    border: 1px solid #051a48;
    padding: 2px;
    display: flex;
    gap: 2px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.banner-container img,
.banner-images img {
    height: 600px;
    width: 100%;
    object-fit: cover;
    border-radius: 3px;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

.banner-images img:hover {
    transform: scale(1.03);
    box-shadow: 0 25px rgba(0,0,0,0.4);
}


/* === SECTION ANIMATIONS === */
.mission-vision-section,
.overview-section,
.curriculum-section,
.achievements-section,
.facilities-grid,
.emblem-section,
#symbolsSection,
.rules-section,
.tabs-container,
#rulesSection,
#formSection,
.intro-section,
.council-section,
.houses-section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 3rem;
}

.mission-vision-section.animate,
.overview-section.animate,
.curriculum-section.animate,
.achievements-section.animate,
.facilities-grid.animate,
.emblem-section.animate,
#symbolsSection.animate,
.rules-section.animate,
.tabs-container.animate,
#rulesSection.animate,
#formSection.animate,
.intro-section.animate,
.council-section.animate,
.houses-section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* === TYPOGRAPHY === */
.page-title {
    text-align: center;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-weight: bold;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 2rem;
}

.intro {
    text-align: center;
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #555;
}



/* Modal images also landscape */
#modalBody img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 16/9;
    display: block;
    margin: 10px auto;
    border-radius: 12px;
}
.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 20px;
    position: relative;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 2.5rem;
    cursor: pointer;
    color: #999;
    z-index: 10001;
    transition: color 0.3s;
}

.close:hover {
    color: #000;
}

/* === TABS SYSTEM === */
.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    background: var(--white);
    border-radius: 12px 12px 0 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 0;
}

.tab-btn {
    flex: 1;
    padding: 1.2rem 2rem;
    border: none;
    background: var(--light-gray);
    color: #666;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.tab-panel {
    display: none;
    background: var(--white);
    padding: 3rem;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-sm);
}

.tab-panel.active {
    display: block;
}

/* === ACCORDION SYSTEM === */
.accordion-item {
    background: orange;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-btn {
    width: 100%;
    padding: 1.5rem 2rem;
    background: var(--light-gray);
    border: none;
    text-align: left;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-btn:hover {
    background: #eff962;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    background: var(--white);
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 2rem;
}

.accordion-content.active {
    max-height: 500px;
    padding: 2rem;
}

/* === EMBLEM PAGE ===*/
.emblem-container {
    max-width: 400px;
    height: 400px;
    margin: 2rem auto;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: grab;
}

.emblem-container:active {
    cursor: grabbing;
}

#emblemImg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.emblem-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,123,255,0.95);
    color: var(--white);
    padding: 1.5rem 2.5rem;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.4s;
    text-align: center;
}

.emblem-container:hover .emblem-overlay {
    opacity: 1;
}

/* === GALLERY GRID === */
.gallery-grid,
.overview-grid,
.subjects-grid,
.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-img,
.subject-card,
.stream-card,
.overview-card {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.gallery-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.03);
}

/* === RULES LIST === */
.rules-list {
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
}

.rules-list li {
    background: var(--light-gray);
    margin: 1rem 0;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid var(--primary-blue);
    box-shadow: var(--shadow-sm);
}


.footer {
    background: #07031e;
    color: var(--white);
    text-align: center;
    padding: 0.4rem;
    margin-top: 4rem;
}

/* === FORM ELEMENTS === */
.error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.error.show {
    display: block;
}

input:invalid,
select:invalid,
textarea:invalid {
    border-color: #e74c3c;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .facilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .logo {
        height: 60px;
    }
    
    .page-title,
    .section-title {
        font-size: 2rem;
    }
    
    .facilities-grid,
    .gallery-grid,
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .marquee-container {
        margin: 1rem 0;
    }
    
    .banner-container img {
        height: 150px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .facility-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.p-2 { padding: 2rem; }

/* === PRINT STYLES === */
@media print {
    .modal, .marquee-container, .banner-container {
        display: none !important;
    }
    
    body * {
        box-shadow: none !important;
    }
}
/*Achivements Section*/
.achievements-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #7FFFD4 0%, #B0E0E6 50%, #E0F2F1 100%);
    position: relative;
    overflow: hidden;
}

.achievements-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff005d, #ffd700, #ff005d);
    box-shadow: 0 2px 10px rgba(255,0,93,0.5);
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ff005d, #ffd700, #00b894);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(45deg, #ffd700, #ff005d);
    border-radius: 3px;
}

.title-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.section-subtitle {
    font-size: 1.4rem;
    color: #2c3e50;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.achievement-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 2rem;
    text-align: center;
    position: relative;
    height: 100%;
    border: 3px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff005d, #ffd700, #7FFFD4);
    border-radius: 27px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.achievement-card:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 35px 70px rgba(0,0,0,0.25);
}

.achievement-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #ff005d, #ffd700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 15px 35px rgba(255,0,93,0.4);
    transition: all 0.4s ease;
}

.achievement-card:hover .card-icon {
    transform: scale(1.2) rotate(360deg);
}

.card-icon i {
    font-size: 2.5rem;
    color: white;
}

.card-content h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.achievement-number {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ff005d, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.achievement-detail {
    color: #7f8c8d;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stats span {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff005d;
    border: 2px solid rgba(255,0,93,0.2);
}

.achievement-timeline {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.timeline-item {
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.9);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 3px solid transparent;
    position: relative;
    font-weight: 700;
    color: #2c3e50;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ffd700, #ff005d);
    border-radius: 53px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.timeline-item.active,
.timeline-item:hover {
    background: linear-gradient(135deg, #ffd700, #ff005d);
    color: white;
    transform: scale(1.1);
}

.timeline-item.active::before,
.timeline-item:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .achievements-section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .achievement-number {
        font-size: 2rem;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-item {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .achievement-card {
        padding: 2rem 1.5rem;
    }
}
