:root {
    --primary: #0e2b5c;
    --secondary: #ff6b35;
    --accent: #e05a2a;
    --light: #f8f9fa;
    --dark: #212529;
    --gold: #d4af37;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
    background-color: #f9fafb;
}

/* Top Header Styles */
.top-header {
    background-color: var(--primary);
    color: white;
    padding: 5px 0;
    font-size: 0.85rem;
}

.nielit-highlight {
    font-weight: 600;
    margin-left: 20px;
    color: #fff;
    background-color: var(--secondary);
    padding: 4px 10px;
    border-radius: 20px;
}

.top-header a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    transition: all 0.3s;
}

.social-icons a {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    color: white;
    margin-right: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.social-icons a:hover {
    background: var(--secondary);
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
    color: var(--secondary);
}

.main-header {
    padding: 0.5rem 0;
    /* Reduces padding to decrease header height */
}

.header-logo {
    width: 80px;
    /* Adjust the logo width */
    height: auto;
    /* Maintains aspect ratio */
}

.navbar-nav .nav-link {
    padding-top: 0.5rem;
    /* Adjusts top padding of nav links */
    padding-bottom: 0.5rem;
    /* Adjusts bottom padding of nav links */
}

/* Main Header with Logo and Text */
.logo-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3a7a 100%);
    padding: 20px 0;
    text-align: center;
    border-bottom: 5px solid var(--secondary);
}

.institute-name {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.institute-name span {
    color: var(--secondary);
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 3px;
}

.institute-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-top: 10px;
    letter-spacing: 1px;
}

/* Main Navigation Bar */


.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    /* Add a small top/bottom padding to the header itself */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333;
    padding: 5px;
    /* Reduced top and bottom padding */
    position: relative;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary);
    padding: 10px 0;
    font-family: 'Playfair Display', serif;
}

/* Smaller main logo */
.navbar-brand img {
    width: 60px;
    height: 60px;
}

.navbar-brand span {
    color: var(--secondary);
}

.navbar-nav .nav-item {
    margin: 0 3px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333;
    padding: 10px 5px;
    position: relative;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: width 0.3s;
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
    width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.btn {
    background-color: var(--secondary);
    color: white;
    border-radius: 4px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s;
    margin-left: 15px;
    font-size: 0.95rem;
}

.btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
    .carousel-item {
        max-width: 100%;
        padding-bottom: 0;
    }
}

/* About Section */
.about-section {
    padding: 40px 0;
    background-color: #fff;
}

.about-img img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}


@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    p {
        font-size: 0.9rem !important;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.8rem;
    }
}

/* --- Combined Styles for 'Why Choose' and 'Key Features' Sections --- */

/* Section Padding and Background */
.why-choose-section,
.key-features-section {
    padding: 30px 0;
    background-color: #f7f5f2;
    /* Using a light color for consistency */
}

/* Card Styling for both sections */
.why-card,
.feature-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid #eee;
}

/* Hover Effect for both cards */
.why-card:hover,
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Icon Styling for both sections */
.why-icon,
.feature-icon {
    font-size: 3rem;
    /* Larger icon size */
    color: #ff5722;
    /* Orange color */
    margin-bottom: 15px;
}

/* Title Styling for both sections */
.why-card h4,
.feature-card h4 {
    font-weight: 600;
    color: #333;
    /* A dark color for contrast */
    font-size: 1.25rem;
}

/* Stats Section */
.stats-section {
    padding: 30px 0;
    background: var(--primary);
    color: white;
    text-align: center;
}

.stats-item {
    padding: 20px 0;
}

.stats-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
}

.stats-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Courses Section */
.courses-section {
    padding: 30px 0;
}

.course-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    margin-bottom: 20px;
    border: 1px solid #eee;
    padding: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.course-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.course-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.course-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.course-meta span {
    margin-right: 15px;
}

.course-meta i {
    margin-right: 5px;
    color: var(--secondary);
}

.course-modules {
    color: #666;
    font-size: 0.9rem;
}

.course-modules ul {
    padding-left: 20px;
    margin-top: 10px;
}

.course-modules li {
    margin-bottom: 5px;
}

.course-cta {
    margin-top: auto;
    /* Pushes the button to the bottom */
    text-align: right;
}

.course-cta .btn {
    background: var(--secondary);
    color: white;
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.course-cta .btn:hover {
    background: var(--accent);
}

/* Founder Section */
.founder-section {
    padding: 80px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=600&w=1200');
    background-size: cover;
    background-attachment: fixed;
}

.founder-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    height: 100%;
    border: 1px solid #eee;
}

.founder-img {
    width: 40%;
    overflow: hidden;
}

.founder-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-info {
    padding: 30px;
    width: 60%;
}

.founder-name {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
}

.founder-title {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
    font-size: 1.1rem;
}

.founder-quote {
    font-style: italic;
    border-left: 3px solid var(--secondary);
    padding-left: 15px;
    margin: 25px 0;
    color: #555;
    font-size: 1.1rem;
}/* Founder Section Responsive Fix */
@media (max-width: 768px) {
    .founder-card {
        flex-direction: column;
    }

    .founder-img {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #fff;
    }

    .founder-img img {
        width: 100%;
       
       
        object-fit: contain;  /* ensures full image visible */
        object-position: center;
        border-bottom: 1px solid #eee;
    }

    .founder-info {
        width: 100%;
        padding: 20px;
    }
}


/* --- Certification Section - Main Styles --- */
.certification-section {
    padding: 30px 0;
    background: var(--primary);
    color: white;
}

.certification-section .section-title h2 {
    color: white;
}

.cert-slider {
    padding: 20px;
}

/* --- Certification Section - Main Styles --- */
.certification-section {
    padding: 30px 0; /* Original: Reduced padding */
    /* You can reduce this further if needed, e.g., padding: 20px 0; */
    background: var(--primary);
    color: white;
}

/* --- Certificate Card Styles --- */
.cert-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    /* ... (rest of the styles) ... */
    /* Remove or reduce min-height to allow it to shrink */
    /* min-height: 260px; /* ORIGINAL: optional: kam height fix karni ho to */
    min-height: 220px; /* NEW: Reduced minimum height */
    padding: 10px; /* NEW: Reduced internal padding from 15px to 10px */
}

/* --- Body Text Styles --- */
.cert-body {
    padding: 15px; /* NEW: Reduced padding from 20px to 15px */
    text-align: center;
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

/* Reduce margin/size of elements inside the card */
.student-name {
    font-weight: 700;
    font-size: 1.1rem; /* NEW: Reduced font size */
    margin-bottom: 3px; /* NEW: Reduced margin */
}

.course-name {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 5px; /* NEW: Reduced margin */
    font-size: 0.9rem; /* NEW: Reduced font size */
}

.rating {
    margin-top: 10px; /* NEW: Reduced top margin */
}

/* This targets the quote text */
.cert-card .cert-body > p {
    font-size: 0.9rem; /* NEW: Reduced font size for the quote */
    line-height: 1.4; /* NEW: Tightened line-height */
}
/* Affiliations Section */
.affiliations-section {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.affiliation-logo img {
    max-height: 120px;
    margin: 0 15px;
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
}

.affiliation-logo img:hover {
    filter: none;
    opacity: 1;
}

/* General Section Heading Styling */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-top: 0;
}

.section-title h2 {
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--secondary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    background-color: var(--light);
}

.accordion-button {
    font-weight: 600;
    color: var(--primary);
}

.accordion-button:focus {
    box-shadow: none;
}

/* Accordion animation styles */
.accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-body {
    color: #555;
    padding: 20px;
    background-color: #fff;
}

/* Footer */
footer {
    background: #0c2340;
    color: #ddd;
    padding: 40px 0 20px; /* Reduced top padding */
    font-family: 'Poppins', sans-serif;
}

footer .footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 15px; /* smaller margin */
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 5px;
}

footer .footer-title:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: var(--secondary);
    bottom: 0;
    left: 0;
}

footer .footer-links a,
footer .contact-info-footer a {
    display: flex;
    align-items: center;
    color: #aaa;
    margin-bottom: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

footer .footer-links a:hover,
footer .contact-info-footer a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

footer .contact-info-footer i {
    color: var(--secondary);
    margin-right: 8px;
    width: 20px;
}

footer .social-footer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    color: white;
    margin-right: 8px;
    transition: all 0.3s;
}

footer .social-footer a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

footer .copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    margin-top: 30px;
    text-align: center;
    color: #999;
}


/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: var(--secondary) !important;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

/* Modal Styles */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-top: 20px;
}

.modal-header {
    background: var(--primary);
    color: white;
    border-bottom: none;
    padding: 10px;
    align-items: center;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 20px;
}

.modal-body .form-control {
    border-radius: 5px;
}

.modal-body .btn-primary {
    background-color: var(--secondary);
    border: none;
    border-radius: 5px;
    font-weight: 600;
}

/* New styles for Notification Pop-up */
.modal-dialog.modal-notification {
    max-width: 550px;
    margin: auto;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal.show .modal-dialog {
    animation: fadeInSlideUp 0.5s ease-out forwards;
}

.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.notification-item {
    padding: 5px;
    border-bottom: 1px solid #eee;
    animation: slideInFromLeft 0.5s ease-out forwards;
    opacity: 0;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f7f7f7;
    opacity: 1;
}

.notification-item:nth-child(1) {
    animation-delay: 0.1s;
}

.notification-item:nth-child(2) {
    animation-delay: 0.2s;
}

.notification-item:nth-child(3) {
    animation-delay: 0.3s;
}

.notification-item:nth-child(4) {
    animation-delay: 0.4s;
}

.notification-item:nth-child(5) {
    animation-delay: 0.5s;
}

.notification-item:nth-child(6) {
    animation-delay: 0.6s;
}

.notification-item:nth-child(7) {
    animation-delay: 0.7s;
}

.notification-item:nth-child(8) {
    animation-delay: 0.8s;
}

.notification-item:nth-child(9) {
    animation-delay: 0.9s;
}

.notification-item:nth-child(10) {
    animation-delay: 1.0s;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-item p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 3em;
    transition: opacity 0.3s ease-in-out;
}

.modal-footer .btn-primary {
    background-color: var(--secondary);
    border: none;
}

.modal-footer .btn {
    background-color: var(--secondary);
    color: white;
    border: none;
}

.modal-footer .btn:hover {
    background-color: var(--accent);
}

/* Responsive Styles */
@media (max-width: 991px) {

    .top-header,
    .logo-header {
        display: none;
    }

    .founder-card {
        flex-direction: column;
    }

    .founder-img,
    .founder-info {
        width: 100%;
    }

    .founder-img {
        height: 350px;
    }

    .institute-name {
        font-size: 2rem;
    }

    .institute-name span {
        font-size: 1.5rem;
    }

    /* New button and image styles for professional look */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .img-fluid {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 767px) {

    /* Mobile menu right-to-left transition */
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1050;
        padding: 20px;
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    .navbar-nav {
        flex-direction: column;
    }

    .navbar-nav .nav-link {
        padding: 12px 15px;
    }

    .founder-img {
        height: 300px;
    }

    .institute-name {
        font-size: 1.8rem;
    }

    .institute-name span {
        font-size: 1.3rem;
    }

    .nielit-highlight {
        margin-left: 0;
        display: block;
        margin-top: 5px;
    }
}