body{
    font-family: Arial, sans-serif;
}

.navbar .container {
    max-width: 100%;
}

.navbar{
    background:#198754;
}

.navbar-brand,
.nav-link{
    color:#fff !important;
    font-weight:600;
}

.navbar-brand:hover,
.nav-link:hover {
    color: #f7d05c !important; /* Yellow color */
}

.hero{
    background:#198754;
    color:#fff;
    padding:120px 0;
    text-align:center;
}


.hero h1{
    font-size:60px;
    font-weight:bold;
}

.section-title{
    text-align:center;
    margin-bottom:40px;
}

.course-card{
    transition:0.3s;
}

.course-card:hover{
    transform:translateY(-10px);
}

.footer{
    background:#212529;
    color:#fff;
    padding:30px 0;
    margin-top:50px;
}

.slider-img{
    height: 352px;
    object-fit: cover;
}

.carousel-caption{
    bottom: 25%;
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 10px;
}

.carousel-caption h1{
    font-size: 70px;
    font-weight: bold;
}

.carousel-caption p{
    font-size: 22px;
}

@media(max-width:768px){

    .slider-img{
        height: 400px;
    }

    .carousel-caption h1{
        font-size: 30px;
    }

    .carousel-caption p{
        font-size: 16px;
    }
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
    }
}

#topbar {
    font-size: 14px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
    padding: 0;
    line-height: 30px;
    text-align: center;
}

@media (max-width: 768px) {
    #topbar .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

.carousel-control-next {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #198754;
    border-radius: 50px 0 0 50px;
    opacity: 1;
}


.carousel-control-prev {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: #198754;
    border-radius: 0 50px 50px 0;
    opacity: 1;
}

#director-message {
    background: linear-gradient(135deg, #f5f9ff, #eef4ff);
    padding: 90px 0;
}

.director-card {
    background: #fff;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

.director-image {
    position: relative;
}

.director-image img {
    width: 100%;
    border-radius: 20px;
    transition: 0.5s;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.director-image img:hover {
    transform: scale(1.03);
}

.director-badge {
    display: inline-block;
    background: #198754;
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.director-title {
    font-size: 42px;
    font-weight: 700;
    color: #1b2b4b;
    margin-bottom: 25px;
}

.quote-box {
    background: #f8fbff;
    border-left: 5px solid #198754;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.quote-box p {
    margin: 0;
    font-size: 20px;
    font-style: italic;
    color: #34495e;
    line-height: 1.8;
}

.director-text {
    color: #5f6c7b;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.director-btn {
    background: linear-gradient(45deg, #198754, #198754);
    color: #fff;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.4s;
}

.director-btn:hover {
    background: linear-gradient(45deg, #198754, #198754);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px #198754;
}

@media (max-width: 768px) {
    .director-card {
        padding: 25px;
    }

    .director-title {
        font-size: 30px;
    }

    .quote-box p {
        font-size: 17px;
    }
}

#rps-updates .card {
    border-radius: 15px;
    transition: all 0.3s ease;
}

#rps-updates .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

#rps-updates .card-header {
    border-radius: 15px 15px 0 0 !important;
}

.update-list {
    max-height: 350px;
    overflow-y: auto;
}

.news-item a {
    text-decoration: none;
    font-weight: 600;
}


#rps-gallery {
    background: #f8f9fa;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

.gallery-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s;
    text-align: center;
    font-size: 25px;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h5 {
    font-weight: 700;
    margin-bottom: 5px;
}


#school-toppers {
    background: #f8f9fa;
}

.topper-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    margin: -5px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: .4s;
}

.topper-card:hover {
    transform: translateY(-10px);
}

.topper-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #198754;
    margin-bottom: 20px;
}

.rank-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffc107;
    color: #000;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 30px;
}

.class-name {
    color: #666;
    margin-bottom: 10px;
}

.topper-card h4 {
    font-weight: 700;
    margin-bottom: 8px;
}

.owl-nav {
    text-align: center;
    margin-top: 30px;
}

.owl-prev,
.owl-next {
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    background: #198754 !important;
    color: #fff !important;
    margin: 0 8px;
}

/* footer css start */

.footer-section {
    background: #111827;
}

.footer-section h4,
.footer-section h5 {
    font-weight: 700;
}

.footer-section a {
    color: #adb5bd;
    text-decoration: none;
    transition: 0.3s;
}

.footer-section a:hover {
    color: #198754;
    padding-left: 5px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 8px;
}

.social-icons a:hover {
    background: #198754;
    color: #fff;
}

/* footer css end */


/* ================= MOBILE RESPONSIVE ================= */

@media (max-width:991px){

    .slider-img{
        height: 352px;
    }

    .carousel-caption h1{
        font-size:32px;
    }

    .carousel-caption p{
        font-size:16px;
    }

    .gallery-card img{
        height:240px;
    }
}

@media (max-width:768px){

    .slider-img{
        height:350px;
    }

    .carousel-caption{
        bottom:10%;
        padding:15px;
    }

    .carousel-caption h1{
        font-size:24px;
    }

    .carousel-caption p{
        font-size:14px;
    }

    .topper-img{
        width:110px;
        height:110px;
    }

    .gallery-card img{
        height:220px;
    }

    .update-list{
        max-height:250px;
    }

    #topbar .top-info{
        text-align:center;
    }

    #topbar .top-link{
        text-align:center;
        margin-top:10px;
    }
}

@media (max-width:576px){

    .slider-img{
        height:250px;
    }

    .carousel-caption{
        width:95%;
        left:2.5%;
        right:2.5%;
        bottom:5%;
        padding:10px;
    }

    .carousel-caption h1{
        font-size:18px;
    }

    .carousel-caption p{
        font-size:12px;
    }

    .gallery-card img{
        height:180px;
    }

    .topper-img{
        width:90px;
        height:90px;
    }

    .carousel-control-prev,
    .carousel-control-next{
        width:40px;
        height:40px;
    }
}

.back-to-top{
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 50px;
    height: 50px;
    background: #198754 !important;
    color: #fff !important;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-top:hover{
    background: #146c43 !important;
    transform: translateY(-5px);
}

.back-to-top i{
    font-size: 18px;
}

/* Mobile View */
@media (max-width: 768px){
    .back-to-top{
        width: 45px;
        height: 45px;
        right: 15px;
        bottom: 15px;
    }

    .back-to-top i{
        font-size: 16px;
    }
}

span {
  font-size: 30px;
}


/* Tablet */
@media (max-width: 768px) {
    span {
        font-size: 24px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    span {
        font-size: 18px;
    }
}

.px-4.py-sm-3.px-sm-5.btn.btn-primary.rounded-pill.carousel-content-btn1.animated.fadeInLeft {
  background: #198754;
  border: 1px solid #198754;
}


.about-section{
    background:#f8f9fa;
    overflow:hidden;
}

.about-images{
    position:relative;
    min-height:450px;
}

.main-img{
    width:80%;
    border-radius:20px;
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.sub-img{
    position:absolute;
    width:65%;
    bottom:0;
    right:0;
    border:8px solid #fff;
    border-radius:20px;
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.about-tag{
    display:inline-block;
    background:#198754;
    color:#fff;
    padding:8px 18px;
    border-radius:30px;
    font-size:14px;
    margin-bottom:15px;
}

.about-title{
    font-size:42px;
    font-weight:700;
    margin-bottom:20px;
}

.about-title span{
    color:#198754;
}

.about-text{
    color:#666;
    line-height:1.8;
    margin-bottom:15px;
}

.feature-box{
    background:#fff;
    padding:15px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    font-weight:600;
}

/* Mobile Responsive */

@media(max-width:768px){

    .about-images{
        min-height:auto;
        text-align:center;
        margin-bottom:30px;
    }

    .main-img{
        width:100%;
    }

    .sub-img{
        position:relative;
        width:80%;
        margin-top:20px;
        right:auto;
        bottom:auto;
    }

    .about-title{
        font-size:28px;
        text-align:center;
    }

    .about-section{
        text-align:center;
    }
}


.facilities-section{
    background:#f8f9fa;
}

.section-title{
    font-size:40px;
    font-weight:700;
    color:#198754;
    margin-bottom:10px;
}

.section-subtitle{
    color:#666;
    max-width:700px;
    margin:auto;
}

.facility-card{
    background:#fff;
    padding:35px 25px;
    text-align:center;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    transition:all .4s ease;
    height:100%;
}

.facility-card:hover{
    transform:translateY(-10px);
    box-shadow:0 15px 35px rgba(0,0,0,0.15);
}

.facility-icon{
    width:80px;
    height:80px;
    margin:0 auto 20px;
    background:#198754;
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:32px;
    transition:.4s;
}

.facility-card:hover .facility-icon{
    transform:rotateY(180deg);
}

.facility-card h4{
    font-size:24px;
    font-weight:700;
    color:#222;
    margin-bottom:15px;
}

.facility-card p{
    color:#666;
    line-height:1.8;
    margin-bottom:0;
}


