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

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Remove ALL top/bottom padding */
    background-color: #0d6985;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    height: auto; /* Let height be determined by content */
}
  
.logo {
    display: flex;
    align-items: center;
    margin: 0; /* Remove ALL margins */
    padding: 0; /* Remove ALL padding */
    line-height: 0; /* Remove line height spacing */
    margin-left: -19px;
}
  
.logo img {
    height: 90px; /* Further reduced height */
    margin: 7px; /* Remove ALL margins */
    padding: 0; /* Remove ALL padding */
    vertical-align: top; /* Align to top */
    display: block; /* Block display removes extra space */
    border-radius: 20px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}
  
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff9800;
}

.nav-links a.active-link {
    color: #ff9800;
    font-weight: 600;
}

.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}
  
.dropbtn {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s;
    cursor: pointer;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
  
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #0d6985;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    right: 0;
}
  
.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
  
.dropdown-content a:last-child {
    border-bottom: none;
}
  
.dropdown-content a:hover {
    background-color: #0a546a;
    color: #ff9800;
}
  
.dropdown:hover .dropdown-content {
    display: block;
}
  
.dropdown:hover .dropbtn {
    color: #ff9800;
}

/* Hide mobile-only links on desktop */
.mobile-only-links {
    display: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 36, 36, 0.7);
}

.hero-text {
    position: absolute;
    color: #fff;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.sub-tagline {
    font-size: 1.2rem;
    color: #ffe600;
    margin-top: 10px;
}

/* About Container */
.about-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.about-heading {
    text-align: center;
    margin-bottom: 50px;
}

.about-heading h2 {
    font-size: 2.5rem;
    color: #0d6985;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.about-heading h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ff9800;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}





/* Footer */
.footer {
    background-color: #111;
    color: #fff;
    padding: 40px 20px 20px;
    font-family: 'Segoe UI', sans-serif;
}
  
.footer_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}
  
.footer_about,
.footer_links,
.footer_social,
.footer_newsletter {
    flex: 1 1 220px;
    min-width: 200px;
}
  
.footer h2,
.footer h3 {
    margin-bottom: 10px;
    color: #ff8c00;
}
  
.footer_links ul {
    list-style: none;
    padding: 0;
}
  
.footer_links li {
    margin: 8px 0;
}
  
.footer_links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}
  
.footer_links a:hover {
    color: #fff;
}
  
.social_icons a img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    filter: brightness(0.8);
    transition: filter 0.3s;
}
  
.social_icons a {
    font-size: 20px;
    color: #ccc;
    margin-right: 15px;
    transition: color 0.3s;
}
  
.social_icons a:hover {
    color: #ff8c00;
}
  
.footer_newsletter input[type="email"] {
    padding: 10px;
    width: 100%;
    max-width: 250px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
}
  
.footer_newsletter button {
    padding: 10px 20px;
    background-color: #ff8c00;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}
  
.footer_newsletter button:hover {
    background-color: #ffa733;
}
  
.footer_bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px;
    color: #aaa;
}

.mobile-section-title {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    font-weight: 600;
    color: #ff9800;
    text-align: left;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}





/* Make all dropdown menu items behave similarly */
.nav-links .dropdown {
    position: relative;
    display: inline-block;
}
  
/* Special styling for Courses dropdown */
.courses-dropdown .dropdown-content {
    min-width: 250px;
    left: 0;
    right: auto;
}
  
.courses-dropdown .dropdown-content {
    min-width: 250px;
    left: 0;
    right: auto;
}
  
/* Mobile Dropdown Styles */
.mobile-dropdown {
    width: 100%;
}
  
.mobile-dropdown-header {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
  
.mobile-dropdown-header:hover,
.mobile-dropdown-header.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ff9800;
}
  
.mobile-dropdown-header i {
    transition: transform 0.3s ease;
}
  
.mobile-dropdown-header.active i {
    transform: rotate(180deg);
}
  
.mobile-dropdown-content {
    display: none;
    background-color: rgba(255, 255, 255, 0.05);
}
  
.mobile-dropdown-content.show {
    display: block;
}
  
.mobile-dropdown-content a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 30px; /* Extra padding for sub-menu items */
    display: block;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
  
.mobile-dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ff9800;
}




.magic-syllabus-container {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  
  /* Special class for the nav link to ensure proper structure */
  .nav-syllabus-link {
    text-align: left;
    display: inline-flex !important;
  }
  
  * Special class for the nav link to ensure proper structure */
  .nav-syllabus-link {
  text-align: left;
  display: inline-flex !important;
  position: relative; /* Add this to establish positioning context */
  }
  
  .magic-syllabus-container {
  position: relative; /* Add this to create proper positioning context */
  }
  
  .syllabus-crown {
  position: absolute;
  color: #FFD700; /* Gold color for the crown */
  font-size: 0.8em;
  top: -14px; 
  left: 2px; /* More negative value to move further left */
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  transform: rotate(-17deg);
  }
  
  /* Add a hover effect to make it more interactive */
  .active-link:hover .syllabus-crown {
  animation: crownGlow 1.5s infinite alternate;
  }
  
  @keyframes crownGlow {
  from {
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  }
  to {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.9), 0 0 15px rgba(255, 215, 0, 0.7);
  }
  }
  
  /* Ensure the text is positioned correctly */
  .magic-text {
  position: relative;
  margin-left: 5px; /* Add some space after the crown */
  }











  /* Internship Page Specific Styles */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #0d6985;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ff9800;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Internship Overview Section */
.internship-overview {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.overview-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.overview-text {
    flex: 2;
}

.overview-text h2 {
    font-size: 2.5rem;
    color: #0d6985;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.overview-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #ff9800;
}

.overview-text > p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Key Benefits */
.key-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item i {
    font-size: 3rem;
    color: #ff9800;
    margin-bottom: 20px;
}

.benefit-item h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
}

/* Overview Stats */
.overview-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #0d6985;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-card p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Internship Domains Section */
.internship-domains {
    padding: 80px 20px;
    background-color: #fff;
}

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

.domain-card {
    background-color: #f8f8f8;
    padding: 35px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.domain-card:hover {
    transform: translateY(-8px);
    border-color: #ff9800;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background-color: #fff;
}

.domain-icon {
    text-align: center;
    margin-bottom: 25px;
}

.domain-icon i {
    font-size: 3.5rem;
    color: #0d6985;
    padding: 20px;
    background-color: rgba(13, 105, 133, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.domain-card:hover .domain-icon i {
    color: #ff9800;
    background-color: rgba(255, 152, 0, 0.1);
}

.domain-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.domain-card > p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: center;
    flex-grow: 1;
}

.domain-skills {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.domain-skills li {
    background-color: #fff;
    padding: 8px 15px;
    margin: 8px 0;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #0d6985;
    font-weight: 500;
    display: inline-block;
    margin-right: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.domain-card:hover .domain-skills li {
    background-color: #0d6985;
    color: #fff;
    border-color: #0d6985;
}

.duration {
    text-align: center;
    background-color: #ff9800;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Program Structure Section */
.program-structure {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.structure-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.structure-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #0d6985 0%, #ff9800 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 90px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background-color: #0d6985;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-marker i {
    color: #fff;
    font-size: 1.5rem;
}

.timeline-item:hover .timeline-marker {
    background-color: #ff9800;
    transform: scale(1.1);
}

.timeline-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 25px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-right: 15px solid #fff;
    border-bottom: 15px solid transparent;
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
}

.timeline-content h3 {
    color: #0d6985;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.timeline-content > p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.timeline-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff9800;
    font-weight: bold;
}

/* Success Stories Section */
.success-stories {
    padding: 80px 20px;
    background-color: #fff;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.story-card {
    background-color: #f8f8f8;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.intern-photo {
    height: 250px;
    overflow: hidden;
}

.intern-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-card:hover .intern-photo img {
    transform: scale(1.1);
}

.story-content {
    padding: 30px;
}

.story-content h4 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 8px;
}

.position {
    color: #0d6985;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.story-text {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.story-outcome {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 152, 0, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.story-outcome i {
    color: #ff9800;
    font-size: 1.2rem;
}

.story-outcome span {
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Application Process Section */
.application-process {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0d6985 0%, #ff9800 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(13, 105, 133, 0.3);
    transition: transform 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
}

.step h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.step p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.step-arrow {
    color: #0d6985;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Requirements & Eligibility Section */
.requirements-eligibility {
    padding: 80px 20px;
    background-color: #fff;
}

.req-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.requirements,
.eligibility {
    background-color: #f8f8f8;
    padding: 40px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.requirements:hover,
.eligibility:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.requirements h3,
.eligibility h3 {
    color: #0d6985;
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requirements h3 i,
.eligibility h3 i {
    color: #ff9800;
    font-size: 1.3rem;
}

.requirements ul,
.eligibility ul {
    list-style: none;
    padding: 0;
}

.requirements li,
.eligibility li {
    color: #666;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.requirements li::before,
.eligibility li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #ff9800;
    font-size: 0.8rem;
}

/* FAQ Section */
.faq-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.faq-question:hover {
    background-color: #f8f8f8;
}

.faq-question.active {
    background-color: #0d6985;
    color: #fff;
}

.faq-question h4 {
    color: inherit;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.faq-question i {
    color: #ff9800;
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
    color: #fff;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 25px 30px;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .overview-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .overview-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .req-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 40px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .overview-text h2 {
        font-size: 2rem;
    }
    
    .key-benefits {
        grid-template-columns: 1fr;
    }
    
    .domains-grid {
        grid-template-columns: 1fr;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .structure-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 70px;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
        left: 0;
    }
    
    .timeline-marker i {
        font-size: 1rem;
    }
    
    .step-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .internship-overview,
    .internship-domains,
    .program-structure,
    .success-stories,
    .application-process,
    .requirements-eligibility,
    .faq-section {
        padding: 50px 20px;
    }
    
    .section-header h2,
    .overview-text h2 {
        font-size: 1.8rem;
    }
    
    .overview-stats {
        flex-direction: column;
    }
    
    .benefit-item,
    .domain-card,
    .requirements,
    .eligibility {
        padding: 25px;
    }
    
    .story-content {
        padding: 20px;
    }
    
    .faq-question,
    .faq-answer.active {
        padding: 20px;
    }
}

















  /* Responsive Styles */
@media (max-width: 992px) {
    .mission-vision {
        flex-direction: column;
    }
    
    .hero-text h1 {
        font-size: 2.4rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}




@media (max-width: 768px) {
    .nav-links {
        position: fixed; /* Change from absolute to fixed */
        top: 90px;
        left: 0;
        width: 100%;
        background-color: #0d6985;
        flex-direction: column;
        gap: 0px;
        padding: 0;
        display: flex;
        max-height: 0;
        overflow-y: hidden; /* Initially hidden */
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.4s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 10px 10px;
        align-items: stretch;
        z-index: 99; /* Ensure it's above other content */
    }
    
    .nav-links.active {
        max-height: 80vh; /* Set to percentage of viewport height */
        opacity: 1;
        transform: translateY(0);
        padding: 15px 0;
        overflow-y: auto; /* Enable scrolling */
    }
    
    .nav-links a {
        padding: 12px 20px;
        display: block;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .menu-icon {
        display: block;
    }
    
    /* Show mobile-only links on mobile */
    .mobile-only-links {
        display: block;
        width: 100%;
    }
    
    /* Hide dropdown on mobile */
    .dropdown {
        display: none;
    }
    
    /* Mobile specific link styling */
    .mobile-only-links a {
        color: #fff;
        text-decoration: none;
        font-size: 1.2rem;
        padding: 12px 20px;
        display: block;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-only-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #ff9800;
    }
    
    .hero-section {
        height: 30vh;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .sub-tagline {
        font-size: 1rem;
    }
    
    .about-heading h2 {
        font-size: 2rem;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 300px;
    }
    
    /* Hide all dropdowns on mobile */
    .dropdown {
        display: none !important;
    }
    
    /* Keep mobile-only links visible */
    .mobile-only-links {
        display: block;
        width: 100%;
    }
    
    /* Placements page specific mobile styles */
    .team-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links-container {
        flex-direction: column;
        align-items: center;
    }
}