.top-nav {
    background-color: #C39D4D;
    color: white;
}

.d-flex button {
    flex-shrink: 0;
}

.download-btn {
    padding: 2px 9px;
    font-size: 16px;
    color: #014A2A;
    font-weight: 600;
    border-radius: 10px;
}

.nav-bar{
    background-color: #014A2A;
    color: white;
}

@media screen and (max-width: 768px) {
    .navbar-brand  img{
        width: 135px;
    }
    
}

.navbar-toggler{
    background-color: #ffffff;
}

.nav-link{
    color: white;
    margin: 0 20px;
}
.nav-link .active{
    color: white;
}
.nav-link:hover{
    color: white;
}

.nav-link:focus, .nav-link:hover {
    color: white;
}

.dropdown-menu{
    border-radius: 15px;
}

.carousel-item {
    position: relative;
}

#slider .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Content container */

.slider1-m{
    margin-top: 60px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .content-container {
        max-width: 80%;
    }
}

.since-1960 {
    top: 7px;
    left: 23px;
    font-weight: 600;
}

.heading {
    color: #C39D4D;
    display: inline-block;
    border-bottom: 3px solid #E0E0E0; /* Customize the color and thickness */
    padding-bottom: 5px; /* Add some space between text and underline */
    text-transform: uppercase;
    font-size: 28px;
}

.expore-btn{
    padding: 5px 10px;
    margin-top: 10px;
    font-size: 12px;
}

.icon{
    position: absolute;
    top: 0;
    left: 0;
}

.position-relative {
    position: relative;
}

.icon {
    position: absolute;
    top: 0%;
    left: 27%;
    transform: translate(-50%, -50%);
    width: 60px; /* Adjust the size of the icon */
    height: 60px; /* Adjust the size of the icon */
    z-index: 1; /* Ensure the icon appears above the card */
}

#magazines .card{
    border: none;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

#academic img{
    border-radius: 0px;
}

#magazines img{
    border-radius: 0px;
}

.box {
    position: relative;
    width: 180px; /* Slightly increased for large screens */
    height: 200px;
    background-color: #FAFAFA;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    overflow: visible; /* Allows image to go outside the box */
}

.box .book-img {
    width: 100%;
    max-width: 140px; /* Increased image size */
    height: auto;
    position: absolute;
    top: -30%; /* Moves half of the image outside */
    left: 50%;
    transform: translateX(-50%);
}

.box p {
    font-size: 14px;
    color: #C39D4D;
    font-weight: 600;
    top: 11px;
    text-align: center;
    position: absolute;
    top: 175px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    margin: 5px !important;
}

.box p span {
    flex: 1;
    text-align: center;
}

.box p .ms-auto {
    margin-left: auto;
}

/* .box .buttons {
    position: relative;
    top: 92px;
    left: 90px;
} */

.font-s-12{
    font-size: 12px;
}

.box .preview{
    background-color: #e2e2e2;
    border-radius: 10px;
    padding: 2px;
}

.box .download{
    /* background-color: #e2e2e2; */
    border-radius: 10px;
    padding: 3px;
}
/* Larger screens (lg and above) */
@media (min-width: 992px) {
    .box {
        width: 260px;
        height: 215px;
    }

    .box .book-img {
        max-width: 135px;
        top: -17%; /* Moves even more outside for large screens */
        height: 210px;
    }
}

/* Adjustments for smaller screens */
@media (max-width: 992px) {
    .box {
        width: 200px;
        height: 220px;
    }

    .box .book-img {
        max-width: 135px;
        top: -17%; /* Moves even more outside for large screens */
        height: 210px;
    }

    /* .box .buttons {
        top: 94px;
        left: 37px;
    } */
}




.border-right{
    border-right: none;
}

.states-inside{
    background-color: #FAFAFA;
}

@media screen and (min-width: 768px) {
    .border-right{
        border-right: 2px solid #b8b8b8;
    }

    .states {
        background-color: #FAFAFA;
    }
}

.s-heading{
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 0px;
}
.s-para{
    font-size: 22px;
    font-weight: 600;
    color: #C39D4D;
}


/* Overlay style */
/* General Styles */
.position-relative {
    position: relative;
}

#jamia .position-relative {
    position: relative;
    display: inline-block;
}

/* Text Overlay */
#jamia .text-overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 68%; /* Slightly increased for better fit */
    height: 30%;
    text-align: center;
    padding: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(to top, #014A2A, #014a2a00);
}

/* Text 2 Specific Styling */
#jamia .text2 {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #jamia .row {
        flex-direction: column;
        align-items: center;
    }

    #jamia .col {
        margin-bottom: 20px; /* Adds space between elements */
    }

    #jamia .position-relative img {
        width: 90%; /* Reduce image size */
        height: auto;
    }

    #jamia .text-overlay {
        width: 90%;
        height: 25%;
        font-size: 14px;
        padding: 6px;
    }

    #jamia .text2 {
        top: 8px;
        font-size: 14px;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    #jamia .position-relative img {
        width: 80%;
    }

    #jamia .text-overlay {
        font-size: 12px;
        height: 22%;
        padding: 5px;
        width: 73%;
    }

    #jamia .text2 {
        font-size: 12px;
    }

    #jamia .text {
        position: absolute;
        top: 14px;
        left: 74px;
    }
    
}


.text{
    position: absolute;
    top: 29px;
    left: 86px;
}

.footer{
    background-color: #014A2A;
    color: white;
}

.footer .border-right{
    border-right: 2px solid #b8b8b8;
}

#academic .card{
    border: none;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.margin-top-80{
    margin-top: 80px;
}

.btn-slider {
    font-size: 20px;
    color: white;
    padding: 0px 23px;
    padding-bottom: 4px;
    background-color: #014A2A;
    border: 4px solid #C39D4D;
    border-radius: 20px;
    text-align: center;
}

.content-container2 {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    z-index: 2;
    max-width: 60%;
    text-align: center;
}

.monthly_magzine {
    margin-top: 20px; /* Adjust spacing */
    display: block;
    color: #C39D4D;
}


.content-container {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    z-index: 2;
    max-width: 60%;
}


@media screen and (max-width: 480px) {
    .heading {
        font-size: 18px;
    }
}

.btn-brown{
    background-color: #C39D4D;
    color: white;
}

.btn-brown:hover{
    background-color: #C39D4D;
    color: white;
}

#contact .card{
    border: none;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .iframe-container iframe {
        height: 300px;
    }
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: white;
}

.cursor-pointer{
    cursor: pointer;
}

@media (max-width: 768px) {
    #carouselExampleIndicators .carousel-inner {
        min-height: 300px; /* Adjust height as needed */
    }

    #carouselExampleIndicators .carousel-item {
        min-height: 300px;
    }

    #carouselExampleIndicators .carousel-item .slider-img {
        height: 300px;
        object-fit: fill;
    }

   
}
@media (max-width: 768px) {
    .navbar-collapse {
        max-height: none !important;
        overflow: visible !important;
    }

    .nav-bar {
        overflow: hidden; /* Ensures no extra scrolling */
    }
}


@media screen and (max-width: 786px) {
    .content-container {
        max-width: 100%;
        top: 133px;
        min-height: 320px;
    }

    .s-p-1{
        font-size: 9px;
    }

    .s-p-2{
        padding-top: 10px;
        font-size: 14px;
    }

    .m-t-140{
        margin-top: 140px;
    }

    .icon{
        left: 50%;
    }
}

@media screen and (max-width: 1200px) {
    .margin-top-80{
        margin-top: 0px;
    }
    
    .h1-s-1{
        font-size: 16px;
    }
    .p1-s-1, .p2-s-1{
        font-size: 12px;
    }
    
}

.brown-color{
    color: #C39D4D;
}

.text-gray{
    color: #8F8F8F;
}

.gallery-item img {
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

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

.bayant-title{
    font-size: 19px;
    margin-top: 10px;
}

.donation-m-h{
    color: #014A2A;
    font-weight: 700;
    font-size: 30px;
}

.donation-m-p{
    color: #222222;
    font-size: 30px;
    font-weight: 600;

}

.donation-m-b{
    background-color: #014A2A;
    color: white;
    padding: 10px 40px;
    border-radius: 30px;
    margin-top: 40px;
    border: none;
}

@media screen and (max-width: 480px) {
    .donation-m-h{
        font-size: 24px;
    }
    .donation-m-p{
        font-size: 14px;
    }
    .donation-m-b {
        padding: 6px 15px;
        margin-top: 15px;
        margin-bottom: 10px;
    }
    
}

.donation-img{
    height: 600px;
    object-fit: cover;
}
/* Remove default border and center align */
#myTabs {
    border: none;
    display: flex;
    justify-content: space-between;
    position: relative;
    width: 100%;
    background: white;
    border-radius: 30px;
    overflow: hidden;
}

/* Tabs as buttons */
#myTabs .nav-item {
    flex: 1;
    text-align: center;
    position: relative;
}

/* Tab links */
#myTabs .nav-link {
    border: none;
    color: black;
    padding: 10px 0;
    font-weight: bold;
    position: relative;
    z-index: 2;
    transition: color 0.1s ease;
}

/* Active tab */
#myTabs .nav-link.active {
    background-color: #C39D4D;
    color: white;
    border-radius: 15px;
}

#myTabs a{
    margin: 0px;
}

.input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.price-input {
    width: 100%;
    padding-right: 40px; /* Make space for RS */
    height: 40px;
    font-size: 16px;
}

.currency {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: bold;
    color: #555;
}


#price{
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 0px 0px 0px 13px;
}

#pay-button{
    background-color: #C39D4D;
    color: white;
    padding: 10px 40px;
    border-radius: 30px;
    margin-top: 40px;
    border: none;
}

.secure{
    font-size: 12px;
    color: #8F8F8F;
    
}
.payment-img {
    max-width: 100%;
    height: auto;
}

.payment-box {
    display: inline-block;
    width: 100%;
    font-size: 22px;
    letter-spacing: 2px;
    font-weight: 700;
    padding: 8px 0;
    border-radius: 10px;
    text-align: center;
}

.bg-yellow {
    background-color: #FFDD00;
    color: black;
}

.bg-green {
    background-color: #28B461;
    color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .payment-box {
        font-size: 18px;
        letter-spacing: 1px;
    }
}

@media (max-width: 576px) {
    .payment-box {
        font-size: 16px;
        padding: 6px 0;
    }

    #myTabs a{
        font-size: 14px;
    }
}


.popup-btn-apply{
    padding: 5px 10px;
    font-size: 12px;
    background-color: #07707D;
    color: white;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    display: inline-block !important;
    width: 100%;
}


.popup-btn-apply-2{
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 600;
    background-color: #EB5928;
    color: white;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    display: inline-block !important;
    width: 100%;
}



.popup-btn-apply-2:hover{
  
    background-color: #EB5928;
    color: white;
   
}