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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4; /* Light gray for the rest of the page */
}

.top-bar {
    background-color: #0F1725;
    padding: 8px 0;
    border-bottom: 1px solid #1a2433;
    font-size: 13px;
    color: #ffffff;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
    color: #ffffff;
}

.contact-info i {
    color: #e31e24;
    margin-right: 5px;
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar-link {
    color: #ffffff;
    text-decoration: none;
    margin-right: 25px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.top-bar-link:hover {
    color: #e31e24;
}

.social-icons a {
    color: #ffffff;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #e31e24;
}

header {
    background-color: #ffffff;
    color: #333;
    padding: 0; /* Changed to handle full-height menu items */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.logo img.main-logo {
    height: 85px;
    width: auto;
    display: block;
}

.logo img.iso-logo {
    height: 65px; /* Slightly smaller than main logo */
    width: auto;
    display: block;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid #ddd;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: static; /* Important for full-width mega menu */
}

nav ul li a {
    display: block;
    padding: 30px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

/* Red Underline Effect - Positioned exactly under text */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 22px; /* Adjusted to sit right under the text */
    left: 20px;
    right: 20px;
    height: 2px; /* Slightly thinner for a cleaner look */
    background-color: #e31e24;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav ul li:hover > a::after,
nav ul li.active > a::after {
    transform: scaleX(1);
}

nav ul li:hover > a {
    color: #e31e24;
}

/* Hero Slider Styling */
.hero-slider {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.slider-container {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 37, 0.7); /* Overlay for readability */
}

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

.slide-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.slide-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 40px;
    color: #eee;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.slide.active .animate-up {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.3s; }
.delay-2 { transition-delay: 0.6s; }

/* Slider Controls */
.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s;
}

.slider-controls button:hover {
    background: #e31e24;
}

.prev-slide { left: 30px; }
.next-slide { right: 30px; }

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #e31e24;
    width: 30px;
    border-radius: 10px;
}

.hero-btns .btn {
    padding: 15px 35px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #e31e24;
    color: #fff;
}

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

.btn-secondary {
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #0f1725;
}

/* Course Categories Navigation (Icon Section) */
.course-categories-nav {
    background-color: #f4f4f4; /* Grey background */
    padding: 40px 0;
    border-bottom: 1px solid #ddd;
}

.course-categories-nav .container {
    max-width: 1300px;
    margin: 0 auto;
    display: block;
}

.category-items {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Stretch items to full height for dividers */
    flex-wrap: nowrap; /* Keep them in one line for the divided look */
    background: #ffffff;
    border: 1.5px solid #bbb; /* Slightly thicker and darker outer border */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.category-item {
    flex: 1;
    min-width: 140px;
    padding: 30px 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Divider lines between items - now clearly visible */
.category-item:not(:last-child) {
    border-right: 1.5px solid #ccc;
}

.category-item:hover {
    background-color: #fcfcfc;
    transform: none; /* Removed lift effect for the boxed layout */
}

.category-icon {
    width: 65px;
    height: 65px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    background-color: #fff1f1; /* Light red background for icons */
}

.category-icon i {
    font-size: 28px;
    color: #e31e24; /* Brand Red */
    opacity: 0.9;
}

.category-item h3 {
    font-size: 10px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.category-item:hover .category-icon {
    background-color: #e31e24; /* Brand Red on hover */
}

.category-item:hover .category-icon i {
    color: #fff;
    opacity: 1;
}

.category-item:hover h3 {
    color: #e31e24; /* Keep red for highlight on hover */
}

/* Responsive adjustments for boxed layout */
@media (max-width: 1100px) {
    .category-items {
        flex-wrap: wrap;
    }
    .category-item {
        flex: 0 0 33.33%;
        border-bottom: 1.5px solid #ccc;
    }
    .category-item:nth-child(3n) {
        border-right: none;
    }
}

@media (max-width: 600px) {
    .category-item {
        flex: 0 0 50%;
    }
    .category-item:nth-child(2n) {
        border-right: none;
    }
}

/* Latest Thinking (Asymmetric Grid) Styling */
.courses-intro {
    padding: 40px 0 10px;
    background-color: #fff;
}

.latest-thinking {
    padding: 10px 0 30px;
    background-color: #fff;
}

.courses-intro .container,
.latest-thinking .container,
.how-to-apply .container,
.top-placements .container {
    display: block;
}

.courses-header {
    text-align: center;
    width: 100%;
    margin-bottom: 25px; /* Reduced from 40px */
}

.courses-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #0f1725;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.header-line {
    width: 60px;
    height: 3px;
    background-color: #e31e24;
    margin: 0 auto 20px;
}

.courses-header p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Axisymmetric Grid Layout (Balanced around center) */
.thinking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto); /* Increased from 200px to make items taller */
    gap: 25px;
    align-items: stretch;
}

.item-1 { grid-column: 1; grid-row: 1 / 3; } /* Tall Left */
.item-2 { grid-column: 1; grid-row: 3; }     /* Small Left */

.item-3 { grid-column: 2; grid-row: 1; }     /* Center Axis Top */
.item-4 { grid-column: 2; grid-row: 2; }     /* Center Axis Middle */
.item-5 { grid-column: 2; grid-row: 3; }     /* Center Axis Bottom */

.item-6 { grid-column: 3; grid-row: 1 / 3; } /* Tall Right */
.item-7 { grid-column: 3; grid-row: 3; }     /* Small Right */

.thinking-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.thinking-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #e31e24;
}

.thinking-bg {
    position: relative;
    width: 100%;
    flex-grow: 1; /* Allow image to fill remaining space */
    min-height: 280px; /* Increased from 200px */
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    order: 2;
}

.item-1 .thinking-bg, .item-6 .thinking-bg {
    min-height: 580px; /* Increased from 400px to match larger grid rows */
}

.thinking-tag {
    position: relative;
    display: inline-block;
    align-self: center;
    color: #e31e24;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    z-index: 2;
}

.thinking-content {
    padding: 25px;
    order: 1;
    background: #fff;
    text-align: center;
}

/* Scroll Animation Styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Top Placements Section Styling */
.top-placements {
    padding: 40px 0;
    background-color: #fff;
    overflow: hidden;
}

.placement-marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

.placement-track {
    display: flex;
    gap: 15px;
    width: max-content;
}

.track-1 {
    animation: scroll-left 40s linear infinite;
}

.track-2 {
    animation: scroll-right 45s linear infinite; /* Opposite direction & different speed */
}

.track-3 {
    animation: scroll-left 35s linear infinite; /* Faster speed */
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.placement-marquee-wrapper:hover .placement-track {
    animation-play-state: paused;
}

.placement-card {
    flex: 0 0 140px; /* Reduced from 200px */
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 160px; /* Reduced from 220px */
}

.student-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.student-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.placement-card:hover .student-image img {
    transform: scale(1.15);
    filter: brightness(0.7); /* Darken image slightly on hover */
}

.placement-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(227, 30, 36, 0.95); /* Red background on hover like the brand */
    padding: 10px 5px; /* Reduced from 20px 10px */
    text-align: center;
    color: #fff;
    transform: translateY(100%); /* Start hidden below the card */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin: 0;
}

.placement-card:hover .placement-info {
    transform: translateY(0); /* Slide up into view */
}

.placement-info h3 {
    font-size: 13px; /* Reduced from 16px */
    font-weight: 700;
    color: #fff; /* White text for contrast */
    margin-bottom: 3px; /* Reduced from 5px */
}

.placement-info p {
    font-size: 11px; /* Reduced from 13px */
    color: rgba(255, 255, 255, 0.9);
}

.placement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Responsive Adjustments for Smaller Placement Photos */
@media (max-width: 1400px) {
    .placements-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1100px) {
    .placements-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 850px) {
    .placements-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .placements-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 400px) {
    .placements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOU Section Styling */
/* Why Choose Us Section Styling */
.why-choose-intro {
    padding: 80px 0 0; /* Only top padding to keep heading close to grid */
    background-color: #f8f9fa; /* Light grey background for separation */
    border-top: 1px solid #eee; /* Added top border for separation */
}

.why-choose-us {
    padding: 40px 0 80px; /* Reduced top padding since intro is separate */
    background-color: #f8f9fa; /* Light grey background for separation */
    border-bottom: 1px solid #eee; /* Added bottom border for separation */
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 0; /* Removed margin-top since header is in intro section */
}

.why-choose-card {
    background: #ffffff; /* White card background to pop against grey */
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.why-choose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #e31e24;
}

.why-choose-icon {
    width: 80px;
    height: 80px;
    background: #fff1f1; /* Light red background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.why-choose-icon i {
    font-size: 32px;
    color: #e31e24; /* Brand Red */
}

.why-choose-card:hover .why-choose-icon {
    background: #e31e24; /* Brand Red on hover */
}

.why-choose-card:hover .why-choose-icon i {
    color: #ffffff;
}

.why-choose-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f1725;
    margin-bottom: 15px;
    line-height: 1.4;
}

.why-choose-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.why-choose-card:hover h3 {
    color: #e31e24; /* Keep red text on hover for interactive feel */
}

/* Responsive Adjustments for Why Choose Us */
@media (max-width: 1024px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
}

/* Learning Process Section */
.learning-process-intro {
    padding: 80px 0 0; /* Only top padding to keep heading close to grid */
    background-color: #ffffff;
}

.learning-process {
    padding: 40px 0 80px; /* Reduced top padding since intro is separate */
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 0; /* Removed margin-top since header is in intro section */
    position: relative;
    gap: 20px;
}

/* Connecting Line */
.process-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #f0f0f0;
    z-index: 1;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 100px;
    height: 100px;
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
}

.step-icon {
    font-size: 30px;
    color: #333;
    transition: all 0.4s ease;
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: #e31e24;
    color: #ffffff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f1725;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    max-width: 200px;
    margin: 0 auto;
}

/* Hover Effects */
.process-step:hover .step-circle {
    border-color: #e31e24;
    background-color: #fff1f1;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(227, 30, 36, 0.1);
}

.process-step:hover .step-icon {
    color: #e31e24;
    transform: scale(1.1);
}

.process-step:hover .step-content h3 {
    color: #e31e24;
}

/* Responsive Adjustments for Learning Process */
@media (max-width: 1024px) {
    .process-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .process-step {
        flex: 0 0 30%;
    }
}

@media (max-width: 768px) {
    .process-step {
        flex: 0 0 45%;
    }
}

@media (max-width: 480px) {
    .process-step {
        flex: 0 0 100%;
    }
}

/* Blogs, News & Events Section */
.blogs-news-events {
    padding: 60px 0 80px;
    background-color: #0F1725; /* Dark background like top bar */
    color: #fff;
}

.dark-header h2 {
    color: #fff !important;
}

.dark-header p {
    color: #ccc !important;
}

.left-header {
    text-align: left;
}

.left-header .header-line {
    margin-left: 0;
}

.left-header p {
    margin-left: 0;
    line-height: 1.8; /* Slightly increased for better 4-line readability */
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.news-card {
    background: #1a2433; /* Slightly lighter than section bg */
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #2a3443;
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: #e31e24;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.news-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e31e24;
    color: #fff;
    padding: 5px 15px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 1px;
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 12px;
    color: #e31e24;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.news-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #fff;
}

.news-content p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #e31e24;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 12px;
}

/* Responsive Adjustments for News */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Main Footer Styling */
.main-footer {
    background-color: #f8f9fa; /* Changed to light grey */
    color: #333; /* Dark text for light background */
    padding: 60px 0 0;
    font-family: 'Poppins', sans-serif;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0F1725;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #e31e24;
}

.about-col .footer-logo {
    height: 70px;
    margin-bottom: 20px;
}

.about-col p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    background: rgba(0,0,0,0.05); /* Light background for icons */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #333;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: #e31e24;
    color: #fff;
    transform: translateY(-3px);
}

.links-col ul {
    list-style: none;
    padding: 0;
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.links-col ul li a:hover {
    color: #e31e24;
    padding-left: 5px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-item i {
    color: #e31e24;
    font-size: 18px;
    margin-top: 3px;
}

.contact-item p {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.footer-bottom {
    background-color: #f1f1f1;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #777;
    font-size: 13px;
}

.footer-bottom-links a {
    color: #777;
    text-decoration: none;
    font-size: 13px;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #e31e24;
}

/* Responsive Adjustments for Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-bottom-links a {
        margin: 0 10px;
    }
}

.partner-logo {
    flex: 0 0 220px; /* Fixed width for logos in the track */
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s ease;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Pause animation on hover */
.partner-marquee-container:hover .partner-track {
    animation-play-state: paused;
}

/* Responsive Adjustments for MOU Section */
@media (max-width: 768px) {
    .partner-logo {
        flex: 0 0 180px;
        height: 100px;
    }
    .partner-track {
        width: calc(210px * 24);
        animation: scroll 30s linear infinite;
    }
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-210px * 12)); }
    }
}

/* Responsive Grid for Courses */
@media (max-width: 1024px) {
    .thinking-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
}

@media (max-width: 768px) {
    .thinking-grid {
        grid-template-columns: 1fr;
    }
    .item-1, .item-6 {
        grid-row: span 1;
    }
}
/* Mega Menu Styling */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: none;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

nav ul li:hover .mega-menu {
    display: block;
}

.mega-menu-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.mega-menu-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
}

.mega-menu-column h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.mega-menu-column ul {
    display: block;
}

.mega-menu-column ul li {
    margin-bottom: 10px;
}

.mega-menu-column ul li a {
    padding: 0;
    text-transform: none;
    font-weight: 400;
    color: #666;
    font-size: 14px;
}

.mega-menu-column ul li a::after {
    display: none;
}

.mega-menu-column ul li a:hover {
    color: #e31e24;
    text-decoration: underline;
}