@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import 'bootstrap/dist/css/bootstrap.min.css';

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');


@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');



*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat';
}

body {
    background-image: url('../icon/9.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.air1-text {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.text-air {
    font-size: 3rem;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    justify-content: end;
    align-items: end;
    display: flex;
}

.text-air .one {
    font-size: 11rem;
    color: #0B6BB0;
    font-family: "Playfair Display" !important;
    position: relative;
    top: 34px;
    /* -webkit-text-stroke: #fff; */
    /* -webkit-text-stroke-width: 3px; */
}

h4.air-back {
    position: relative;
    right: -77px;
    font-size: 28px;
    bottom: -192px;
}

.air-toppers {
    /* -webkit-text-stroke: #fff; */
    /* -webkit-text-stroke-width: 3px; */
    font-family: Rubik !important;
    color: #0B6BB0;
}

hr.air-hr {
    width: 29%;
    height: 15px;
    background: #0B6BB0;
    /* Main line color */
    border: none;
    /* White border (like a stroke) */
    /* border-radius: 5px; */
    /* Optional: rounded edges */
    margin: -13px auto;
    /* Add space around it */
    z-index: 0;
}







.home-of-toppers {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    height: auto;
    width: 90%;
    margin: 120px auto;
}

/* Section Wrapper */
.toppers-section {
    width: 100%;
    max-width: 1300px;
    margin: auto;
    text-align: center;
    position: relative;
    top: -90px;
}

.banner {
    width: 100%;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0;
    text-align: center;
    gap: 272px;
}

.banner .student {
    position: relative;
    text-align: center;

    margin: auto;
    display: flex;
}

.banner .student2 {
    position: relative;
    text-align: center;

    margin: auto;
    display: flex;
}

.banner .student img {
    width: 312px;
    height: auto;
    max-width: 100%;
}

.banner .student2 img {
    width: 312px;
    height: auto;
    max-width: 100%;
}

.banner .info {
    margin-top: 263px;
}

.banner .info h2 {
    font-size: 50px;
    color: #0B6BB0;
    font-weight: 800;
    margin-bottom: -9px;
}

.banner .info p {
    font-size: 24px;
    color: #000;
    font-weight: 500;
}

/* Center heading section */
.center-heading {
    flex: 1 1 400px;
    text-align: center;
    margin: 20px 0;
}

.center-heading h3 {
    font-size: 26px;
    color: #000;
    font-weight: 600;
    line-height: 1.3;
}

.center-heading .num {
    font-size: 64px;
    color: #0B6BB0;
    font-weight: 900;
    vertical-align: middle;
}

.center-heading .bold {
    color: #0B6BB0;
    font-weight: 800;
}

.center-heading .underline {
    width: 140px;
    height: 4px;
    background-color: #0B6BB0;
    margin: 10px auto 0;
    border-radius: 3px;
}

.air1-text {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 27px;
}

h4.air-back {
    position: relative;
    right: -78px;
    font-size: 28px;
    bottom: -214px;
    font-weight: 500;
}

.text-air {
    font-size: 3rem;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    justify-content: end;
    align-items: end;
    display: flex;
    font-weight: 700;
}

.text-air .one {
    font-size: 12rem;
    color: #0B6BB0;
    font-family: "Playfair Display" !important;
    position: relative;
    top: 43px;
}


.air-toppers {

    font-family: Rubik !important;
    color: #0B6BB0;
}

hr.air-hr {
    width: 100%;
    height: 15px;
    background: #0B6BB0;
    border: none;
    /* border-radius: 5px; */
    margin: -9px auto;
    z-index: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .banner {
        flex-direction: column;
        text-align: center;
    }

    .center-heading {
        order: -1;
        margin-bottom: 30px;
    }

    .center-heading h3 {
        font-size: 22px;
    }

    .center-heading .num {
        font-size: 50px;
    }

    .banner .student img {
        width: 229px;
    }

    .banner .student2 img {
        width: 220px;
    }

    .banner .info h2 {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .center-heading h3 {
        font-size: 18px;
    }

    .center-heading .num {
        font-size: 42px;
    }

    .banner .info h2 {
        font-size: 28px;
    }

}

/* Achievements */
.achievements {
    overflow: hidden;
    background: linear-gradient(90deg, #e6f0ff, #f9fcff);
    padding: 40px 0;
    position: relative;
}

.achievements h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.achievement-cards {
    display: flex;
    gap: 20px;
    animation: marquee 25s linear infinite;
    width: max-content;
}

.achievement-cards::after {
    content: '';
    display: flex;
}

.card {
    width: fit-content;
    height: auto;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: #0b6bb0;
    font-weight: 600;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .card {
        min-width: 180px;
        height: 120px;
        font-size: 14px;
    }

    .achievement-cards {
        animation: marquee 20s linear infinite;
    }

.text-air {
        font-size: 2rem;   
        position: relative;
        top: 173px;
    }

    h4.air-back {
    position: relative;
    right: -65px;
    font-size: 19px;
    bottom: -399px;
    font-weight: 500;
}

.text-air .one {
    font-size: 12rem;
    color: #0B6BB0;
    font-family: "Playfair Display" !important;
    position: relative;
    top: 46px;
}
.air1-text {
   
    position: absolute;
    top: 27px;
}

hr.air-hr {

    margin: 167px auto;
  
}

.banner .student2 {
    position: relative;

    bottom: 29px;
}

.banner .info {
    margin-top: 263px;
    margin-left: 15px;

    position: relative;
    left: -7px;
}

}

/* Results Section */
.results {
    margin-top: 50px;
}

.results h3 {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 20px;
}

.results-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.result-box {
    background: #f8faff;
    border-radius: 8px;
    width: 348px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    /* padding: 15px 0; */
}

.result-box h4 {
    background: #C5D8EC;
    color: #002d72;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 4px 4px 0 0;
    font-size: 19px;
}

.result-box ul {
    list-style: none;
    margin-top: 10px;
    padding: 0;
}

.result-box li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.result-box li i {
    color: #e31b23;
}

.result-box li:last-child {
    border-bottom: none;
}

img.pdf {
    width: 28px;
}

.achievements-text {
    font-size: 30px;
    margin: 16px auto;
    font-weight: 400;
}

.achievements-hr {
    width: 66%;
    height: 3px;
    border: none;
    border-radius: 5px;
    margin: -11px auto 20px;
    z-index: 0;
    background: linear-gradient(to right, #00c6ff, #0072ff);
}

.results-hr {
    width: 66%;
    height: 3px;
    border: none;
    border-radius: 5px;
    margin: -11px auto 20px;
    z-index: 0;
    background: linear-gradient(to right, #00c6ff, #0072ff);
}


/* Responsive */
@media (max-width: 768px) {

    .card {
        width: auto;
        height: auto;
    }

    .result-box {
        width: 90%;
    }

.results h3 {
    font-size: 22px;
    padding: 5px;
}

.achievements-text {
    font-size: 22px;
}
.title {
    font-size: 27px;
    font-weight: 400;
    margin-bottom: 30px;
    text-align: center;
}

}



.container-end {
    width: 90%;
    max-width: 1200px;
    background: white;
    padding: 20px 30px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: auto;
    margin-bottom: 50px;
}

.title {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 30px;
    text-align: center;
}

.magazine-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    justify-items: center;
}

.magazine-item {
    position: relative;
    width: 200px;
    border-radius: 8px;
    overflow: hidden;
    /* background: #f5f5f5; */
    transition: transform 0.3s ease;
}

.magazine-item:hover {
    transform: scale(1.05);
}

.pdf-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 35px;
}

.magazine-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.magazine-title {
    padding: 10px 0;
    font-size: 16px;
    font-weight: 600;
    /* background: none !important; */
}


    /* Modal styles for document preview */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
        }

        .modal-content {
            background-color: #fefefe;
            margin: 5% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 90%;
            height: 90%;
            position: relative;
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            position: absolute;
            right: 20px;
            top: 10px;
            z-index: 1001;
        }

        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        .pdf-preview {
            width: 100%;
            height: 100%;
            border: none;
        }

        .result-link {
            cursor: pointer;
            color: #007bff;
          text-decoration: none !important;
        }

        .result-link:hover {
            color: #0056b3;
        }