:root {
    --primary: #7d0000;
    --light: #F0FBFC;
    --light: #f0e4de;
    --dark: #000000;
}

@media (max-width: 1024px) {
  .main-content {
    padding-left: 16px; /* Mobile/tablet left space */
    padding-right: 8px; /* Optional: thoda right bhi */
  }
}



@media (max-width: 768px) {
    .dropdown-content {
        position: static !important;      /* Absolute ki bajaye normal flow mein */
        min-width: 100% !important;       /* Puray item ki width le */
        background: #111;
        box-shadow: none;
        left: 0 !important;
        top: auto !important;
        margin-top: 5px;                  /* Thoda gap upar se */
        z-index: 1;
    }
    .dropdown-menu {
        box-shadow: none;
    }
    .dropdown-item {
        position: relative;
    }
}


/* Dropdown container */
.dropdown {
    position: relative;
}

/* Dropdown toggle link */
.dropdown-toggle {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 220px;
    padding: 0;
    margin: 0;
    background-color: #111; /* Dark background */
    border: none;
    z-index: 1000;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Each dropdown item */
.dropdown-item > a {
    display: block;
    padding: 10px 15px;
    /* color: #fff; */
    text-decoration: none;
}

/* Specific colors for main items */



/* Nested dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    background-color: #111;
    padding: 0;
}

/* Show nested on hover */
.dropdown-item:hover .dropdown-content {
    display: block;
}

/* Nested links */
.dropdown-content a {
    padding: 10px 15px;
    display: block;
    color: #fff;
    text-decoration: none;
}

/* Nested hover effect */
.dropdown-content a:hover {
    background-color: #333;
}


/* mobile */

/* Default dropdown hidden */
/* .dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff; /* ya tumhara color */
    /* z-index: 1000; */
/* } */ 

/* Desktop: hover open */
@media (min-width: 992px) { /* desktop screen */
    .dropdown:hover > .dropdown-menu {
        display: block;
    }

    /* Submenu hover for nested items */
    .dropdown-item:hover > .dropdown-content {
        display: block;
    }
}

/* Mobile: dropdown handled by JS, so CSS can stay simple */
@media (max-width: 991px) {
    .dropdown-menu, .dropdown-content {
        display: none; /* hidden by default */
        position: relative; /* make it flow in column */
    }
}





.btn {
    background-color: #7d0000;
    border: none;
}

.btn a {
    text-decoration: none;
    color: #fff;
}

.btn:hover {
    background: transparent;
    color: var(--primary) !important;
    border: 1px solid var(--primary);
}

.btn:hover a {
    color: var(--primary) !important;
}

.btn-light {
    background-color: var(--light);
}

.btn-light:hover {
    background: transparent;
    color: var(--light) !important;
    border: 1px solid var(--light);
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    left: 45px;
    bottom: 45px;
    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-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    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;
    border-radius: 0px;
}

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

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

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

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

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

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar-toggler-icon {
    color: #fb873f;
}

.navbar-toggler {
    border: 2px solid #fb873f;
}

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

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


.header-carousel,
.owl-carousel {
    position: relative;
    min-height: 100vh;        /* Desktop/large screen par full screen height */
    width: 100%;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
}

.header-carousel .owl-carousel-item {
    position: relative;
    min-height: 100vh;        /* Carousel item bhi full screen height le */
    width: 100%;
    height: auto;
}


/* Carousel image */
.header-carousel .owl-carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carousel overlay/content */
.position-absolute.top-0.start-0.w-100.h-100.d-flex.align-items-center {
    min-height: inherit;
    height: 100%;
    width: 100%;
    background: rgba(24, 29, 56, .7);
    z-index: 5;
    display: flex;
    align-items: center;
}

/* Text inside carousel */
.header-carousel p {
    margin-top: 20px;
    font-size: 20px;
    line-height: 30px;
}

/* Tablet fix */
@media (max-width: 1300px) {
    .header-carousel,
    .owl-carousel,
    .header-carousel .owl-carousel-item {
        min-height: 480px;
    }
    .position-absolute.top-0.start-0.w-100.h-100.d-flex.align-items-center {
        min-height: 480px;
    }
}

@media (max-width: 768px) {
    .container-fluid,
    .header-carousel,
    .owl-carousel,
    .header-carousel .owl-carousel-item {
        min-height: 100vh;
        height: 100vh;
    }
    .position-absolute.top-0.start-0.w-100.h-100.d-flex.align-items-center {
        min-height: 100vh;
        height: 100vh;
    }
}


/* Small screen fix */
@media (max-width: 430px) {
    .header-carousel,
    .owl-carousel,
    .header-carousel .owl-carousel-item {
        min-height: 250px;
    }
    .position-absolute.top-0.start-0.w-100.h-100.d-flex.align-items-center {
        min-height: 250px;
    }
    .header-carousel h1 {
        font-size: 30px;
        line-height: 30px;
    }
    .header-carousel p {
        margin-top: 20px;
        font-size: 15px;
        line-height: 20px;
    }
}



/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}




/* Video background height fix */
.video-background {
    position: relative;
    width: 100%;
    height: 700px;
    /* yahan apni required height set karo */
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.info-assets {
    text-align: center;
    padding: 50px 20px;
}

.info-assets h1 {
    color:#7d0000 ;
    font-size: 36px;
    margin-bottom: 10px;
}

.info-assets .highlight {
    color: #7d0000 ;
}

.info-assets .subheadline {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.5;
    color: #000;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    width: 220px;
}

.stat-item img {
    width: 60px;
    margin-bottom: 15px;
}

.stat-item h2 {
    font-size: 36px;
    color: #7d0000 ;
    margin: 0;
}

.stat-item .counters {
    font-size: 36px;
    color: #7d0000 ;
}

.stat-item p {
    font-size: 14px;
    margin-top: 8px;
    color: #000;
}


.partners-section {
    text-align: center;
    padding: 50px 20px;
    background: #f9f9f9;
    /* optional background */
    margin-bottom: 20px;
}

.partners-section h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.partners-section p {
    margin-bottom: 30px;
    color: #555;
    font-size: 1rem;
}

/* Slider container */
.partner-logos {
    display: flex;
    gap: 50px;
    /* space between logos */
    align-items: center;
    animation: scroll-logos 25s linear infinite;
}

/* Make sure images are same height */
.partner-logos img {
    height: 60px;
    /* adjust as needed */
    width: auto;
}

/* Animation */
@keyframes scroll-logos {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}




*** Service ***/
.service-section {
    width: 100;
    /* Full screen width */
    padding: 40px 0;
}

.service-item {
    width: 90%;
    /* Box thoda chhota screen ke andar */
    margin: 20px auto;
    /* Center aur gap ke liye */
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: 0.5s;
}

.service-item video {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}



.service-item i {
    color: var(--primary);
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: all .3s ease-in-out;
}

.service-item:hover * {
    color: #fff !important;
}

.course-item img {
    width: 100%;
    height: 200px;
    border-radius: 5px;
}



/*** Categories & Courses ***/

.category .content {
    cursor: pointer;
    transition: .5s;
}

.category .content:hover {
    background-color: var(--primary);
    color: #fff;
}

.category .content h5 a {
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease-in-out;
}

.category .content:hover h5 a {
    color: #fff !important;
}

.category img {
    width: 50px;
    height: 50px;
}

.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
    margin-top: -10px;
}




/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    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;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

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

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* TABLET FULL WIDTH FIX (No CSS changes anywhere else) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    html, body {
        width: 100vw !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    *, *::before, *::after {
        box-sizing: border-box !important;
        max-width: 100vw !important;
    }
    .container,
    .container-fluid,
    .row,
    .col,
    .col-12 {
        width: 100vw !important;
        max-width: 100vw !important;
        /* Add padding for space on left and right */
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}


/* ----- 1280 x 800 LAPTOP FIX (Full Width + No Scroll Issue) ----- */
@media (min-width: 1200px) and (max-width: 1400px) {

    html,
    body {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    .container,
    .container-fluid,
    .row,
    .col,
    .col-12 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    header,
    footer {
        width: 100% !important;
    }

    * {
        box-sizing: border-box !important;
    }
}


/* blog */

main .site-title {
    background: url('../assets/background_car.jpg');
    background-size: cover;
    height: 110vh;
    display: flex;
    justify-content: center;
}

main .site-title .site-background {
    padding-top: 10rem;
    text-align: center;
    color: var(--white);
}

main .site-title h1,
h3 {
    margin: .3rem;
}

main .site-title .btn {
    margin: 1.8rem;
    background: var(--sky);
}

main .site-title .btn:hover {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

/* --------x------ Site title --------x------- */

/* --------------- Blog Carousel ------------ */

main .blog {
    background: url('../assets/Abract01.png');
    background-repeat: no-repeat;
    background-position: right;
    height: 100vh;
    width: 100%;
    background-size: 65%;
}

main .blog .blog-post {
    padding-top: 6rem;
}

main .blog-post .blog-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 80%;
    margin: 3rem 2rem;
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.2);
}

main .blog-content .blog-title {
    padding: 2rem 0;
}

main .blog-content .btn-blog {
    padding: .7rem 2rem;
    background: var(--sky);
    margin: .5rem;
}

main .blog-content span {
    display: block;
}

section .container .owl-nav {
    position: absolute;
    top: 0%;
    margin: 0 auto;
    width: 100%;
}

.owl-nav .owl-prev .owl-nav-prev,
.owl-nav .owl-next .owl-nav-next {
    color: var(--text-gray);
    background: transparent;
    font-size: 2rem;
}

.owl-theme .owl-nav [class*='owl-']:hover {
    background: transparent;
    color: var(--midnight);
}

.owl-theme .owl-nav [class*='owl-'] {
    outline: none;
}


/* -------x------- Blog Carousel -----x------ */

/* ---------------- Site Content ----------------*/

main .site-content {
    display: grid;
    grid-template-columns: 70% 30%;
}

main .post-content {
    width: 100%;

}

main .site-content .post-content>.post-image,
.post-title {
    padding: 1rem 2rem;
    position: relative;
}

main .site-content .post-content>.post-image .post-info {
    background: var(--sky);
    padding: 1rem;
    position: absolute;
    bottom: 0%;
    left: 20vw;
    border-radius: 3rem;
}

main .site-content .post-content>.post-image>div {
    overflow: hidden;
}

main .site-content .post-content>.post-image .img {
    width: 100%;
    transition: all 1s ease;
}

main .site-content .post-content>.post-image .img:hover {
    transform: scale(1.3);
}

main .site-content .post-content>.post-image .post-info span {
    margin: 0 .5rem;
}

main .post-content .post-title a {
    font-family: var(--Anton);
    font-size: 1.5rem;
}

.site-content .post-content .post-title .post-btn {
    border-radius: 0;
    padding: .7rem 1.5rem;
    background: var(--sky);
}

.site-content .pagination {
    justify-content: center;
    color: var(--text-gray);
    margin: 4rem 0;
}

.site-content .pagination a {
    padding: .6rem .9rem;
    border-radius: 2rem;
    margin: 0 .3rem;
    font-family: var(--Lexend);
}

.site-content .pagination .pages {
    background: var(--text-gray);
    color: var(--white);
}

/* -------x-------- Site Content --------x-------*/


/* --------------- Sidebar ----------------------- */

.site-content>.sidebar .category-list {
    font-family: var(--Livvic);
}

.site-content>.sidebar .category-list .list-items {
    background: var(--sky);
    padding: .4rem 1rem;
    margin: .8rem 0;
    border-radius: 3rem;
    width: 70%;
    display: flex;
    justify-content: space-between;
}

.site-content>.sidebar .category-list .list-items a {
    color: black;
}

.site-content .sidebar .popular-post .post-content {
    padding: 1rem 0;
}

.site-content .sidebar .popular-post h2 {
    padding-top: 8rem;
}

.site-content .sidebar .popular-post .post-info {
    padding: .4rem .1rem !important;
    bottom: 0rem !important;
    left: 1.5rem !important;
    border-radius: 0rem !important;
    background: white !important;
}

.site-content .sidebar .popular-post .post-title a {
    font-size: 1rem;
}

.site-content .sidebar .newsletter {
    padding-top: 10rem;
}

.site-content .sidebar .newsletter .form-element {
    padding: .5rem 2rem;
}

.site-content .sidebar .newsletter .input-element {
    width: 80%;
    height: 1.9rem;
    padding: .3rem .5rem;
    font-family: var(--Lexend);
    font-size: 1rem;
}

.site-content .sidebar .newsletter .form-btn {
    border-radius: 0;
    padding: .8rem 32%;
    margin: 1rem 0;
    background: var(--sky);
}

.site-content .sidebar .popular-tags {
    padding: 5rem 0;
}

.site-content .sidebar .popular-tags .tags .tag {
    background: var(--sky);
    padding: .4rem 1rem;
    border-radius: 3rem;
    margin: .4rem .6rem;
}







