.hero-section1 {
    position: relative;
    background: url('img/2.jpg') ;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 1.5s forwards;
}


/* Overlay */
.hero-section1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* Animation */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Text Content */
.hero-content1 {
    position: relative;
    z-index: 1;
}

.hero-content1 h1 {
    font-size: 3rem;
    font-weight: bold;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.hero-content1 p {
    font-size: 1.2rem;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Hover Effects */
.hero-content1 h1:hover {
    color: #028DD7;
    transform: scale(1.05);
}

.hero-content1 p:hover {
    color: #585858;
    transform: scale(1.02);
}

/* Breadcrumb */
.breadcrumb {
    position: absolute;
    top: 240px;
    left: 20px;
    background: transparent;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

body {
    font-family: Arial, sans-serif;
}

/* Animation keyframes */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Us section layout */
.about-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 50px 20px;
}

.about-text {
    max-width: 50%;
    text-align: left;
    opacity: 0;
    animation: fadeInLeft 1s ease-out forwards;
}

.about-description {
    max-width: 50%;
    text-align: left;
    opacity: 0;
    animation: fadeInRight 1s ease-out forwards;
}

.btn-custom {
    background-color: #b51e2e;
    color: white;
    border-radius: 5px;
    padding: 8px 16px;
    text-transform: uppercase;
    font-weight: bold;
}

.btn-custom:hover {
    background-color: #921824;
}

/* Feature Card Animation */
.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        text-align: center;
    }

    .about-text, .about-description {
        max-width: 100%;
        text-align: center;
    }
}

.custom-section {
    background: rgb(255, 255, 255);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.custom-heading {
    font-weight: bold;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards ease-in-out;
}
.custom-heading::before {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background-color: #a00;
    margin-bottom: 10px;
}
.custom-text {
    color: #666;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s forwards ease-in-out;
}
.carousel-inner img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}
.carousel-inner img:hover {
    transform: scale(1.05);
}
/* Animation for text */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* mbbs */
.custom-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards ease-in-out;
}
.custom-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}
.custom-image:hover {
    transform: scale(1.05);
}
.text-content {
    padding: 20px;
}
.custom-heading {
    font-weight: bold;
    position: relative;
}
.custom-heading::before {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background-color: #a00;
    margin-bottom: 10px;
}
.btn-custom {
    background-color: #a00;
    color: white;
    border-radius: 5px;
    padding: 8px 16px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease-in-out;
}
.btn-custom:hover {
    background-color: #800;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.program-card {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.program-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}
.program-card img:hover {
    transform: scale(1.05);
}
.program-title {
    font-weight: bold;
    margin-top: 10px;
}
.program-type {
    color: #666;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Animation trigger */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.carousel-item {
    position: relative;
    height: 500px;
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}
.carousel-item img:hover {
    transform: scale(1.05);
}
/* Heading & Text Section */
.carousel-caption {
    position: absolute;
    top: 30%;
    left: 10%;
    transform: translateY(-50%);
    text-align: left;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    max-width: 700px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    color: black;
}
.carousel-item.active .carousel-caption {
    opacity: 1;
    transform: translateY(0);
}
.carousel-caption h2 {
    color: black;  /* Heading Color */
    font-weight: bold;
}
.carousel-caption p {
    color: black;  /* Text Color */
}
/* Button Styling */
.btn-custom {
    background-color: #0B7EB9;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    margin-top: 10px;
}
.btn-custom:hover {
    background-color: #0B7EB9;
}

/* mbbs in bhopal */
.custom-container {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(50px);
    animation: fadeIn 1s ease-out forwards;
}
.custom-title {
    font-weight: bold;
    font-size: 28px;
}
.custom-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #0B7EB9;
    margin-top: 8px;
}
.custom-text {
    font-size: 16px;
    color: #555;
}

/* Image Card Styling */
.image-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.4s ease-in-out;
    opacity: 0;
    transform: scale(0.9);
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.3s;
}
.image-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease-in-out;
}
.image-card:hover img {
    transform: scale(1.1);
}
.image-card .overlay {
    position: absolute;
    bottom: 0;
    background: rgba(163, 0, 0, 0.9);
    color: white;
    width: 100%;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    opacity: 0.9;
    transition: background 0.3s ease-in-out;
}
.image-card:hover .overlay {
    background: rgba(200, 0, 0, 1);
}

/* Fade-in Animation */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


 /* Background Image */
 .admission-section {
    position: relative;
    background: url('img/2.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* White Box */
.admission-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out;
}

/* Heading Style */
.admission-box h2 {
    font-weight: bold;
}
.admission-box h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #0B7EB9;
    margin: 8px auto;
}

/* Apply Button */
.apply-btn {
    background-color: #0B7EB9;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}
.apply-btn:hover {
    background-color: #0B5ED7;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Fix */
@media (max-width: 768px) {
    .admission-section {
        height: 500px;
    }
    .admission-box {
        max-width: 90%;
        padding: 20px;
    }
}

 /* Main container */
 .custom-section {
    padding: 50px 0;
    background-color: #f8f8f8;
}

/* White Box */
.info-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Heading */
.info-box h3 {
    font-weight: bold;
}

.info-box h3::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #0B7EB9;
    margin: 8px 0;
}

/* Learn More Button */
.learn-btn {
    background-color: #0B7EB9;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.learn-btn:hover {
    background-color: #0B5ED7;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .custom-section {
        padding: 30px 15px;
    }
    .info-box {
        text-align: center;
    }
}

.about-hero {
    background: url('img/2.png') center center/cover no-repeat;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
  }

  .about-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
  }

  .about-hero h1 {
    position: relative;
    color: #fff;
    font-size: 3.5rem;
    font-weight: bold;
    z-index: 1;
    padding-top: 70px;

  }

  @media (max-width: 576px) {
    .about-hero {
      min-height: 200px;
    }

    .about-hero h1 {
      font-size: 1.8rem;
    }
  }