/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700&family=DM+Sans:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap');

/* Base Typography */
body {
    font-family: 'Roboto', sans-serif;
}

/* Headings and Navigation */
h1,
h2,
h3,
.navbar .nav-links a,
.course-head,
.student-head,
.faculty-h,
.journ-head,
.title,
.highlight {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Main Content */
p,
.content p,
.student-para,
.journ-para,
.course-card p,
.testimonial {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

/* Special Sections */
.quote,
.course-card h2 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
}

/* Team Section */
.team-member .name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.team-member .designation {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

/* Footer */
.footer {
    font-family: 'Roboto', sans-serif;
    padding: 30px 25px;
    display: flex;
    justify-content: space-between;
}

.footer h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Styles */
/*Fonts*/
@font-face {
    font-family: 'Futura';
    src: url('../fonts/Futura.ttf');
}

@font-face {
    font-family: 'Helvetica';
    src: url('../fonts/Helvetica.ttf');
}

body {
    font-family: 'Helvetica', sans-serif;
    margin: 0;
    padding: 0;
    animation: fadeIn 2s;
    width: 100%;
    max-width: 100%;
    background: #FDFDFD;
    overflow-x: hidden;
}



/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #1A237E;
    color: white;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    left: 0;
    right: 0;
    margin: 0;
    box-sizing: border-box;
}

.navbar .logo img {
    height: 160px;
    width: auto;
    margin-top: -30px;
    margin-bottom: -40px;
    margin-left: 20px;
}

.navbar .nav-links {
    display: flex;
    gap: 1.5vw;
    margin-right: auto;
    margin-left: 20px;
}

.navbar .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.5s ease-in-out;
    font-weight: 700;
    display: inline-block;
    padding: 15px 20px;
    position: relative;
}

.navbar .nav-links a::after {
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 2px;
    left: 40%;
    position: absolute;
    background: #fff;
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
}

.navbar .nav-links a:hover::after {
    width: 100%;
    left: 0;
}

.navbar .contact-btn {
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all .3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
    margin-left: auto;
}

.navbar .contact-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #E53935;
    z-index: -2;
}

.navbar .contact-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #c3312f;
    transition: all .3s;
    z-index: -1;
}

.navbar .contact-btn:hover::before {
    color: white;
    width: 100%;
}

@media (max-width: 768px) {
    .navbar .nav-links {
        gap: 20px;
    }

    .navbar .logo img {
        height: 150px;
        margin-left: 0;
    }

    .navbar .nav-links a {
        font-size: 16px;
        padding: 10px;
    }
}



/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    height: calc(75vh - 100px);
    margin: 0;
    padding: 0;
    margin-top: 100px !important;
    overflow: hidden;
    left: 50%;
    transform: translateX(-50%);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.carousel-item {
    flex: 0 0 100%;
    height: 100%;
    width: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicators span {
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicators span.active {
    background-color: #1A237E;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.carousel-control i {
    font-size: 24px;
    color: white;
}

.carousel-control.prev {
    left: 180px;
}

.carousel-control.next {
    right: 180px;
}

/* Content Styles */
.content {
    padding: 20px;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.title {
    font-family: 'Futura';
    font-size: 50px;
    color: #1C3F93;
    font-weight: bolder;
    text-align: left;
    margin-bottom: 10px;
    margin-left: 30px;
    line-height: 1.1;
}

.different {
    position: relative;
    display: inline-block;
    background: linear-gradient(45deg, #1A237E, #9868E0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.different::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -4px;
    width: calc(100% + 8px);
    height: 8px;
    background: linear-gradient(to right,
            rgba(152, 104, 224, 0.3) 0%,
            rgba(152, 104, 224, 0.8) 40%,
            rgba(152, 104, 224, 1) 100%);
    clip-path: polygon(0 35%,
            100% 0,
            100% 100%,
            0 65%);
    transform: rotate(-1deg);
    border-radius: 4px;
    box-shadow:
        0 0 2px rgba(152, 104, 224, 0.3),
        0 0 4px rgba(152, 104, 224, 0.2);
}

.text-image {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
}

.text-container {
    flex: 1;
    margin-top: 50px !important;
}

.text-image img {
    width: 650px;
    height: 400px;
    object-fit: cover;
    margin-top: 50px;
}

.content p,
.content ol li {
    font-size: 18px;
    text-align: justify;
    margin: 15px 0;
    margin-right: 10px;
    font-optical-sizing: auto;
}

@media (min-width: 769px) {
    .text-image img {
        margin-right: 30px;
    }

    .content p,
    .content ol li {
        margin: 20px 30px;
    }
}

.text-image p {
    font-size: 20px;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
    text-align: justify;
    width: 90%;
}

.highlight {
    font-size: 42px;
    font-family: 'Futura';
    font-weight: bold;
    margin: 40px 0;
}

.content ul {
    list-style-type: none;
    font-size: 24px;
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.content ul li {
    margin-bottom: 0;
    padding: 15px;
    color: white;
    list-style: none;
    flex: 1;
    text-align: center;
    position: relative;
}

/* Background colors for each list item */
.content ul li:nth-child(1) {
    background: #1A237E;
    /* Primary color */
}

.content ul li:nth-child(2) {
    background: #283593;
    /* Darker shade */
}

.content ul li:nth-child(3) {
    background: #3949AB;
    /* Another shade */
}

.content ul li:nth-child(4) {
    background: #5C6BC0;
    /* Light shade */
}

.content .feat-image {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.content .feat-image img {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    top: -10px;
}


/* Courses Styles */
.courses {
    text-align: center;
    font-size: 80px;
    margin: 20px 0;
}

.courses .course-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px;
}

.courses .course-list div {
    width: 350px;
    height: 220px;
    background-color: #E0E0E0;
    border-radius: 10px;
    margin: 20px;
}

/* Responsive styles */
.courses .course-list .course-button {
    font-size: 24px;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(45deg,
            rgba(97, 162, 242, 0.2) 0%,
            rgba(152, 104, 224, 0.2) 50%,
            rgba(97, 162, 242, 0.2) 100%);
    background-size: 200% 200%;
    color: #1A237E;
    font-weight: 700;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(152, 104, 224, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    position: relative;
    animation: gradientMove 8s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.courses .course-list .course-button:hover {
    background: linear-gradient(45deg,
            rgba(97, 162, 242, 0.4) 0%,
            rgba(152, 104, 224, 0.4) 50%,
            rgba(97, 162, 242, 0.4) 100%);
    background-size: 200% 200%;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px #9868E0;
    border-color: rgba(152, 104, 224, 0.4);
    animation: gradientMove 4s ease infinite;
}

.courses .course-list .course-button span {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.courses .course-list .course-button:hover {
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.2);
    cursor: pointer;
}

.courses .course-list .course-button:hover span {
    color: white;
}

/* Adjust layout for smaller screens */
@media (max-width: 768px) {
    .carousel {
        height: calc(80vh - 60px);
        margin-top: 50px !important;
    }

    .courses .course-list div {
        width: 300px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .courses .course-list div {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .text-image {
        flex-direction: column;
        padding: 0;
    }

    .text-image div {
        margin-right: 0;
        padding: 10px;
    }

    .text-image img {
        width: 100%;
        max-width: 300px;
        margin-top: 20px;
    }

    .content p {
        margin-right: 20px;
        margin-left: 20px;
        font-size: 18px;
        text-align: justify;
        padding: 0;
    }
}

/* Testimonials Styles */
.testimonial-cont {
    background: #ececec;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: -40px;
    width: 100%;
    max-width: 100vw;
}

@media (max-width: 768px) {
    .highlight {
        font-size: 32px;
    }

    .content ul li {
        font-size: 20px;
    }

    .testimonial-heading h2 {
        font-size: 32px;
    }
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.testimonials {
    display: flex;
    transition: transform 0.5s ease-in-out;
    perspective: 1000px;
    overflow: visible;
    padding-top: 75px;
    padding-bottom: 75px;
}

.testimonial-card {
    flex: 0 0 calc(33.33% - 20px);
    min-width: calc(33.33% - 20px);
    margin: 0 10px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(152, 104, 224, 0.2);
    transition: all 0.3s ease;
    transform: scale(0.9);
    opacity: 0.7;
    border: 1px solid transparent;
}

.testimonial-card.center-card {
    transform: scale(1.1);
    opacity: 1;
    z-index: 2;
    box-shadow: 0 8px 30px rgba(152, 104, 224, 0.4);
    border: 2px solid #9868E0;
}

/* Mobile testimonial styles */
@media (max-width: 768px) {
    .testimonials {
        height: 500px;
        padding-bottom: 0;
    }

    .testimonial-card {
        position: absolute;
        width: 100vw;
        max-width: 100vw;
        opacity: 0;
        visibility: hidden;
        padding: 20px;
        box-sizing: border-box;
        left: 0;
        right: 0;
        margin: 0;
        transition: none;
        transform: none;
        box-shadow: 0 4px 20px rgba(152, 104, 224, 0.2);
        border: 1px solid transparent;
    }

    .testimonial-card.center-card {
        opacity: 1;
        visibility: visible;
        z-index: 2;
        transform: none;
        box-shadow: 0 8px 30px rgba(152, 104, 224, 0.4);
        border: 2px solid #9868E0;
    }
}

.client-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
}

.client-name {
    font-size: 20px;
    margin: 10px 0;
}

.client-desig {
    font-size: 16px;
    color: #555;
}

.courses-divider {
    height: 2px;
    background-color: #1A237E;
    margin: 40px 0;
}

.course-head,
.faculty-h,
.student-head,
.journ-head {
    font-family: 'Futura';
    font-size: 42px;
    font-weight: bold;
    color: #1A237E;
    text-align: center;
    position: relative;
    padding-top: 50px;
    padding-bottom: 30px;
}

.course-head {
    padding-top: 50px;
}

.fac-head,
.student-head,
.journ-head {
    padding-top: 180px;
}

.first {
    padding-top: 180px;
}

.course-cont {
    display: flex;
    overflow-x: auto;
    /* Each section scrolls independently */
    scroll-snap-type: x mandatory;
    /* Enables snap scrolling for each course */
    gap: 20px;
    padding: 10px 0;
}

.course-slide {
    flex: 0 0 100%;
    /* Each slide takes up full width within the section */
    scroll-snap-align: start;
    /* Align each slide to the start of the scroll */
    box-sizing: border-box;
    padding: 0 20px;
}

.course-cont h2 {
    font-size: 22px;
    font-weight: bold;
    color: #000000;
    margin-left: 20px;
    margin-bottom: 20px;
    text-align: left;
    padding-top: 20px;
}

.course-cont .content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-left: 20px;
}

.course-cont .text-section {
    width: 60%;
    text-align: left;
}

.course-cont p {
    margin: 0 0 20px 0;
}

.course-cont img {
    width: 32%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    margin-top: 20px;
    margin-left: 80px;
}


.course-cont .course-slide:nth-child(odd) {
    background-color: white;
    color: black;
}

.course-cont .course-slide:nth-child(even) {
    background-color: #3949AB;
    color: white;
}

.course-cont .course-slide:nth-child(even) h2 {
    color: white;
}



.team-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 20px;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    position: relative;
    overflow: hidden;
}

.image-container {
    overflow: hidden;
    /* Contains the zoomed image */
    border-radius: 8px;
    width: 300px;
    /* Match your original image width */
    height: 300px;
    /* Match your original image height */
    margin-bottom: 10px;
}

.highlighted .image-container {
    width: 400px;
    height: 400px;
}

.center-single .image-container {
    width: 350px;
    height: 350px;
}

.team-member img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.1);
}

.name,
.designation {
    margin: 0px 0;
    font-size: 18px;
}

.name {
    margin-top: 15px;
    font-weight: bold;
    color: #1A237E;
}

/* Responsive design remains the same */
@media (max-width: 768px) {
    .team-member:hover img {
        transform: scale(1.05);
    }
}

.team-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: auto;
}

.name,
.designation {
    margin: 0px 0;
    font-size: 18px;
}

.name {
    font-family: 'Futura';
    font-weight: 700;
    color: #1A237E;
}

.designation {
    width: 200px;
}

.center-single img {
    width: 300px;
    height: 300px;
}

.techc {
    grid-template-columns: repeat(3, 1fr);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .highlighted {
        flex-direction: column;
        align-items: center;
    }

    .team-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.highlighted {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.center-single {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 600px) {

    .highlighted,
    .team-row {
        grid-template-columns: 1fr;
        justify-content: center;
    }
}

.testimonial-heading {
    font-family: 'Futura';
    text-align: center;
    margin: 20px 0;
}

.testimonial-heading h2 {
    font-size: 42px;
    font-weight: bold;
    color: #1A237E;
    margin-bottom: 10px;
}

.testimonial {
    font-size: 18px;
    color: #555;
    /* Slightly darker text for readability */
}

.rating {
    font-size: 16px;
    color: #FFD700;
    /* Golden color for stars */
    margin: 10px 0;
}

.rating i {
    margin: 0 2px;
}

@media screen and (max-width: 768px) {

    .content,
    .courses,
    .testimonial-cont {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }


    .content>*,
    .courses>*,
    .testimonial-cont>* {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .text-image {
        padding: 15px;
    }

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

}

/*Student Page*/
.quote {
    text-align: center;
    margin: auto;
    font-size: 28px;
    font-style: italic;
    font-weight: 700;
    width: 70%;
    padding-bottom: 20px;
    margin-bottom: 0;
}

.student-cont {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin: 30px auto;
    max-width: 1200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.student-cont::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: radial-gradient(900px circle at var(--glow-position),
            rgba(152, 104, 224, 0.15),
            transparent 45%);
    z-index: 1;
    opacity: 1;
}

.student-cont:nth-child(odd)::before {
    --glow-position: 20% 20%;
}

.student-cont:nth-child(even)::before {
    --glow-position: 80% 20%;
}

.student-cont:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(152, 104, 224, 0.3);
}

.student-para,
.image-container-stu {
    position: relative;
    z-index: 2;
}

.student-para {
    width: 55%;
    font-size: 24px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.image-container-stu {
    width: 45%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 250px);
    gap: 10px;
    margin-left: 40px;
}

.image-container-stu img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.image-container-stu img:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.image-container-stu img:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.image-container-stu img:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.student-cont:nth-child(even) {
    flex-direction: row-reverse;
}

.student-cont:nth-child(even) .image-container-stu {
    margin-left: 0;
    margin-right: 40px;
}

@media (max-width: 768px) {
    .student-cont {
        flex-direction: column;
        margin: 40px auto;
        padding: 20px;
    }

    .student-cont:hover {
        transform: translateY(-5px);
    }

    .student-cont:nth-child(even) {
        flex-direction: column;
    }

    .student-para,
    .image-container-stu {
        width: 100%;
        margin: 0 !important;
    }

    .student-para {
        margin-bottom: 20px !important;
    }

    .image-container-stu {
        grid-template-rows: repeat(2, 200px);
    }
}

/*My Journey*/
/* Container for text and image grid */
.content-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Aligns the content vertically at the top */
    gap: 10px;
    padding: 20px;
    margin-top: 0px;
}

.text-section {
    flex: 1;
    max-width: 45%;
    overflow: hidden;
    margin-left: 20px;
}

.journ-para {
    font-size: 20px;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
}

.pinterest-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two columns */
    grid-template-rows: repeat(auto-fill, minmax(0, 1fr));
    /* Ensures consistent row heights */
    gap: 15px;
    max-width: 50%;
    height: 100%;
    align-self: stretch;
    /* Stretch to match the height of the text-section */
    margin-right: 30px;
}

/* Styles for individual grid images */
.pinterest-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures images cover the grid space without distortion */
    border-radius: 8px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .content-container {
        flex-direction: column;
    }

    .text-section {
        max-width: 100%;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .pinterest-grid {
        max-width: 100%;
        /* Allow full width on mobile */
        grid-template-columns: 1fr 1fr;
        /* Maintain two columns */
        margin: 15px 0;
        /* Adjust margins for mobile */
        height: auto;
        /* Allow height to adjust based on content */
    }

    .pinterest-grid img {
        height: 200px;
        /* Fixed height for consistent look on mobile */
    }

    .journ-para {
        padding-left: 20px;
        padding-right: 20px;
        margin-left: 0 !important;
        /* Override any existing margins */
        margin-right: 0 !important;
        width: 100%;
        box-sizing: border-box;
    }
}


/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #7d4bc4, #6a2c91);
    /* Subtle gradient from #7d4bc4 to #6a2c91 */
    padding: 30px 25px;
    display: flex;
    justify-content: space-between;
    color: white;
}

.footer .column {
    width: 20%;
}

.footer .column ul {
    list-style-type: disc;
    padding-left: 20px;
}

.footer .column-text {
    margin-top: 20px;
    font-size: 25px;
    justify-content: center;
    flex: 1;
    padding: 0 15px;
    font-family: 'Helvetica';
}

.column-text h3 {
    margin-bottom: 20px;
}

.column-text ul li {
    margin-top: 10px;
    list-style: none;
}

.column-text ul li a {
    text-decoration: none;
    color: rgb(243, 243, 243);
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.column-text ul li a:hover {
    color: black;
    transform: scale(1.05);
}

.column-text:nth-child(1) {
    border-right: 2px solid #ccc;
}

.footer .address {
    text-align: right;
}

.footer .address h3 {
    font-size: 20px;
    text-align: right;
}

.footer .socials {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.footer .socials i {
    margin-top: 10px;
    font-size: 22px;
    color: white;
    transition: transform 0.2s ease;
}

.footer .socials i:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer .column-text {
        width: 100%;
        margin-top: 0px;
        padding: 10px;
        padding-bottom: 20px;
        border-right: none;
        border-bottom: 2px solid #ccc;
        margin-bottom: 20px;
    }

    .footer .column-text:last-child {
        border-bottom: none;
    }
}

h1,
h2,
h3,
p {
    line-height: 1.4;
    word-wrap: break-word;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

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

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

h1 {
    font-size: 52px;
}

p {
    font-size: 24px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    .testimonial-heading h2,
    .journ-head,
    .student-head,
    .course-head {
        font-size: 36px;
    }

    p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 32px;
    }

    .testimonial-heading h2,
    .journ-head,
    .student-head,
    .course-head {
        font-size: 30px;
    }

    p {
        font-size: 18px;
        line-height: 1.5;
    }

    .column-text h3,
    .address h3 {
        font-size: 24px;
    }

    .column-text ul li {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* Navbar Styles */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    gap: 15px;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

/* Hide nav-links on mobile */
@media (max-width: 1100px) {
    .logo {
        margin-left: -20px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #1A237E;
        width: 100%;
        position: absolute;
        top: 60px;
        right: 0;
        max-height: 0;
        opacity: 0;
    }

    .nav-links.show {
        display: flex;
        margin-top: 20px;
        padding-bottom: 10px;
        max-height: 400px;
        opacity: 1;
    }

    .nav-links a {
        padding: 15px;
        width: 100%;
        text-align: right;
        border-top: 1px solid white;
    }

    .hamburger {
        display: block;
        margin-left: 20px;
        font-size: 30px;
    }

    .contact-btn {
        padding: 12px;
        font-size: 12px;
    }
}

/* Show nav-links and hide hamburger on larger screens */
@media (min-width: 1100px) {
    .nav-links {
        display: flex;
        opacity: 1;
    }

    .hamburger {
        display: none;
    }
}


/* Footer */
.footer {
    background-color: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer .column {
    width: 20%;
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer .column {
        width: 100%;
        margin-bottom: 20px;
    }
}

.carousel,
.content,
.testimonial-cont {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 100%;
    }
}

@media (max-width: 768px) {

    .content,
    .footer {
        padding: 10px;
    }

    .contact-btn {
        font-size: 16px !important;
        text-align: center;
        padding: 15px;
        width: 100px !important;
    }

    .title {
        font-size: 40px;
        margin-left: 0;
    }

    .sec {
        font-size: 50px !important;
    }

    .course-cont h2 {
        font-size: 28px;
    }

    .journ-head,
    .fac-head {
        padding-top: 120px;
    }

    .course-head,
    .fac-head {
        font-size: 32px;
    }

    .course-cont p {
        font-size: 20px;
        text-align: left;
    }

    .course-cont .text-section {
        width: 100%;
    }

    .course-cont img {
        width: 100%;
        margin-left: 0;
        margin-top: -20px;
        margin-bottom: 20px;
    }
}

.testimonial-cont {
    padding-top: 10px;
    padding-bottom: 50px;
}

.courses {
    text-align: center;
    margin: 0;
    padding: 0;
}

.strong {
    font-weight: 700;
}

.course-section {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
}

.course-cont {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: center;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.course-card {
    position: relative;
    flex: 0 1 calc(33.333% - 40px);
    min-width: 380px;
    max-width: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 30px;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    background: radial-gradient(800px circle at 90% 90%,
            rgba(152, 104, 224, 0.15),
            transparent 45%);
    z-index: 1;
    opacity: 1;
}

/* Ensure content stays above the glow */
.image-container,
.card-content {
    position: relative;
    z-index: 2;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(152, 104, 224, 0.2);
}

/* Smooth transition for the image on hover */
.course-card .image-container img {
    transition: transform 0.3s ease;
}

.course-card:hover .image-container img {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .course-card:hover {
        transform: translateY(-5px);
        /* Smaller lift on mobile */
    }
}

/* Updated image container styles */
.image-container {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 0;
    /* Remove any potential line height spacing */
    font-size: 0;
    /* Remove any potential font spacing */
}

/* Updated image styles */
.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
    display: block;
}

.card-content {
    padding: 20px;
    flex: 1;
    margin: 0;
}

.card-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1A237E;
    padding: 0;
    /* Remove any padding */
    margin-left: 0;
    /* Remove left margin */
}

.card-content p {
    margin: 0;
    /* Reset margins */
    padding: 0;
    /* Reset padding */
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    /* Add space between paragraph and Read More link */
}

.key-features {
    margin-top: 15px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-in-out;
}

.key-features.expanded {
    max-height: 1000px;
}

.read-more {
    color: #9868E0;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    margin-top: 10px;
}

/* Optional: Add hover effect for better interactivity */
.read-more:hover {
    color: #7d4bc4;
    /* Slightly darker shade for hover state */
}

@media (max-width: 1800px) {
    .course-card {
        flex: 0 1 calc(50% - 30px);
        max-width: 500px;
    }
}

@media (max-width: 1000px) {
    .course-card {
        flex: 0 1 calc(100% - 20px);
        min-width: 300px;
        max-width: 600px;
    }
}

/* Fix the large gap at the top in mobile view */
@media (max-width: 768px) {

    /* Fix mobile image display */
    .course-card {
        width: 100%;
        min-width: unset;
    }

    .image-container {
        width: 100%;
        height: 200px;
    }

    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }

    .card-content {
        width: 100%;
        padding: 20px;
    }
}

/* Keep all existing desktop styles the same */

/* Update only mobile styles */
@media screen and (max-width: 768px) {

    .course-cont {
        padding: 0;
        gap: 30px;
        width: 100%;
    }

    .course-card {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        width: 100vw;
        border-radius: 0;
    }

    /* Reset image container styles for mobile */
    .image-container {
        position: static;
        width: 100vw;
        height: 200px;
        overflow: hidden;
        margin: 0;
        padding: 0;
        left: 0;
        right: 0;
    }

    /* Reset image styles for mobile */
    .image-container img {
        position: static;
        display: block;
        width: 100vw;
        height: 100%;
        object-fit: cover;
        margin: 0;
        padding: 0;
    }

    .card-content {
        padding: 20px;
        width: 100%;
    }
}

/* Faculty page styles */
.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    position: relative;
    overflow: hidden;
}

.team-member img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* Different sizes for different sections */
.highlighted .team-member img {
    width: 350px;
    height: 350px;
}

.center-single .team-member img {
    width: 300px;
    height: 300px;
}

.techc .team-member img {
    width: 250px;
    height: 250px;
}

/* Hover effect */
.team-member:hover img {
    transform: scale(1.1);
}

.name,
.designation {
    margin: 0px 0;
    font-size: 18px;
}

.name {
    margin-top: 15px;
    font-weight: bold;
    color: #1A237E;
}

/* Responsive design */
@media (max-width: 768px) {
    .team-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-member img {
        width: 250px;
        height: 250px;
    }

    .highlighted .team-member img {
        width: 250px;
        height: 250px;
    }

    .center-single .team-member img {
        width: 220px;
        height: 220px;
    }

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

    .name,
    .designation {
        width: 100%;
    }
}

/* Only add mobile-specific changes */
@media (max-width: 768px) {
    .title {
        margin-bottom: 20px;
        /* Reduce bottom margin of title */
    }

    .carousel {
        margin-top: 20px !important;
        /* Reduce space between title and carousel */
        height: auto;
        aspect-ratio: 16/9;
    }

    /* Keep carousel controls */
    .carousel-control {
        width: 30px;
        height: 30px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        z-index: 10;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .carousel {
        margin-top: 60px !important;
    }

    .carousel-control {
        width: 30px;
        height: 30px;
    }

    .carousel-control i {
        font-size: 16px;
    }

    .carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }

    .carousel-indicators span {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 768px) {

    .course-list .course-button {
        font-size: 20px;
        padding: 15px 20px;
        /* Optional: adjust padding if needed */
    }
}

@media (max-width: 480px) {
    .course-list a {
        font-size: 14px;
    }

    .course-list .course-button {
        font-size: 18px;
        padding: 12px 16px;
    }
}

@media (max-width: 768px) {
    /* ... existing mobile styles ... */

    /* Title sizes */
    .highlight {
        font-size: 48px;
        margin: 30px 0;
    }

    .testimonial-heading h2,
    .journ-head,
    .student-head,
    .course-head,
    .faculty-h {
        font-size: 42px !important;
        padding-top: 40px;
        padding-bottom: 20px;
    }


    /* Title with different class */
    .title {
        font-size: 48px;
        margin-left: 15px;
    }

    /* Quote size */
    .quote {
        width: 85%;
        padding-bottom: 30px;
    }

    .fac-head,
    .journ-head,
    .student-head {
        margin-top: 60px;
    }
}

@media (max-width: 480px) {

    /* Even smaller screens */
    .highlight {
        font-size: 42px;
    }

    .testimonial-heading h2,
    .journ-head,
    .student-head,
    .course-head,
    .faculty-h {
        font-size: 36px !important;
    }

    .title {
        font-size: 42px;
    }

    .quote {
        font-size: 24px;
        width: 90%;
    }
}

@media (max-width: 768px) {

    .testimonial-card.center-card {
        transform: scale(1);
        opacity: 1;
        visibility: visible;
        position: relative;
    }

    .testimonials {
        padding-top: 40px;
        position: relative;
        height: 300px;
        /* Adjust based on your content */
        overflow: visible;
    }

    /* Container adjustments */
    .testimonial-cont {
        padding: 20px 15px;
        overflow: hidden;
    }

    /* Ensure text is readable */
    .testimonial {
        font-size: 16px;
        line-height: 1.5;
    }

    .client-name {
        font-size: 18px;
    }

    .client-desig {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .testimonials {
        height: 350px;
        /* Adjust if needed for smaller screens */
    }
}

@media (max-width: 768px) {
    .testimonial-heading {
        margin-bottom: 20px;
        /* Reduced gap */
        padding-bottom: 0;
        margin-top: -60px;
    }

    .testimonial-heading h2 {
        margin-bottom: 10px;
    }

    .testimonial-heading .quote {
        margin-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .testimonials-slider {
        width: 100%;
        overflow: hidden;
        padding: 0;
        padding-bottom: 40px;
    }

    .testimonials {
        position: relative;
        height: 600px;
        display: flex;
        justify-content: center;
        align-items: center;
        touch-action: pan-x;
        padding: 0;
    }

    .testimonial-card {
        position: absolute;
        width: 85%;
        min-width: 300px;
        height: 500px;
        opacity: 0;
        visibility: hidden;
        padding: 30px;
        box-sizing: border-box;
        left: 0;
        right: 0;
        margin: 0 auto;
        box-shadow: 0 8px 30px rgba(152, 104, 224, 0.4);
        border: 2px solid #9868E0;
        background: #fff;
        border-radius: 10px;
        overflow-y: auto;
    }

    .testimonial-card.center-card {
        opacity: 1;
        visibility: visible;
        z-index: 2;
        position: relative;
    }
}

@media (max-width: 480px) {
    .testimonials {
        height: 500px;
    }
}

@media (max-width: 768px) {

    /* Reduce gap between About title and carousel */
    .first {
        padding-top: 100px;
    }

    /* Fix carousel buttons */
    .carousel-control {
        width: 30px;
        height: 30px;
        background: rgba(255, 255, 255, 0.8);
        /* Add background for better visibility */
        border-radius: 50%;
        z-index: 10;
        /* Ensure buttons are above content */
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }

    .carousel-control i {
        font-size: 16px;
        color: #000;
        /* Make arrows more visible */
    }
}

.aditya-container,
.shazmin-container {
    display: flex;
    width: 100%;
}

.aditya-container .student-para,
.shazmin-container .student-para {
    flex: 1;
    padding-right: 20px;
}

.aditya-container .image-container-stu,
.shazmin-container .image-container-stu {
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 40px;
}

.aditya-container .image-container-stu img,
.shazmin-container .image-container-stu img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* Grid positioning */
.aditya-container .image-container-stu img:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.aditya-container .image-container-stu img:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {

    .aditya-container,
    .shazmin-container {
        flex-direction: column;
    }

    .aditya-container .student-para,
    .shazmin-container .student-para,
    .aditya-container .image-container-stu,
    .shazmin-container .image-container-stu {
        width: 100%;
        margin-left: 0;
        padding-right: 0;
    }

    .aditya-container .image-container-stu img,
    .shazmin-container .image-container-stu img {
        height: 150px;
    }
}

/* Haya - 2 columns side by side */
.haya-container {
    display: flex;
    width: 100%;
}

.haya-container .student-para {
    flex: 1;
    padding-right: 20px;
}

.haya-container .image-container-stu {
    width: 45%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-left: 40px;
}

.haya-container .image-container-stu img {
    width: 100%;
    height: 510px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* Grid positioning */
.haya-container .image-container-stu img:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.haya-container .image-container-stu img:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .haya-container {
        flex-direction: column;
    }

    .haya-container .student-para,
    .haya-container .image-container-stu {
        width: 100%;
        margin-left: 0;
        padding-right: 0;
    }

    .haya-container .image-container-stu {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .haya-container .image-container-stu img {
        width: 100%;
        height: 250px;
    }
}

.shaijunissa-container {
    display: flex;
    width: 100%;
}

.shaijunissa-container .student-para {
    flex: 1;
    padding-right: 20px;
}

.shaijunissa-container .image-container-stu {
    width: 45%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    margin-left: 40px;
}

.shaijunissa-container .image-container-stu img {
    width: 100%;
    height: 510px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .shaijunissa-container {
        flex-direction: column;
    }

    .shaijunissa-container .student-para,
    .shaijunissa-container .image-container-stu {
        width: 100%;
        margin-left: 0;
        padding-right: 0;
    }

    .shaijunissa-container .image-container-stu img {
        height: 150px;
    }
}

/* Mobile responsiveness for all student containers */
@media (max-width: 768px) {

    .aditya-container,
    .shazmin-container,
    .shaijunissa-container,
    .haya-container {
        flex-direction: column;
    }

    .aditya-container .student-para,
    .shazmin-container .student-para,
    .shaijunissa-container .student-para,
    .haya-container .student-para,
    .aditya-container .image-container-stu,
    .shazmin-container .image-container-stu,
    .shaijunissa-container .image-container-stu,
    .haya-container .image-container-stu {
        width: 100%;
        margin-left: 0;
        padding-right: 0;
    }

    .aditya-container .image-container-stu img,
    .shazmin-container .image-container-stu img,
    .shaijunissa-container .image-container-stu img,
    .haya-container .image-container-stu img {
        width: 100%;
        height: 250px;
        /* Match Haya's container height */
    }

    .aditya-container .image-container-stu,
    .shazmin-container .image-container-stu,
    .shaijunissa-container .image-container-stu,
    .haya-container .image-container-stu {
        display: flex;
        flex-direction: column;
        gap: 10px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .journ-para {
        padding-left: 10px;
        padding-right: 20px;
        margin-left: 0 !important;
        /* Override any existing margins */
        margin-right: 0 !important;
        width: 100%;
        box-sizing: border-box;
        text-align: justify;
    }
}

.copyright-bar {
    background-color: white;
    /* Match the gradient's darker color */
    text-align: center;
    /* Center the text */
    padding: 1px 0;
    /* Add some padding */
    color: #1A237E;
    /* Set text color to white */
    font-size: 14px;
    /* Match the reduced size */
}

/* Footer Content Size Reduction */
.footer {
    padding: 30px 25px;
}

/* Target all text elements in footer */
.footer * {
    font-size: 24px !important;
    /* Force size reduction */
}

/* Specific sizes for different elements */
.footer h3 {
    font-size: 22px !important;
    /* Slightly larger for headers */
}

.footer ul li,
.footer ul li a,
.footer ul li strong,
.footer .column-text ul li,
.footer .column-text ul li strong,
.footer .address ul li {
    font-size: 18px !important;
}

.footer .socials a {
    font-size: 30px !important;
    /* Keep social icons slightly larger */
}

.copyright-bar p {
    font-size: 18px !important;
}