@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #0d3b66;
    /* Deep Blue */
    --secondary-green: #2e7d32;
    /* Green */
    --accent-pink: #ff4fa3;
    /* Pink */
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #555555;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

/* Top Bar */
.gov-top-bar {
    background-color: #e9ecef;
    font-size: 13px;
    padding: 8px 0;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-blue);
}

/* Main Header */
.main-header {
    background-color: var(--white);
    padding: 20px 0;
    min-height: 100px;
}

.header-gradient-bg {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(240, 247, 244, 0.6) 50%, rgba(255, 255, 255, 1) 100%);
}

.border-bottom-theme {
    border-bottom: 4px solid transparent !important;
    border-image: linear-gradient(to right, var(--primary-blue), var(--secondary-green), var(--accent-pink)) 1 !important;
}

.header-supporting-info {
    line-height: 1.4;
    font-size: 13.5px;
}

/* Custom Logo Class */
.institute-logo {
    height: 160px;
    width: auto;
    object-fit: contain;
}

.institute-title-hindi {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 2px;
}

.institute-title-english {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Social Media Header Icons */
.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-bg);
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 59, 102, 0.1);
}

.social-icon-btn:hover {
    background-color: var(--accent-pink);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(255, 79, 163, 0.3) !important;
}

/* Sticky Navbar */
.custom-navbar {
    background-color: var(--primary-blue);
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-navbar .nav-link {
    color: var(--white) !important;
    font-size: 15px;
    font-weight: 500;
    padding: 15px 20px !important;
    transition: all 0.3s ease;
    position: relative;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white) !important;
}

.custom-navbar .nav-link.active::after,
.custom-navbar .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-pink);
}

/* Advanced Hero Slider */
.hero-slider-section {
    position: relative;
    height: 70vh;
}

.custom-carousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease-in-out;
}

.slider-overlay {
    background: rgba(0, 0, 0, 0.55);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.5s;
}

.hero-content .slider-btn-group {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.7s;
}

.carousel-item.active .hero-content h1,
.carousel-item.active .hero-content p,
.carousel-item.active .hero-content .slider-btn-group {
    transform: translateY(0);
    opacity: 1;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: var(--white);
    opacity: 0.5;
    border: 2px solid transparent;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--accent-pink);
    border-color: var(--white);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    z-index: 5;
}

.carousel-control-icon-custom {
    background-color: rgba(13, 59, 102, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-icon-custom,
.carousel-control-next:hover .carousel-control-icon-custom {
    background-color: var(--primary-blue);
}

@media (max-width: 768px) {
    .institute-logo {
        height: 110px;
        margin-bottom: 15px;
    }

    .hero-slider-section {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .institute-title-hindi {
        font-size: 22px;
        text-align: center;
    }

    .institute-title-english {
        font-size: 13px;
        text-align: center;
    }

    .header-supporting-info {
        margin-top: 15px !important;
        margin-bottom: 10px;
        text-align: center !important;
        border-left: none !important;
        padding-left: 0 !important;
    }

    .header-badges {
        margin-top: 10px;
        align-items: center !important;
    }

    .main-header .row {
        flex-direction: column;
        text-align: center;
    }

    .social-icon-btn {
        margin-top: 15px;
    }
}

/* Section Spacing */
.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-title {
    color: var(--primary-blue);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-green);
    border-radius: 2px;
}

.section-title-left {
    text-align: left;
}

.section-title-left::after {
    left: 0;
    transform: translateX(0);
}

/* Gradient Buttons */
.btn-custom {
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-green));
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-custom:hover {
    background: linear-gradient(45deg, var(--secondary-green), var(--primary-blue));
    color: var(--white);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-outline-custom {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-custom:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Reusable Course/News Cards */
.course-card,
.news-card,
.custom-card {
    border: none;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    overflow: hidden;
    height: 100%;
}

.course-card:hover,
.news-card:hover,
.custom-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.card-title {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Specific Sections */
.bg-light-section {
    background-color: var(--light-bg);
}

/* Notice Board */
.notice-wrapper {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.notice-header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 18px 25px;
    font-weight: 600;
    margin: 0;
}

.notice-list {
    height: 350px;
    overflow-y: hidden;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: var(--light-bg);
}

.notice-item {
    padding: 15px 25px;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.3s ease;
    background-color: var(--white);
}

.notice-item:hover {
    background-color: #f1f5f9;
}

.notice-date {
    font-size: 13px;
    color: var(--accent-pink);
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.notice-title {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    line-height: 1.4;
}

.notice-title:hover {
    color: var(--primary-blue);
}

/* Call to Action */
.cta-section {
    background: linear-gradient(45deg, var(--primary-blue), #1b5e20);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Gallery Section Grid & Hover Zoom */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    padding: 5px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: 0.3s;
    border-radius: 6px;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Footer Dark Theme */
.footer-dark {
    background-color: var(--primary-blue);
    color: var(--white);
    position: relative;
}

.border-top-theme {
    border-top: 5px solid transparent !important;
    border-image: linear-gradient(to right, var(--primary-blue), var(--secondary-green), var(--accent-pink)) 1 !important;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-pink);
    border-radius: 2px;
}

.footer-hover-link {
    transition: all 0.3s ease;
}

.footer-hover-link:hover {
    color: var(--accent-pink) !important;
    padding-left: 8px;
}

.hover-white:hover {
    color: var(--white) !important;
}

.social-icon-btn-dark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-btn-dark:hover {
    background-color: var(--accent-pink);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255, 79, 163, 0.4);
}

/* Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-green));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(45deg, var(--secondary-green), var(--primary-blue));
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Internal Page Banner */
.page-banner {
    background: linear-gradient(rgba(13, 59, 102, 0.85), rgba(46, 125, 50, 0.85)), url('../images/slider/slider1.jpg') center/cover no-repeat;
    padding: 80px 0;
    color: var(--white);
    text-align: center;
    border-bottom: 5px solid transparent;
    border-image: linear-gradient(to right, var(--primary-blue), var(--secondary-green), var(--accent-pink)) 1;
}

.page-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.page-banner .breadcrumb-custom {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}