body {
    font-family: Sans-Serif;
    background: #f8f9fa;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 1) !important; /* White border */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ================= Top-level Navbar Items ================= */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-btn.facebook {
    background-color: #3b5998;
}

.social-btn.twitter {
    background-color: #1da1f2;
}

.social-btn.youtube {
    background-color: #ff0000;
}

/* Hover Effects */
.social-btn:hover {
    transform: translateY(-4px) scale(1.1);

}

/* Optional: add a smooth glow effect */
.social-btn.facebook:hover {
    box-shadow: 0 0 4px #3b5998;
}

.social-btn.twitter:hover {
    box-shadow: 0 0 4px #1da1f2;
}

.social-btn.youtube:hover {
    box-shadow: 0 0 4px #ff0000;
}

.navbar-nav>.nav-item>a {
    margin-left: 40px;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    padding: 10px 18px;

    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover Effect for top-level links */
.navbar-nav>.nav-item>a:hover {
    background-color: rgb(0, 136, 255);
    color: #ffffff;
}

/* Active State for top-level links */
.navbar-nav>.nav-item.active>a {
    background-color: #003F62 !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ================= Dropdown & Submenu ================= */
/* Dropdown Item */
.dropdown-item {
    color: #212529;
    padding: 8px 15px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(48, 93, 150, 0.1);
    color: #003F62;
}

/* Active Dropdown Item */
.dropdown-item.active {
    background-color: #003F62 !important;
    color: #ffffff !important;
}

/* Dropdown Submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
    position: absolute;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    background-color: #ffffff;
    z-index: 1000;
}

/* Mobile responsive fix */
@media (max-width: 991px) {
    .dropdown-submenu>.dropdown-menu {
        top: 30px;
        left: 0;
        /* mobile me niche open hoga */
        margin-left: 1rem;
        margin-top: .5rem;
    }
}

/* Only for screens smaller than 992px */
@media (max-width: 991.98px) {
    .dropdown-menu {
        max-height: 400px;
        overflow-y: auto;
        background: #fff;
        /* essential for fade */
        position: relative;
        padding-right: 5px;
    }

    .dropdown-menu::before,
    .dropdown-menu::after {
        content: '';
        position: sticky;
        left: 0;
        right: 0;
        height: 20px;
        pointer-events: none;
        z-index: 10;
    }

    .dropdown-menu::before {
        top: 0;
        background: linear-gradient(to bottom, #fff, transparent);
    }

    .dropdown-menu::after {
        bottom: 0;
        background: linear-gradient(to top, #fff, transparent);
    }
}


.dropdown-submenu.show>.dropdown-menu {
    display: block;
}

/* Arrow rotation */
.dropdown-submenu>a .fas {
    transition: transform 0.3s;
}

.dropdown-submenu.show>a .fas {
    transform: rotate(90deg);
}

/* =========HERO-SECTION========= */
/* ====== Carousel Responsive Fix ====== */
#image-slider .carousel-item {
    width: 100%;
    position: relative;
    overflow: hidden;
}

#image-slider .carousel-item img {
    width: 100%;
    height: auto;
    /* let height adjust automatically */
    max-height: 80vh;
    /* optional max height for large screens */
    object-fit: contain;
    /* ensures full image is visible */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #image-slider .carousel-item {
        height: auto;
        /* let the item height adjust to image */
    }

    #image-slider .carousel-item img {
        max-height: 50vh;
        /* optional limit for mobile */
        object-fit: contain;
    }

    .carousel-item-active .slider-img {
        transform: none;
        /* remove zoom on small screens */
    }
}


/* ======HERO-SECTION END======== */
/* ======Headings start======== */


@media (max-width: 767px) {
  #responsiveHeading {
    font-size: 1.7rem !important; 
  }
}

/* ======Headings END======== */

/* ========== card section ========== */
.card-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s ease, background 0.4s ease;
    cursor: pointer;
}

/* Headings */
.card-section h3 {
    font-weight: 600;
    font-family: sans-serif;
    letter-spacing: 0.5px;
}

/* Paragraphs */
.card-section p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* Button Links */
.btn-link {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.btn-link:hover {
    color: #FFD700;
    /* subtle accent on hover */
    text-decoration: none;
}

/* Card Hover Effect */
.card-section:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, #003F62 0%, #303E50 100%);
}

/* Responsive spacing */
@media (max-width: 768px) {
    .card-section {
        padding: 2rem 1.5rem;
    }
}

/* =========card section end========= */

/* ========== gellery section ===== */

.events-section .event-card {
    transition: transform 0.3s ease;
}

.events-section .event-card img {
    transition: transform 0.5s ease;
}

.events-section .event-card:hover img {
    transform: scale(1.05);
}

.events-section .event-info h3 {
    font-weight: 600;
    font-family: '', sans-serif;
    color: #003F62;
}

.events-section .event-info a.btn {
    background-color: #003F62;
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

.events-section .event-info a.btn:hover {
    background-color: #303E50;
}


/* ========gellery section end ===== */


/* ============memeber section ============ */
.member-section .item {
    transition: transform 0.3s ease;
 
}

.member-section .item:hover {
    transform: scale(1.03);
}

.owl-nav button {
    background-color: #003F62;
    color: #fff;
    padding: 5px 12px;
    border: none;
    font-size: 16px;
    position: absolute;
    top: 40%;
}

.owl-nav .owl-prev {
    left: 0;
}

.owl-nav .owl-next {
    right: 0;
}

.owl-dots {
    margin-top: 20px;
}

.owl-dot span {
    width: 12px;
    height: 12px;
    background: #003F62;
    display: block;
    border-radius: 50%;
}

/* ===================gst calculate CSS ============== */


/* Calculator card with modern shadow and gradient */
.calc-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    max-width: 750px;
    margin: 0 auto 50px auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease-in-out;
    border: 1px solid #e0e0e0;
}

.calc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Search box with modern style */
#searchBox {
    border-radius: 12px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    font-size: 16px;
    transition: border 0.3s, box-shadow 0.3s;
}

#searchBox:focus {
    outline: none;
    border-color: #18427d;
    box-shadow: 0 0 8px rgba(24, 66, 125, 0.2);
}

/* Search results dropdown */
.search-results {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.search-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.search-item:hover {
    background: #e6f0ff;
    transform: translateX(3px);
}

/* Selected item card */
.selected-item {
    border: 1px solid #8ab6ff;
    background: #e7f1ff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 15px;
    transition: all 0.3s ease-in-out;
}

/* MRP results box */
.result-box {
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    background: #d1e7dd;
    border: 1px solid #bcd9c8;
    font-weight: 600;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}

.result-box div {
    flex: 1;
}

/* Buttons */
.btn-theme {
    background: #18427d;
    color: #fff;
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 700;
    transition: all 0.3s ease-in-out;
}

.btn-theme:hover {
    background: linear-gradient(90deg, #0f2a55, #3b3bbf);
    color: #fff;
    transform: translateY(-2px);
}

/* Reset button */
.btn-outline-secondary {
    border-radius: 8px;
    padding: 10px 25px;
    transition: all 0.3s ease-in-out;
}

.btn-outline-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Input placeholders */
input::placeholder {
    font-style: italic;
    color: #6c757d;
}

/* Utility spacing */
.mb-3 {
    margin-bottom: 1rem !important;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .calc-card {
        padding: 20px;
    }

    .theme-heading {
        font-size: 24px;
    }

    .result-box {
        flex-direction: column;
        gap: 10px;
    }

    .btn-theme,
    .btn-outline-secondary {
        width: 100%;
    }
}