:root {
    --primary-color: #1a3a6e;
    --secondary-color: #e74c3c;
    --accent-color: #f39c12;
    --light-color: #f9f9f9;
    --dark-color: #333;
    --text-color: #444;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    /* line-height: 1.6; */
}
/* Ensure content stays within viewport */
.main-content-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

/* Fix for horizontal scroll issues */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    /* Removed overflow-x: hidden from here */
}

/* New container for horizontal overflow control */
.layout-container {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Main content wrapper - no overflow restrictions */
.main-content-wrapper {
    width: 100%;
    position: relative;
}

/* Ensure sticky navbar works */
.navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020; /* Bootstrap's default z-index for sticky nav */
}

/* Carousel container adjustments */
.carousel-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.slick-list {
    overflow: hidden; /* Contained overflow for carousel */
}

.slick-track {
    display: flex;
    align-items: center;
}
/* end of fix */

.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(241, 51, 51, 0.1);
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    color: red;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url("https://storage.googleapis.com/workspace-0f70711f-8b4e-4d94-86f1-2a93ccde5887/image/8029f69b-bfa0-40d2-b5ca-5ac9ca973645.png")
            no-repeat center center;
    background-size: cover;
    color: white;
    padding: 8rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
}

.btn-primary:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

/* .feature-box {
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    margin-bottom: 1.5rem;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
} */

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    align-items: center;
}

/* .feature-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
    align-items: center;
} */

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color);
}

.product-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    height: 200px;
    object-fit: cover;
}

.product-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 0.75rem;
    text-decoration: none;
}
.footer-linka {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}
.contact-linka {
    color: rgba(19, 2, 2, 0.8);
    text-decoration: none;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .navbar-nav {
        margin-top: 1rem;
    }
}

.category-padding {
    padding: 15px 0 !important;
}
.bg-image-1 {
    background-color: #f5f5f5;
}

/* Image CSS */
/* Main carousel container */
.carousel-image-col {
    margin: 0 20px; /* Horizontal margin to create a gap between images */
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out; /* Smooth transition for shadow */
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    flex-direction: column;
}

/* Image styles */
.category-image {
    width: 40%; /* Restrict image width to 40% of its container */
    max-height: 100%; /* Fit within container height */
    object-fit: contain; /* Maintain aspect ratio of images */
    transition: transform 0.3s ease-in-out; /* Smooth transition for scaling */
}

/* Hover effect on image */
.carousel-image-col:hover .category-image {
    transform: translateY(-10px); /* Slide up effect */
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);  */ /* Shadow effect on hover */
}

/* Image styles */
.category-image1 {
    width: 60%; /* Restrict image width to 40% of its container */
    max-height: 100%; /* Fit within container height */
    object-fit: contain; /* Maintain aspect ratio of images */
    transition: transform 0.3s ease-in-out; /* Smooth transition for scaling */
}

/* Hover effect on image */
.carousel-image-col:hover .category-image1 {
    transform: translateY(-10px); /* Slide up effect */
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);  */ /* Shadow effect on hover */
}

/* Text overlay styles */
.overlay-text {
    position: absolute;
    bottom: 10px; /* Position the text at the bottom of the image */
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-weight: bold;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease-in-out;
}

/* Show text on hover */
.carousel-image-col:hover .overlay-text {
    opacity: 1; /* Make the text visible on hover */
}

/* Title of image - text below image */
.image-title {
    text-align: center; /* Center align title text */
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* Image container holding both the image and the title */
.image-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*text-align: center;*/

    text-decoration: none; /* Remove default underline */
    color: inherit; /* Inherit the color from the parent */
}

.atext {
    text-decoration: none;
    color: #000 !important;
}

/* about us */
.bgsectionheader {
    background-color: #f5f5f5;
    margin-bottom: 25px;
}
.overviewP {
    color: #000 !important;
    font-size: 18px !important;
    padding: 5px 2em;
    text-align: justify;
}
.mentorshead1 {
    margin-top: 5px;
    margin-bottom: 2px;
    font-size: 18px;
    color: rgb(85, 85, 85);
    font-weight: bold;
    text-align: center;
}
.mentorshead2 {
    margin-top: 2px;
    font-size: 16px;
    color: rgb(119, 119, 119);
    text-align: center;
}
.mentorimg{
 width: 60%;
}
.footer-corporate-title{
    font-weight: 700;
}
.section {
    background-color: #f8f9fa;
    padding: 50px 0;
}
/* Arrow styling */
.slick-prev, .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 40px;
    height: 40px;
    background: rgba(231, 227, 227, 0.5);
    color: red;
    border: none;
    border-radius: 50%;
    font-size: 0;
    cursor: pointer;
}

.slick-prev {
    left: -10px;
}

.slick-next {
    right: -10px;
}

.slick-prev:before, .slick-next:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: solid red;
    border-width: 0 3px 3px 0;
}

.slick-prev:before {
    transform: translate(-50%, -50%) rotate(135deg);
}

.slick-next:before {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.datarows{
    margin-left: 100px;
}

/* main content for mobile */
@media (max-width: 992px) {
    .main-content-wrapper {
        padding: 0 2px;
    }

    .slick-prev {
        left: 5px;
    }

    .slick-next {
        right: 5px;
    }
    .bg-image-1 {
    background-color: #f5f5f5;
    max-height: -50%;
}
}

@media (max-width: 768px) {
    .carousel-image-col {
        padding: 0 10px;
    }
    .bg-image-1 {
    background-color: #f5f5f5;
    max-height: -50%;
    }
    .carousel-image-col:hover .category-image,
    .carousel-image-col:hover .category-image1 {
        transform: scale(1.05); /* More subtle hover */
        position: relative;
        z-index: 10; /* Bring above other elements */
    }
    .datarows{
    margin-left: 25px;
    }

    .autoplay2 {
        overflow: visible !important; /* Override slick's overflow */
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;  /* Smaller on mobile */
        height: 35px; /* Smaller on mobile */
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1rem;   /* Smaller icon */
        height: 1rem;  /* Smaller icon */
    }
}
@media (max-width: 480px) {
    .carousel-image-col {
        padding: 0 5px;
    }
    .bg-image-1 {
    background-color: #f5f5f5;
    max-height: -30%;
}
    .datarows{
    margin-left: 25px;
}
.carousel-image-col:hover .category-image,
    .carousel-image-col:hover .category-image1 {
        transform: scale(1.05); /* More subtle hover */
        position: relative;
        z-index: 10; /* Bring above other elements */
    }

    .autoplay2 {
        overflow: visible !important; /* Override slick's overflow */
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;  /* Smaller on mobile */
        height: 35px; /* Smaller on mobile */
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1rem;   /* Smaller icon */
        height: 1rem;  /* Smaller icon */
    }
}
/* Default arrow size (desktop) */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #6c757d; /* Bootstrap's bg-secondary color */
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* Arrow icon size */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Hover effects */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background-color: #5a6268; /* Slightly darker on hover */
}
