* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-y: scroll;
    position: relative;
}

/* first-header  */
.first-header {
    background-color: #0082CD;
    min-height: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

.school-logo img{
    max-width: 250px;
}

.location {
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.contact {
    flex: 2 1 250px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    margin-top: 1rem;
}

.contact a{
    color: white;
    text-decoration: none;
}

.header-hover:hover {
    color: #454545;
}

/* second-header  */
.dropdown-menu {
    margin-top: 0;
    transition: all 0.3s ease;
}


.navbar a:hover {
    color: black !important;
    background-color: #0082cd50 !important;
}

.nav-link.dropdown-toggle:focus,
.nav-link.dropdown-toggle:hover {
    outline: none;
    box-shadow: none;
    border: none;
}

.dropdown-hover {
    position: relative;
}

.black {
    color: #0082CD;
}

.apply-online {
    background-color: #0082CD;
    color: white;
    border: none;
    min-height: 35px;
    max-width: 140px;
    border-radius: 5px;
    transition: border-radius 200ms;
}

.apply-online:hover {
    border-radius: 30px;
}

/* hero-section  */
.rectangle {
    width: 160px;
    height: 60px;
    background-color: #0082CD;
    color: white;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    text-shadow: 1px 3px 4px rgba(0, 0, 0, 0.3);
    position: absolute;
    bottom: -10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    padding: 0 10px;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rectangle-text:hover {
    color: #454545;
}

/* main-content  */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    max-width: 1240px;
    margin: 0 auto;
}

.main-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;
}

.main-box {
    width: calc(50% - 1rem);
    display: flex;
    justify-content: center;
    align-items: center;
}


.news-events-wrapper {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.news-events-list {
    display: flex;
    flex-direction: column;
    animation: scroll-news 16s linear infinite;
}

.news-event {
    height: 80px;
    display: flex;
    align-items: center;
    padding-left: 1rem;
}


@keyframes scroll-news {
    0% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-80px);
    }

    50% {
        transform: translateY(-160px);
    }

    75% {
        transform: translateY(-240px);
    }

    100% {
        transform: translateY(0);
    }
}


.latest-news-content {
    background-color: white;
    width: 480px;
    height: 230px;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
}

.news-events-text {
    color: #E18054;
}

.welcome-school {
    max-width: 600px;
}

.photo-gallery-imgs {
    background-color: white;
    width: 480px;
    height: 260px;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-top: 5px;
}

.gallery-img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    padding-bottom: 10px;
}


.welcome-school {
    background-color: white;
}

.date {
    color: #0082CD;
}

.event {
    color: gray;
}

.photo img {
    width: 300px;
    height: 180px;
}

.orange {
    color: #EB5C18;
}

.dark-orange {
    color: #E18054;
}

.main-p {
    line-height: 25px;
    color: gray;
}

.all-the-best {
    color: gray;
}

.p-black {
    color: black;
}

.know-more-button {
    background-color: #0082CD;
    color: white;
    border: none;
    height: 25px;
    width: 100px;
    border-radius: 1px;
    transition: border-radius 200ms;
    font-size: 12px;
}

.know-more-button:hover {
    border-radius: 20px;
    background-color: #055685;
}

.white-row {
    background-color: white;
    min-height: 80px;
}

.lightblue-col {
    background-color: #F0FAFF;
}

/* feature-section */
.feature-section {
    position: relative;
    background-image: url('/t/6001/images/slider3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.unique-feature-text {
    background-color: white;
    padding-inline: 50px;
    max-width: 620px;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
}

.line-height {
    line-height: 25px;
}

.logo-gird {
    grid-template-columns: repeat(2, 200px);
    grid-auto-rows: 200px;
    gap: 10px;
}

.box {
    background-color: white;
    padding-top: 10px;
    border-radius: 10px;
}

.box a {
    text-decoration: none;
    color: black;
}

.box-1 a,
.box-2 a,
.box-3 a,
.box-4 a {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.6s ease, color 0.3s ease;
}

.box-1 a:hover,
.box-2 a:hover,
.box-3 a:hover,
.box-4 a:hover {
    transform: rotate(360deg);
    color: #EB5C18;
}

/* principal-section */
.prinipal-section {
    max-width: 1230px;
}

.gray {
    color: #454545;
}

.tp-img {
    width: 150px;
    height: 150px;
    background-image: url('/t/6001/images/hero-img2.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 12px solid #0082CD;
    flex-shrink: 0;
}


/* asked-question-section */
.accordion {
    max-width: 1000px;
    margin-inline: auto;
}

.accordion-button {
    background-color: #0082CD;
}

.accordion-button p {
    color: white;
}

.accordion-item {
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
}

.accordion-button {
    opacity: 1 !important;
    color: white !important;
    background-color: #0082CD !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    opacity: 1 !important;
    color: white !important;
    background-color: #0082CD !important;
    box-shadow: none !important;
}


/* footer-section */
.footer-section {
    background-color: #0082CD;
}

.footer-row {
    max-width: 1000px;
    margin-inline: auto;
}

.footer-section a {
    color: white;
    line-height: 25px;
    text-decoration: none;
    font-size: 14px;
}

.footer-section p {
    color: white;
}

.footer-logo {
    background-image: url('/t/6001/images/srjc.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 260px;
    height: 150px;
}

.quick-links,
.our-media {
    max-width: 180px;
}

.hover:hover {
    color: #454545;
}

.border-top {
    border-top: 5px solid white;
}

.contact-us {
    color: white;
}

.last-row {
    max-width: 1000px;
}


/* sticky-section */
.top {
    color: #0082CD;
    background-color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 1000;
}

.top:hover {
    color: white;
    background-color: #454545;
}



@media (max-width: 479px) {
    .first-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .school-logo {
        flex: 1 1 100%;
        max-width: 100%;
        justify-content: flex-start;
    }

    .location {
        flex: 1 1 100%;
        justify-content: flex-start;
        font-size: 1rem;
        margin-top: 0;
        margin-left: 5px;
        font-size: 12px;
    }

    .contact {
        flex: 1 1 100%;
        justify-content: flex-start;
        font-size: 1rem;
        margin-top: 0;
        margin-left: 5px;
        font-size: 12px;
        margin-bottom: 10px;
    }

    .apply-online {
        max-width: 100%;
        width: 100%;
        min-height: 40px;
        font-size: 1rem;
    }

    .main-img img {
        width: 100%;
        height: auto;
        box-shadow: none;
    }

    .latest-news-content,
    .photo-gallery-imgs {
        width: 100%;
        height: auto;
        box-shadow: none;
        margin-bottom: 1rem;
    }

    .photo img {
        width: 100%;
        height: auto;
    }

    .unique-feature-text {
        max-width: 100%;
        box-shadow: none;
    }

    .logo-gird {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-auto-rows: auto;
    }

    .tp-img {
        width: 100px;
        height: 100px;
        border-width: 8px;
    }

    .asked-question-section {
        min-height: auto;
        padding: 1rem;
    }

    .question {
        width: 100%;
        height: auto;
        max-width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .know-more-button {
        width: 100%;
        font-size: 14px;
        height: 35px;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .first-header {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .school-logo {
        flex: 1 1 50%;
        max-width: 50%;
        justify-content: flex-start;
    }

    .location,
    .contact {
        flex: 1 1 50%;
        max-width: 50%;
        justify-content: flex-start;
        font-size: 1.1rem;
        margin-top: 0.5rem;
    }

    .apply-online {
        max-width: 140px;
        min-height: 35px;
        font-size: 1rem;
    }

    .main-img img {
        width: 100%;
        height: auto;
        box-shadow: none;
    }

    .latest-news-content,
    .photo-gallery-imgs {
        width: 100%;
        height: auto;
        box-shadow: none;
    }

    .photo img {
        width: 100%;
        height: auto;
    }

    .tp-img {
        width: 120px;
        height: 120px;
        border-width: 10px;
    }

    .asked-question-section {
        min-height: auto;
        padding: 2rem;
    }

    .question {
        width: 100%;
        height: auto;
        max-width: 100%;
        padding: 1.5rem;
        font-size: 1.1rem;
    }

    .know-more-button {
        width: auto;
        font-size: 14px;
        height: 30px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .first-header {
        padding: 1rem 2rem;
    }

    .school-logo {
        flex: 1 1 40%;
        max-width: 40%;
    }

    .location,
    .contact {
        flex: 1 1 30%;
        max-width: 30%;
        font-size: 1.1rem;
    }

    .main-img img {
        width: 100%;
        height: auto;
        max-width: 450px;
        box-shadow: 10px 10px #F0FAFF;
    }

    .latest-news-content,
    .photo-gallery-imgs {
        width: 100%;
        max-width: 450px;
        height: auto;
        box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
    }

    .photo img {
        width: 100%;
        height: auto;
    }

    .tp-img {
        width: 140px;
        height: 140px;
        border-width: 11px;
    }

    .asked-question-section {
        min-height: 600px;
        padding: 2rem 3rem;
    }

    .question {
        max-width: 700px;
        height: auto;
        padding: 2rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .dropdown-hover:hover .dropdown-menu {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .first-header {
        padding: 1rem 4rem;
    }

    .school-logo {
        max-width: 400px;
    }

    .location,
    .contact {
        font-size: 1.25rem;
    }

    .main-img img {
        width: 510px;
        height: 250px;
        box-shadow: 20px 20px #F0FAFF;
    }

    .latest-news-content,
    .photo-gallery-imgs {
        width: 480px;
        height: 230px;
        box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
    }

    .photo img {
        width: 300px;
        height: 180px;
    }
}

@media (max-width: 1024px) {
    .rectangle {
        width: 130px;
        height: 50px;
        font-size: 1rem;
        bottom: -8px;
    }
}

@media (max-width: 768px) {
    .rectangle {
        width: 110px;
        height: 45px;
        font-size: 0.9rem;
        bottom: -6px;
    }
}

@media (max-width: 480px) {
    .rectangle {
        width: 90px;
        height: 40px;
        font-size: 0.8rem;
        bottom: -5px;
    }
}

@media (max-width: 991.98px) {
    .feature-text,
    .feature-logo {
        width: 100% !important;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .feature-logo {
        justify-content: center;
        margin-top: 20px;
    }

    .unique-feature-text {
        padding-left: 20px;
        padding-right: 20px;
    }

    .row {
        flex-direction: column;
        align-items: center;
    }

    .main-box {
        width: 100% !important;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .latest-news-content,
    .photo-gallery-imgs,
    .welcome-school {
        width: 90%;
        margin: 0 auto;
    }

    .main-section {
        padding: 2rem 1rem;
    }

}

@media (max-width: 991.98px) {
    .footer-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .quick-links,
    .our-media,
    .logo-section,
    .contact-us {
        max-width: 100%;
    }

    .footer-logo {
        margin: 0 auto;
    }

    .last-row {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        text-align: center;
        padding: 1rem 0;
    }

    .footer-section a,
    .footer-section p {
        font-size: 14px;
    }
}