/********** Template CSS **********/
:root {
    --primary: #d4232a;
    --secondary: #2d3192;
    --light: #F3F6F8;
    --dark: #1e2a59;
    --black:#404040;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    margin-right: 15px;
    padding: 15px 0;
    color: red;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: red;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, .50);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)), url(../image/slide3d.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Facts ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}


/*** Courses ***/
.courses {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), url(../image/slide3d.jpg) center center no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.courses-item .courses-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.courses-item:hover .courses-overlay {
    height: 100%;
    opacity: 1;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .75);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    height: 100%;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    height: 40px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--light);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #092139;
}

.copyright a {
    color: var(--primary);
}

.copyright a:hover {
    color: var(--light);
}

 /* Reusable Card/Section Styling */
        .section-card {
            border: 1px solid #dee2e6; /* Light gray border */
            border-radius: 0.75rem; /* Rounded corners */
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08); /* Soft shadow */
            padding: 2rem;
            background-color: #ffffff;
            margin-bottom: 30px; /* Space between sections */
        }

        /* Breadcrumbs Styling */
        .breadcrumb-custom {
            background-color: #e9ecef;
            padding: 1rem 1.5rem;
            border-radius: 0.5rem;
            margin-bottom: 30px;
        }
        .breadcrumb-custom .breadcrumb-item a {
            color: var(--secondary);
            text-decoration: none;
        }
        .breadcrumb-custom .breadcrumb-item.active {
            color: #6c757d;
        }

        /* Image Styling */
        .top-image {
            max-width: 100%;
            height: auto;
            border-radius: 0.75rem;
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }

        /* Heading Styles */
        h2 {
            color: var(--secondary);
            font-weight: bold;
            margin-bottom: 25px;
            text-align: center;
        }
        h3 {
            color: var(--secondary);
            font-weight: bold;
            margin-bottom: 20px;
        }

        /* Text area styling (similar to .about-section content) */
           .text-content p,
    .text-content ul,
    .text-content ol,
    .text-content li {
        font-size: 16px;
        text-align:justify;
        line-height: 1.6;
        color:var(--black);
     
    }
    @media (min-width: 991.98px) {
        .text-content p,
    .text-content ul,
    .text-content ol,
    .text-content li {
        font-size: 14px; /* You can adjust this value as needed, e.g., 16px, 0.95rem */
        line-height: 1.6; /* Good for readability */
        color:var(--black);
        text-align:justify;
    }
     @media (max-width: 767.98px){
           .text-content p,
    .text-content ul,
    .text-content ol,
    .text-content li {
        font-size: 10px; /* You can adjust this value as needed, e.g., 16px, 0.95rem */
        line-height: 1.6; /* Good for readability */
        color:var(--black);
        text-align:justify;
     }
    /* Optional: To ensure strong tags within lists also inherit the font size */
    .text-content li strong {
        font-size: inherit;
    }
        /* Form Styling */
        .form-label {
            font-weight: 500;
            color: #343a40;
        }
        .form-control, .form-select {
            border-radius: 0.5rem;
            border: 1px solid #ced4da;
            padding: 0.75rem 1rem;
        }
        .form-control:focus, .form-select:focus {
            border-color: #80bdff;
            box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
        }
        .btn-submit {
            background-color: #28a745; /* Green for submit */
            border-color: #28a745;
            color: #ffffff;
            border-radius: 0.5rem;
            padding: 0.75rem 1.5rem;
            font-size: 1.1rem;
            transition: background-color 0.3s ease;
        }
        .btn-submit:hover {
            background-color: #218838;
            border-color: #1e7e34;
        }

        /* Table Styling */
        .table-custom {
            width: 100%;
            margin-bottom: 1rem;
            color: #212529;
            border-collapse: collapse; /* Ensure borders collapse for a clean look */
        }
        .table-custom th, .table-custom td {
            padding: 0.75rem;
            vertical-align: top;
            border-top: 1px solid #dee2e6;
        }
        .table-custom thead th {
            vertical-align: bottom;
            border-bottom: 2px solid #dee2e6;
            background-color: #e9ecef;
            color: #495057;
        }
        .table-custom tbody tr:nth-of-type(odd) {
            background-color: rgba(0, 0, 0, 0.03);
        }
        .table-custom tbody tr:hover {
            background-color: rgba(0, 0, 0, 0.075);
        }
        /* Styling for the main containers (both button-container and content-display) */
        .main-section-div {
            border: 2px solid #dee2e6; /* Light gray border */
            border-radius: 0.75rem; /* Rounded corners */
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1); /* Soft shadow */
            background-color: #ffffff;
            margin-bottom: 25px; /* Space between the two divs */
            width: 100%; /* Take full width of parent container */
             /* Max width for consistency */
            padding: 25px;
            overflow: hidden; /* Ensures content respects rounded corners */
        }

        /* Styling for the buttons in the first div */
        .btn-dynamic-content {
            background-color: #007bff; /* Bootstrap primary blue */
            border-color: #007bff;
            color: #ffffff;
            font-weight: 500;
            border-radius: 0.5rem;
            padding: 0.75rem 1.25rem;
            white-space: normal; /* Allow text to wrap */
            word-wrap: break-word; /* Ensure long words break */
            transition: background-color 0.2s ease, border-color 0.2s ease;
        }
        .btn-dynamic-content:hover {
            background-color: #0056b3;
            border-color: #0056b3;
        }
        .btn-dynamic-content.active-button {
            background-color: #28a745; /* Green for active button */
            border-color: #28a745;
            box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25); /* Green shadow for active */
        }

        /* Styling for the content display area */
        .content-display-area {
            min-height: 300px; /* Minimum height for content area */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
        }

        .content-section {
            display: none; /* Hidden by default */
            width: 100%;
            height: 100%;
        }

        .content-section h3 {
            color: #004d99;
            margin-bottom: 15px;
            font-size: 1.75rem;
        }
        .content-section p {
            color: #495057;
            line-height: 1.6;
            font-size: 1.05rem;
        }

        /* Equal button width using flexbox or grid (Bootstrap handles col-auto well here) */
        .buttons-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive grid for buttons */
            gap: 15px; /* Space between buttons */
        }

        /* Responsive adjustments */
        @media (max-width: 767.98px) { /* Small devices */
            .buttons-grid {
                grid-template-columns: 1fr; /* Stack buttons vertically on small screens */
            }
        } 
        /*D101*/
      /* style/style.css */



/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--dark);
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

.bg-dark {
    background-color: var(--dark) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #b31e24;
    border-color: #b31e24;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 35, 42, 0.2);
}

.section-title {
    position: relative;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

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

.section-title.text-start h2:after {
    left: 0;
    transform: none;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(30, 42, 89, 0.85), rgba(30, 42, 89, 0.9)), url('../image/about-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    color: white;
}

.page-header h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--primary);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.8);
}

/* About Section */
.about-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-img img {
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
}

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

.about-img .img-2 {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    border-radius: 10px;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content h4 {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 20px;
}

.about-content .para {
    margin-bottom: 20px;
    color: var(--black);
    font-size: 1.05rem;
}

/* Vision & Mission */
.vision-mission-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.3s ease;
}

.vision-mission-box:hover {
    transform: translateY(-10px);
}

.vision-mission-box i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.vision-mission-box h3 {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.mission-list {
    list-style-type: none;
    padding-left: 0;
}

.mission-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.mission-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(rgba(45, 49, 146, 0.9), rgba(30, 42, 89, 0.9));
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: white;
}

.stat-box {
    text-align: center;
    padding: 30px;
}

.stat-box i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.stat-box h3 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* Courses Section */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.card-body ul {
    margin-bottom: 0;
}

.card-body ul li {
    margin-bottom: 10px;
    padding-left: 5px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Custom spacing classes */
.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.mb-6 {
    margin-bottom: 5rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .page-header h1 {
        font-size: 2.8rem;
    }
    
    .about-img .img-2 {
        width: 150px;
        height: 150px;
        right: -20px;
        bottom: -20px;
    }
}

@media (max-width: 767px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .vision-mission-box {
        padding: 30px 20px;
    }
    
    .about-img .img-2 {
        width: 120px;
        height: 120px;
        right: -10px;
        bottom: -10px;
    }
    
    .stat-box h3 {
        font-size: 2.5rem;
    }
}