@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;700;900&family=Rubik:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    background-image: url('../icon/9.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* ===== TOPPERS BANNER ===== */
.toppers-section {
    width: 100%;
    max-width: 1300px;
    margin: 40px auto;
    text-align: center;
    position: relative;
    padding-top: 15px;
}

.banner {
    width: 100%;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 40px 20px;
    gap: 40px;
    position: relative;
}

.banner .student,
.banner .student2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.banner .student img,
.banner .student2 img {
    width: 280px;
    height: auto;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(11, 107, 176, 0.15);
    transition: transform 0.4s ease;
}

.banner .student:hover img,
.banner .student2:hover img {
    transform: scale(1.03);
}

.banner .info h2 {
    font-size: 42px;
    color: #0B6BB0;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: 2px;
}

.banner .info p {
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

.air1-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

h4.air-back {
    font-size: 26px;
    font-weight: 600;
    color: #555;
    letter-spacing: 6px;
    margin-bottom: 10px;
}

.text-air {
    font-size: 2.8rem;
    white-space: nowrap;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    font-weight: 700;
    color: #0B6BB0;
}

.text-air .one {
    font-size: 10rem;
    color: #0B6BB0;
    font-family: "Playfair Display", serif;
    line-height: 0.85;
}

.air-toppers {
    font-family: "Rubik", sans-serif;
    color: #0B6BB0;
    letter-spacing: 2px;
}

hr.air-hr {
    width: 60%;
    height: 6px;
    background: linear-gradient(90deg, transparent, #0B6BB0, transparent);
    border: none;
    margin: 8px auto 0;
    border-radius: 3px;
}

/* ===== ACHIEVEMENTS SECTION ===== */
.achievements-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.achievements-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #4285f4;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(66, 133, 244, 0.05));
    padding: 8px 24px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-title2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    color: #333;
}

.title-gradient {
    background: linear-gradient(135deg, #1a237e, #4285f4, #34a853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.1rem;
    color: #5f6368;
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.highlight {
    color: #4285f4;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #4285f4, transparent);
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.title-decoration .line {
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #1a237e, #4285f4, #34a853);
    border-radius: 2px;
}

.title-decoration i {
    color: #f4ae42;
    font-size: 1.2rem;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Stats Bar */
.achievement-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 32px 48px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a237e, #4285f4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: #5f6368;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    max-width: 180px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, #d0d7e2, transparent);
}

/* Achievements Marquee */
.achievements {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.achievement-cards {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marquee 70s linear infinite;
}

.achievement-cards:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.card {
    width: fit-content;
    border-radius: 16px;
}

.card-img {
    width: 335px;
    height: 369px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover .card-img {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.card .single-photo,
.card .multiple-photos,
.card .no-photo {
    display: flex;
    gap: 24px;
}

.achievements-hr {
    width: 66%;
    height: 3px;
    border: none;
    border-radius: 5px;
    margin: -8px auto 30px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
}

/* ===== RESULTS SECTION ===== */
.results {
    padding: 40px 25px;
}

.results h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.results h3 b {
    color: #0B6BB0;
}

.results-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.result-box {
    background: #fff;
    border-radius: 16px;
    width: 380px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 45px rgba(11, 107, 176, 0.12);
}

.result-box h4 {
    background: linear-gradient(135deg, #0B6BB0, #1a8fe0);
    color: #fff;
    font-weight: 600;
    padding: 16px 20px;
    font-size: 18px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-box h4::before {
    content: '\f15c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.result-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 320px;
    overflow-y: auto;
}

.result-box ul::-webkit-scrollbar {
    width: 5px;
}

.result-box ul::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.result-box ul::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.result-box li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.2s ease;
}

.result-box li:last-child {
    border-bottom: none;
}

.result-box li:hover {
    background: #f8faff;
}

.result-link {
    cursor: pointer;
    color: #1a73e8;
    font-weight: 500;
    transition: color 0.2s ease;
    text-decoration: none;
}

.result-link:hover {
    color: #0B6BB0;
}

img.pdf {
    width: 26px;
    height: 26px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.result-box li:hover img.pdf {
    opacity: 1;
}

.results-hr {
    width: 66%;
    height: 3px;
    border: none;
    border-radius: 5px;
    margin: -8px auto 30px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
}

.results-hr-darpan {
    width: 40%;
    height: 3px;
    border: none;
    border-radius: 5px;
    margin: -8px auto 30px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
}

/* ===== ANSWER KEY SECTION ===== */
.answerkey-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.answerkey-box {
    background: linear-gradient(135deg, #e8f0fe, #d4e4f7);
    border-radius: 16px;
    width: 380px;
    padding: 24px 28px;
    color: #0B6BB0;
    font-weight: 700;
    font-size: 17px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(11, 107, 176, 0.08);
    border: 1px solid rgba(11, 107, 176, 0.1);
    display: block;
    line-height: 1.4;
}

.answerkey-box:hover {
    background: linear-gradient(135deg, #0B6BB0, #1a8fe0);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(11, 107, 176, 0.2);
}

.answerkey-box::before {
    content: '\f059';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
}

/* ===== MAGAZINE SECTION ===== */
.title {
    font-size: 30px;
    font-weight: 600;
    text-align: center;
    padding-top: 50px;
    color: #1a1a2e;
    position: relative;
    margin-bottom: 20px;
}

.title::after {
    content: '\f1ea';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 12px;
    color: #0B6BB0;
}

.container-end {
    width: 90%;
    max-width: 1200px;
    padding: 20px 30px 50px;
    margin: 0 auto;
}

.magazine-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.magazine-item {
    position: relative;
    width: 150px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.magazine-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(11, 107, 176, 0.15);
}

.magazine-item .magazine-img {
    width: 100%;
    height: 153px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.magazine-item:hover .magazine-img {
    transform: scale(1.06);
}

.magazine-title {
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-align: center;
    background: #fff;
}

.pdf-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    z-index: 2;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s ease;
}

.magazine-item:hover .pdf-icon {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    margin: 3% auto;
    width: 92%;
    max-width: 1000px;
    height: 88vh;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    animation: modalIn 0.35s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 32px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    line-height: 1;
}

.close:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    transform: rotate(90deg);
}

.pdf-preview {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .banner {
        gap: 30px;
        min-height: auto;
        padding: 30px 15px;
    }

    .text-air {
        font-size: 2.2rem;
    }

    .text-air .one {
        font-size: 7rem;
    }

    h4.air-back {
        font-size: 22px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .achievement-stats {
        padding: 24px 30px;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .toppers-section {
        padding-top: 10px;
        margin: 0;
    }

    .banner {
        flex-direction: column;
        gap: 20px;
        padding: 20px 10px;
        min-height: auto;
    }

    .banner .student img,
    .banner .student2 img {
        width: 200px;
    }

    .banner .info h2 {
        font-size: 30px;
    }

    .banner .info p {
        font-size: 16px;
    }

    .air1-text {
        order: -1;
    }

    .text-air {
        font-size: 1.6rem;
    }

    .text-air .one {
        font-size: 5rem;
    }

    h4.air-back {
        font-size: 16px;
        letter-spacing: 3px;
    }

    hr.air-hr {
        width: 40%;
        height: 4px;
    }

    .achievements-section {
        padding: 30px 15px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-title2 {
        font-size: 1.1rem;
    }

    .section-description {
        font-size: 0.95rem;
    }

    .achievement-stats {
        flex-direction: column;
        gap: 20px;
        padding: 24px 16px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .achievement-cards {
        animation: marquee 30s linear infinite;
    }

    .card-img {
        width: 200px;
        height: 220px;
    }

    .achievements-hr {
        width: 80%;
    }

    .results {
        padding: 25px 15px;
    }

    .results h3 {
        font-size: 20px;
    }

    .results-hr,
    .results-hr-darpan {
        width: 80%;
    }

    .result-box {
        width: 100%;
        max-width: 400px;
    }

    .answerkey-box {
        width: 100%;
        max-width: 400px;
        font-size: 15px;
        padding: 20px;
    }

    .title {
        font-size: 24px;
        padding-top: 30px;
    }

    .magazine-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .magazine-item {
        width: 140px;
    }

    .magazine-item .magazine-img {
        height: 160px;
    }

    .modal-content {
        margin: 5% auto;
        width: 95%;
        height: 80vh;
        border-radius: 12px;
    }

    .banner .student2 {
        flex-direction: column-reverse;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.3rem;
    }

    .card-img {
        width: 160px;
        height: 180px;
    }

    .text-air .one {
        font-size: 4rem;
    }

    .banner .student img,
    .banner .student2 img {
        width: 160px;
    }

    .magazine-item {
        width: 120px;
    }

    .magazine-item .magazine-img {
        height: 140px;
    }

    .magazine-title {
        font-size: 11px;
        padding: 8px;
    }
}
