/* Global variables and resets */
:root {
    --primary: #2b6cb0; /* Trustworthy blue */
    --secondary: #9f7aea; /* Approachable purple */
    --accent: #38a169; /* Success green for positivity */
    --dark: #2d3748; /* Softer dark for text */
    --light: #f7fafc; /* Clean, light background */
    --gray: #718096; /* Neutral gray for secondary text */
    --success: #48bb78; /* Vibrant success green */
    --warning: #ed8936; /* Warm, approachable orange */
    --white: #ffffff;
    --border: 1px solid #e2e8f0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --profile-width: 480px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Helper classes */
.hidden {
    display: none !important;
    /* 🔥 CRITICAL FIX: Prevents hidden elements (like search results overlay) from blocking clicks below them */
    pointer-events: none !important; 
}

/* ============================
   Header Styles - ULTRA ANIMATED/3D FOCUS
   ============================ */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    transition: padding 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), box-shadow 0.4s ease-in-out;
    border-bottom: 3px solid transparent;
}

/* Base padding for header content */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    position: relative;
    transform-style: preserve-3d;
}

/* Style for scrolled state */
header.scrolled .header-container {
     padding: 15px 0;
}
header.scrolled {
     box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
     border-bottom-color: var(--primary);
}


/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 14px;
    transition: var(--transition);
}

.logo:hover {
    transform: perspective(1000px) translateZ(10px) rotateX(5deg);
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.15) rotate(3deg);
    filter: brightness(1.1);
}

.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: -0.03em;
}

.nav-menu {
    display: flex;
    gap: 28px;
    align-items: center;
}

/* Animated Nav Links */
.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 10px 0;
    transform-style: preserve-3d;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s ease-out;
}

.nav-link:not(.dropdown-toggle):hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-link:hover {
    color: var(--primary);
    transform: perspective(1000px) translateZ(5px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Buttons (Retained styles for CTA buttons) */
.btn {
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(43, 108, 176, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(43, 108, 176, 0.5);
    opacity: 0.95;
}

.btn-transparent {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-transparent:hover {
    background-color: rgba(43, 108, 176, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: var(--white);
    color: var(--dark);
    border-color: var(--gray);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

.btn-lg {
    padding: 14px 30px;
    font-size: 18px;
}

/* Search Container */
.search-container {
    position: relative;
}

.search-input {
    padding: 12px 18px 12px 48px;
    border: var(--border);
    border-radius: 999px;
    font-size: 16px;
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(43, 108, 176, 0.2);
    border-color: var(--primary);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    transition: var(--transition);
}

.search-input:focus + .search-icon {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* Search results container */
.search-results-container {
    position: absolute;
    top: 100%; 
    right: 0; 
    left: auto; 
    z-index: 990;
    margin-top: 10px; 
    width: 450px; 
    max-height: 400px;
    overflow-y: auto;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: var(--border);
    padding: 8px 0;
}
.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--dark);
    transition: background-color 0.2s;
    gap: 15px;
    border-bottom: 1px solid #eee;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background-color: #f0f4f8;
}
.search-result-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.search-result-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}
.search-result-item p {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
    line-height: 1.3;
}
.course-result {
    justify-content: space-between;
}
.course-result .badge {
    flex-shrink: 0;
}
.internship-result {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.internship-result > div:first-child {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}
.search-result-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: flex-end;
    margin-top: 5px;
}
.search-action-link {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
}

/* Hamburger menu for mobile */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 9999;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@keyframes slideDown { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============================
   NAVIGATION DROPDOWN STYLES (New Structure - Request 2)
   ============================ */
.nav-item.dropdown { position: relative; }
/* Force dropdown links to look like regular nav links */
.nav-link.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.nav-link.dropdown-toggle::before { display: none; }

.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border-radius: 12px;
    padding: 10px 0;
    z-index: 1000;
    /* 3D entrance animation */
    animation: fadeIn 0.4s ease-out;
    transform-origin: top;
    transform: perspective(1000px) rotateX(-10deg);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px) perspective(1000px) rotateX(-10deg); }
    to { opacity: 1; transform: translateY(0) perspective(1000px) rotateX(0deg); }
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.dropdown-link:hover {
    background-color: #ebf8ff; /* Light blue background on hover */
    color: var(--primary);
    transform: translateX(5px) scale(1.02); /* Slight scale/shift */
}

/* Hide login/signup sections (Request 1) */
.user-profile,
#authButtons,
#authButtonsMobile,
#userProfileMobile,
.dropdown-menu,
.modal,
.modal-content,
.auth-section,
.auth-notification,
.login-link,
.signup-link,
.modal-overlay {
    display: none !important;
}

/* Remove unused mobile elements for cleaner design */
.nav-actions-mobile { display: none !important; }
.nav-link.mobile-only-link {
    display: none;
}


/* ============================
   Testimonials (Success Stories) - Auto-Scrolling Carousel (Request 5)
   ============================ */

.testimonials {
    padding: 80px 0;
    background-color: #f0f4f8; /* Light background for contrast */
}

.testimonials-grid {
    display: flex;
    overflow-x: hidden;
    /* REMOVED: scroll-snap-type: x mandatory; for smooth scroll */
    padding-bottom: 20px;
    gap: 36px;
    width: 100%;
}
.testimonial-wrapper {
     overflow: hidden;
     position: relative;
     padding-top: 30px;
}

.testimonial-card {
    flex-shrink: 0;
    /* CHANGED: Fixed width for consistent marquee look */
    min-width: 250px; 
    height: 150px; 
    background: var(--white);
    border-radius: 18px;
    padding: 30px; /* Reduced padding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* REMOVED: scroll-snap-align: start; */
    border-left: none; /* Removed left bar */
    border-bottom: 3px solid var(--secondary); /* Added bottom bar for flair */
    transform-style: preserve-3d;
    
    /* NEW: Center content for logo-like feel */
    display: flex; 
    align-items: center;
    justify-content: center;
    text-align: center;
}
.testimonial-card:hover {
    transform: perspective(1000px) translateY(-15px) rotateX(3deg);
    box-shadow: 0 20px 40px rgba(43, 108, 176, 0.2);
    border-left-color: var(--primary);
    border-bottom-color: var(--primary); /* Hover effect on new border */
}

/* NEW: Hide testimonial text to focus on image/name (user request) */
.testimonial-content p.testimonial-text {
    display: none; 
}
.testimonial-text::before {
    display: none; /* Hide large quote mark */
}

.testimonial-author {
    display: flex;
    flex-direction: column; /* Stack vertically for logo style */
    align-items: center;
    gap: 8px; /* Reduced gap */
    margin-top: 0;
    z-index: 2;
    position: relative;
    width: 100%;
}
.author-avatar {
    width: 80px; /* Increased size for focus */
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    transition: var(--transition);
    margin-bottom: 5px;
}
.author-name {
    font-weight: 700;
    font-size: 1rem; /* Smaller name */
    color: var(--primary);
}
.author-role {
    color: var(--gray);
    font-size: 0.8rem; /* Smaller role */
}


/* ============================
   Team Section - Animated Cards & LinkedIn (Request 6)
   ============================ */

.team-section {
    padding: 80px 0;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.team-member {
    background-color: var(--white);
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), box-shadow 0.4s ease, border-top-color 0.4s ease;
    text-align: center;
    overflow: hidden;
    position: relative;
    border-top: 5px solid var(--secondary);
}
.team-member:hover {
    transform: translateY(-15px) rotateX(2deg);
    box-shadow: 0 25px 50px rgba(43, 108, 176, 0.35);
    border-top-color: var(--primary);
}
.team-member-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 4px solid var(--primary);
    box-shadow: 0 0 0 5px rgba(43, 108, 176, 0.1);
}
.team-member-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: var(--dark);
}
.team-member-title {
    font-size: 1.1rem;
    color: var(--secondary);
    margin: 0 0 15px 0;
    font-weight: 500;
}
.team-member-desc {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}
.team-social-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: #0077B5; /* LinkedIn Blue */
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.team-social-link:hover {
    background-color: #005582;
    transform: scale(1.05);
}


/* ============================
   Partner Logo Marquee Fix & Animation (Request 7 & 8)
   ============================ */
.partner-logo-section {
    padding: 40px 0;
    background-color: #f7fafc;
    overflow: hidden; /* Crucial for marquee effect */
}

.logo-marquee-container {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 90px;
}

.logo-marquee {
    display: flex;
    animation: scroll-left 30s linear infinite; /* Adjust time for speed */
}

.logo-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px; /* Reduced padding slightly for tighter grouping */
    height: 90px;
    filter: none; /* Set logos to full color by default */
    opacity: 1; /* Full opacity by default */
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
    position: relative;
}

.logo-item img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1); /* Subtle initial shadow */
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    object-fit: contain;
}

.logo-item:hover {
    opacity: 1; /* Already 1 */
    filter: none; /* Already none */
}

.logo-item:hover img {
    transform: scale(1.18) rotate(2deg); /* Enhanced hover effect */
    box-shadow: 0 0 0 5px var(--secondary), 0 12px 30px rgba(159, 122, 234, 0.8); /* Purple glow */
}

/* Re-defined Marquee Animation to fix scroll issue (Request 7) */
@keyframes scroll-left {
    from { transform: translateX(0%); }
    to { transform: translateX(-100%); }
}


/* ============================
   Core Page Section Styles
   ============================ */

/* Hero Section */
.hero {
    padding: 100px 0;
    background-color: #ebf8ff; /* Very light blue background */
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    max-width: 55%;
}

.hero-heading {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-heading span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}
.hero-heading span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--secondary);
    opacity: 0.3;
    border-radius: 3px;
    transform: scaleX(1.1);
    z-index: -1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-image {
    max-width: 45%;
}

.hero-image-slider {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide {
    min-width: 100%;
    display: block;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

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

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}


/* Value Proposition Section */
.value-prop {
    padding: 80px 0;
    background-color: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.value-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 14px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 20px 40px rgba(43, 108, 176, 0.3);
}

.value-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
    display: inline-block;
    background-color: #f0f4f8;
    padding: 15px;
    border-radius: 50%;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    color: var(--primary);
    transform: rotate(10deg) scale(1.1);
}

.value-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.value-description {
    color: var(--gray);
}


/* Courses Section */
.courses {
    padding: 80px 0;
}

.courses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--primary);
}

.course-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.course-content {
    padding: 20px;
}

.course-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.course-author {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rating-stars i {
    color: #ffd700;
    font-size: 0.9rem;
}

.rating-value {
    font-weight: 600;
    color: var(--warning);
}

.course-duration {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.course-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.original-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 1rem;
}

.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.badge.free {
    background-color: var(--accent);
    color: var(--white);
}

/* Internship CTA Section */
.internships {
    padding: 80px 0;
    background-color: #ebf8ff;
}

.internship-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.internship-content {
    max-width: 50%;
}

.internship-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.internship-content p {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 30px;
}

.features-list {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.feature-icon {
    color: var(--success);
    font-size: 1.2rem;
}

.internship-image {
    max-width: 50%;
}

.internship-img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.internship-img:hover {
    transform: scale(1.02);
}


/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--gradient);
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

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

/* ============================
   Footer Styles (Request 3 & General)
   ============================ */

footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 20px 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(5, 1fr); /* 5 columns + brand column */
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-description {
    margin-bottom: 25px;
    line-height: 1.6;
}

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

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-3px) scale(1.1);
}

.footer-links-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 5px;
    display: inline-block;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
}

/* ============================
   Internal Pages (Blog, Contact, About, etc.)
   ============================ */

.page-header {
    padding: 80px 0 40px;
    background-color: #f0f4f8;
    text-align: center;
}
.page-header .section-title {
    margin-bottom: 10px;
}

.content-section {
    padding: 60px 0;
}

/* --- Contact Page Styles --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.contact-info-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}


/* --- Course Listing Page --- */
.course-filter {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: center;
}
.course-filter button {
    background-color: var(--white);
    color: var(--dark);
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
}
.course-filter button.active,
.course-filter button:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* --- Job Page --- */
.job-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--secondary);
    transition: var(--transition);
}
.job-card:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-left-color: var(--primary);
}
.job-details h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 5px;
}
.job-meta {
    font-size: 0.9rem;
    color: var(--gray);
}
.job-meta span {
    margin-right: 15px;
}
.job-actions .btn {
    padding: 10px 20px;
}

/* --- Policy/Legal Pages (Terms, Privacy, Refund) --- */
.policy-content h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
}
.policy-content h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-top: 20px;
    margin-bottom: 10px;
}
.policy-content p,
.policy-content ul {
    margin-bottom: 20px;
    color: var(--dark);
}
.policy-content ul {
    padding-left: 25px;
    list-style-type: disc;
}
.policy-content li {
    margin-bottom: 8px;
}

/* --- Internship Page Specific Styles (MODIFIED) --- */
.internship-header-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}
.test-section {
    padding: 60px 0;
}
.test-card {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e2e8f0; 
    border-bottom: 8px solid var(--secondary); 
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
}
.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(43, 108, 176, 0.05), transparent 30%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}
.test-card:hover::before {
    opacity: 1;
}
.test-card:hover {
    transform: translateY(-12px) perspective(1000px) rotateX(1deg);
    box-shadow: 0 25px 40px rgba(43, 108, 176, 0.4);
    border-bottom-color: var(--primary); 
}
.test-card img {
    height: 120px; 
    width: 120px;
    margin-bottom: 20px;
    object-fit: contain;
    transition: transform 0.4s ease;
    border-radius: 12px;
    padding: 5px; 
    background: #e6f7ff;
}
.test-card:hover img {
     transform: scale(1.05) rotate(0deg);
}
.test-card h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 800;
}
.test-card p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
    min-height: 40px;
}
.test-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.test-card-actions a {
    flex-grow: 1;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 700;
}
.test-card-actions a.btn-transparent {
    color: var(--secondary);
    border-color: var(--secondary);
}

/* Revert button stacking on wider screens to save vertical space */
@media (min-width: 769px) {
    .test-card-actions {
        flex-direction: row;
    }
}

/* ============================
   Mobile Layout Fixes (General)
   ============================ */
@media (max-width: 1024px) {

    /* Global Typography Scaling */
    .section-title {
        font-size: 2.0rem;
    }
    .hero-heading {
        font-size: 2.5rem;
    }
    .hero-description, .section-subtitle {
        font-size: 1.1rem;
    }
    .btn-lg {
        font-size: 16px;
    }

    /* Header Fixes */
    .container { padding: 0 24px; }
    
    .logo-img {
        height: 40px;
    }
    .logo-text {
        font-size: 1.8rem;
    }
    
    /* Show Hamburger Menu */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 10px 0 20px 0;
        z-index: 999;
        gap: 0;
        overflow-y: auto;
        max-height: 80vh;
    }
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        /* MODIFICATION START: Ensure all items are left-aligned */
        align-items: flex-start; 
        width: 100%;
        /* MODIFICATION END */
        gap: 0;
        overflow-y: auto;
        max-height: 80vh;
    }

    .hamburger-menu {
        display: flex;
    }
    .header-actions {
        display: none; /* Hide search/auth actions on mobile header */
    }
    
    /* FIX: Style for Home, Courses, Jobs, About */
    .nav-menu.active > a {
        display: block !important;
        width: 100%;
        text-align: left;
        padding: 12px 30px; /* Base padding for all top-level menu items */
        border-bottom: 1px solid #eee;
        margin: 0;
        font-size: 15px;
        font-weight: 700; 
        color: var(--primary); 
    }
    
    /* NEW: Explicitly style the dropdown container and toggle to match the direct links */
    .nav-menu.active .nav-item.dropdown {
        width: 100%;
        border-bottom: 1px solid #eee; /* Match main link separation */
    }
    .nav-menu.active .nav-item.dropdown .nav-link.dropdown-toggle {
        display: flex;
        width: 100%;
        padding: 12px 30px; /* Must match the direct link padding for PERFECT alignment */
        font-size: 15px;
        font-weight: 700;
        color: var(--primary);
    }
    /* --- END FIX --- */

    /* Dropdown content scaling - FIXED FOR CONSISTENCY (Nested links) */
    .nav-menu.active .dropdown-content {
        position: static;
        box-shadow: none;
        border-radius: 0;
        min-width: unset;
        padding: 0;
        animation: none;
        transform: none;
        border: none;
    }
    .nav-menu.active .dropdown-content .dropdown-link {
        /* PADDING FIX: Consistent vertical padding, slight indent via left padding for hierarchy */
        padding: 12px 30px 12px 40px; 
        font-size: 15px; 
        background-color: #f7fafc;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Remove desktop-specific links and show mobile only links */
    .nav-link:not(.mobile-only-link) {
        display: block; 
    }
    .nav-link.mobile-only-link {
        display: none; 
    }


    /* Hero Section Mobile */
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 60px 0;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-image {
        max-width: 100%;
    }
    .hero-heading {
        font-size: 2.5rem;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    /* Internship Section Mobile */
    .internship-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .internship-content {
        max-width: 100%;
    }
    .internship-content .section-title {
        text-align: center;
    }
    .features-list {
        text-align: left;
    }
    
    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .footer-brand {
        grid-column: 1 / -1; 
        text-align: center;
        max-width: 100%;
    }
    .social-links {
        justify-content: center;
    }
    .footer-links-column {
        padding: 0 10px; 
    }


    /* Contact Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }

    /* Further Global Typography Scaling for Smaller Screens */
    .section-title {
        font-size: 1.6rem; 
    }
    .hero-heading {
        font-size: 2.0rem; 
    }
    .hero-description, .section-subtitle {
        font-size: 1.0rem; 
    }
    .value-title {
        font-size: 1.3rem;
    }
    .value-card {
        padding: 30px 20px;
    }
    .test-card h3 {
        font-size: 1.3rem; /* Smallest card heading size */
    }

    /* Testimonial card sizing for mobile carousel (Request 1) */
    .testimonials-grid {
        gap: 20px;
        padding: 0 16px 20px 16px;
        margin-left: -16px;
        width: calc(100% + 32px);
        -webkit-overflow-scrolling: touch; 
    }
    .testimonial-card {
        width: 85vw;
        max-width: 400px;
        margin: 0;
    }
    .testimonial-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    }

    /* Team Section Fixes */
    .team-grid {
        grid-template-columns: 1fr;
    }
    .team-member:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    }

    /* Partner Marquee Fix */
    .logo-item {
        padding: 0 30px;
    }
}
