/* General styles */
:root {
    --primary: #2d3a4b;
    --accent: #82298c;
    --bg: #f9f9f9;
    --menu-bg: #fff;
    --border: #e0e0e0;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(44, 62, 80, 0.06);
    font-size: 1.5vw;
}

* {
    box-sizing: border-box;
}

/* Remove outline for all elements */
:focus {
    outline: none !important;
}

body {
    margin: 0;
    font-family: 'Montserrat', 'Segoe UI', 'Tiro Bangla', 'Noto Sans Bengali', Arial, sans-serif;
    background: linear-gradient(-45deg, #f8f8ff, #e0c3fc, #6C63FF, #FF6584, #43E97B);
    background-size: 400% 400%;
    animation: gradientBG 18s ease infinite;
    color: var(--primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 50% 100%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 0%;
  }
  100% {
    background-position: 0% 50%;
  }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--menu-bg);
    padding: 1.5vw 3vw;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
}
#footer {
    flex-shrink: 0;
        width: 100%;
        text-align: center;
        padding: 1rem 0.5rem;
        background: #fff;
        font-size: 0.95rem;
        color: #888;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03);
}

#footer p {
    margin: 0;
    letter-spacing: 1px;
}
.logo {
    font-family: 'Audiowide', system-ui, sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: bold;
    background: linear-gradient(45deg, #6C63FF, #FF6584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/*.logo {
  font-family: 'Audiowide', cursive, sans-serif;
  font-size: 2.2em;
  letter-spacing: 2px;
  color: var(--primary, #6C63FF);
  text-shadow: 0 2px 8px #fff8;
}*/

.mode-switch {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-top: 0.5em;
}
.mode-btn {
  font-family: 'Audiowide', cursive, sans-serif;
  font-size: 0.95em;
  padding: 0.35em 1em;
  border: none;
  border-radius: 2em;
  background: #6C63FF;
  color: #fff;
  box-shadow: 0 0 12px #6c63ff44;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #fff8;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  outline: none;
  position: relative;
  z-index: 1;
}
.mode-btn.active, .mode-btn:focus {
  background: #FF6584;
  box-shadow: 0 0 16px #ff658488;
  color: #fff;
  transform: scale(1.07);
}
.mode-btn:hover {
  background: #5dc9e7;
  box-shadow: 0 0 24px #43e97b88;
  transform: scale(1.04);
}


nav {
    display: flex;
    gap: 2vw;
    margin: 2vw 0 2vw 0;
    padding: 0 3vw;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    padding: 0.5vw 1vw;
    border-radius: var(--radius);
    transition: background 0.2s;
}

nav a.active,
nav a:hover {
    background: var(--accent);
    color: #fff;
}

main {
    background: var(--menu-bg);
    margin: 0 3vw 3vw 3vw;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2vw 3vw;
    min-height: 60vh;
}

#main>div {
    margin-bottom: 1.2em;
    padding: 1em;
    background: #c1a2db;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

/* Optional: Remove padding for section titles */
#main>.section-title {
    padding: 0.5em 1em;
    margin-bottom: 0.5em;
    background: transparent;
    box-shadow: none;
    border: none;
}

main#main {
    flex: 1 0 auto;
}

h1, h2, h3, .section-title {
  font-family:'Poppins','Montserrat',
    'Segoe UI','Tiro Bangla', 'Noto Sans Bengali', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.section-title {
    font-size: 1.4em;
    margin-bottom: 1vw;
    color: var(--accent);
    font-weight: bold;
}
.team-marquee-container {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #e0e7ff 0%, #f8f9fa 100%);
    border-radius: 16px;
    margin: 1.5em 0 2.5em 0;
    padding: 1em 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    position: relative;
    cursor: grab;
    touch-action: pan-x;
}

.team-marquee-container:active {
    cursor: grabbing;
}

/* Add left and right gradient fades */
.team-marquee-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 10px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to right, rgba(224, 231, 255, 0.9), rgba(224, 231, 255, 0));
}

/* Scroll hint text */
.team-marquee-container::after {
    content: '← Scroll →';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #666;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 3px 12px;
    border-radius: 12px;
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10;
}

/* Right side gradient */
.team-marquee-container .gradient-right {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 10px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to left, rgba(248, 249, 250, 0.9), rgba(248, 249, 250, 0));
}

.team-marquee {
    display: flex;
    gap: 2.5em;
    align-items: center;
    will-change: transform;
    padding: 0.5em 1em;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 170px;
    padding: 1.2em 1em 1em 1em;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-out;
    cursor: pointer;
    position: relative;
    border: 1.5px solid #e0e7ff;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transform-origin: center center;
}

.team-member:hover,
.team-member:focus-visible {
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.12);
    background: linear-gradient(120deg, #e0f7fa 0%, #fff 100%);
    transform: translateY(-6px) scale(1.04);
    border-color: #90caf9;
    z-index: 1;
    outline: none;
}

.team-marquee-container:hover .team-member:not(:hover) {
    transform: scale(0.97);
    opacity: 0.8;
}

.team-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.7em;
    border: 3px solid #90caf9;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.08);
    background: #f0f4fa;
}

.team-info {
    text-align: center;
}

.team-post {
    font-size: 1em;
    color: #1976d2;
    margin-bottom: 0.2em;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.team-name {
    font-weight: bold;
    font-size: 1.08em;
    color: #222;
    margin-bottom: 0.2em;
    letter-spacing: 0.01em;
}

/* Optional: Add a subtle glow on hover */
.team-member:hover .team-img {
    box-shadow: 0 0 0 4px #bbdefb, 0 4px 16px rgba(0, 123, 255, 0.13);
}

/* Fun Science Facts Styles */
.science-facts-container {
    max-width: 900px;
    margin: 1.5rem auto 2.5rem;
    position: relative;
}

.fun-facts-slider {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    background: linear-gradient(145deg, #ffffff, #f6f9ff);
}

.fun-fact-card {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fun-fact-card.active {
    opacity: 1;
    transform: translateY(0);
}

.fun-fact-content {
    text-align: center;
}

.fun-fact-content h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.fun-fact-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.fun-fact-number {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.8rem;
    color: #999;
}

.fun-facts-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.2rem;
    gap: 0.5rem;
}

.fact-nav-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: background 0.2s ease;
}

.fact-nav-btn:hover {
    background-color: var(--primary);
}

.fact-indicators {
    display: flex;
    gap: 0.5rem;
    margin: 0 1rem;
}

.fact-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d4d4d4;
    cursor: pointer;
    transition: background 0.3s ease;
}

.fact-indicator.active {
    background-color: var(--primary);
}

.subjects,
.topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: center;
}

.subject-btn,
.topic-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.7vw 2vw;
    font-size: 1em;
    cursor: pointer;
    margin-bottom: 1vw;
    transition: background 0.2s;
    margin: 2px;
}

.subject-btn.selected,
.topic-btn.selected {
    background: var(--primary);
}

.video-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 2vw;
    margin-top: 2vw;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.video-container-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #f1f1f1; /* Light gray placeholder */
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.video-container-wrapper::before {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #888;
    font-size: 1rem;
    z-index: 1;
}

.video-container-wrapper.loaded::before {
    display: none;
}

.video-notes iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.video-notes iframe.loaded {
    opacity: 1;
}

.video-container-wrapper.video-error {
    background: #f8f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-error-message {
    text-align: center;
    padding: 2rem;
    color: #842029;
}

.video-error-message button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s;
}

.video-error-message button:hover {
    background: var(--primary);
}

.notes {
    flex: 1;
    min-width: 200px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    line-height: 1.6;
    font-size: 1.1rem;
    margin-top: 1rem;
    white-space: pre-wrap; /* This will make newlines (\n) work */
}

/* Make note title (bold text) larger */
.notes b {
    font-size: 1.25rem;
    display: block;
    margin-bottom: 0.75rem;
    color: var(--primary);
}
.video-note-block {
    margin-bottom: 2vw;
    padding-bottom: 1vw;
    border-bottom: 1px solid #eee;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.video-part {
    width: 100%;
}

.notes-part {
    width: 100%;
}

.video-note-block:last-child {
    margin-bottom: 0;
    border-bottom: none;
}
.exam-questions {
    margin-top: 2vw;
}

.question-block {
    margin-bottom: 2vw;
    padding: 1vw;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.options {
    display: flex;
    gap: 2vw;
    margin-top: 1vw;
    flex-wrap: wrap;
}

.option-label {
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    padding: 0.5vw 1vw;
    cursor: pointer;
    margin-bottom: 0.5vw;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5vw;
}

.option-label input[type="radio"] {
    accent-color: var(--primary);
    margin-right: 0.5vw;
}

.timer {
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 1vw;
}

.result {
    background: #eafaf1;
    border: 1px solid #b2f2d7;
    border-radius: var(--radius);
    padding: 1vw;
    margin-top: 2vw;
    color: #128441;
}

.career-articles,
.admission-articles,
.review-articles {
    margin-top: 2vw;
    display: flex;
    flex-direction: column;
    gap: 2vw;
}

.career-article,
.admission-article,
.review-article {
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1vw 2vw;
    box-shadow: var(--shadow);
}

.career-article {
    margin-bottom: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.career-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.career-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--primary);
    color: white;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category-specific colors */
[data-category="STEM Careers"] .career-category-badge {
    background: #2980b9;
}

[data-category="Medical & Healthcare"] .career-category-badge {
    background: #27ae60;
}

[data-category="Business & Commerce"] .career-category-badge {
    background: #e67e22;
}

[data-category="Humanities & Social Sciences"] .career-category-badge {
    background: #8e44ad;
}

[data-category="Educational Paths"] .career-category-badge {
    background: #3498db;
}

[data-category="Career Guidance"] .career-category-badge {
    background: #16a085;
}

.career-article-inner {
    padding: 2rem;
}

.career-article:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Add animated dot pattern to the background */
.career-article::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(var(--accent) 2px, transparent 2px);
    background-size: 18px 18px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.career-article h2 {
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    position: relative;
}

.career-article h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.career-article h3 {
    color: var(--accent);
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: inline-block;
}

.career-article p {
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
}

.career-article ul {
    margin-left: 1.5rem;
    margin-bottom: 1.8rem;
    padding-left: 0.5rem;
}

.career-article ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1rem;
}

.career-article ul li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: -1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    margin-top: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.video-container::before {
    content: "▶ Related Video";
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(45, 58, 75, 0.8);
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2;
    border-radius: 0 0 var(--radius) 0;
}

.career-article:hover .video-container,
.career-article:hover .video-container-wrapper {
    transform: scale(1.02);
}

.video-container iframe,
.video-container .video-container-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.category-header {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 2rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    position: relative;
    font-family: 'Poppins', 'Montserrat', sans-serif;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent);
}

/* Career page layout improvements */
.page-layout {
    display: flex;
    gap: 2rem;
    position: relative;
}

.side-menu {
    width: 280px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
}

.dropdown-container {
    position: relative;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: var(--radius);
}

.dropdown-toggle {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background-color 0.3s;
}

.dropdown-toggle:hover {
    background: #3a4b60;
}

.dropdown-toggle i {
    transition: transform 0.3s;
}

/* Removed toggle-arrow style in favor of dropdown-arrow */

/* Removing duplicate styles for dropdown-menu as we're using dropdown-content consistently */

.dropdown-item {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95em; /* Match country-btn font size */
}

.dropdown-item:hover {
    background: #f8f8f8;
    color: var(--accent);
    padding-left: 1.8rem;
}

.dropdown-item.active {
    background: #f0f0f0;
    color: var(--accent);
    font-weight: 500;
    border-left: 3px solid var(--accent);
}

/* Style for active category items in career dropdown to match country buttons */
.category-item.active {
    background: #f0f0f0;
    color: var(--primary);
    font-weight: normal;
    border-left: none;
}

/* Hover style for category items to match country buttons */
.category-item:hover {
    background: #f8f8f8;
    padding-left: 1em; /* Keep the original padding on hover, don't increase it */
}

/* Make career page responsive */
@media (max-width: 900px) {
    .page-layout {
        flex-direction: column;
    }
    
    .side-menu {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .dropdown-container {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .category-header {
        font-size: 1.4rem;
        text-align: center;
        display: block;
    }
    
    .dropdown-toggle {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
    }
    
    .dropdown-arrow {
        font-size: 1.2em;
    }
    
    .dropdown-item {
        font-size: 1.15rem;
        padding: 0.9rem 1.5rem;
    }
    
    /* Match career category items with country buttons on mobile */
    .category-item {
        font-size: 1em;
        padding: 12px 15px;
    }
    
    .category-header::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .career-article h2 {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .career-article h2::after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }
    
    .career-article h3 {
        font-size: 1.2rem;
        display: block;
        text-align: center;
    }
    
    .career-article-inner {
        padding: 1.5rem 1rem;
    }
    
    .career-article ul {
        padding-left: 0.5rem;
        margin-left: 1rem;
    }
    
    .career-article::after {
        width: 80px;
        height: 80px;
        background-size: 12px 12px;
    }
    
    .video-container {
        margin-top: 1.5rem;
    }
    
    .video-container::before {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .dropdown-toggle {
        padding: 0.8rem 1.2rem;
        font-size: 1.15rem;
    }
    
    .dropdown-arrow {
        font-size: 1em;
    }
    
    .dropdown-item {
        padding: 0.7rem 1.2rem;
        font-size: 1em; /* Match the country-btn mobile size */
    }
    
    /* Make career category items match country buttons */
    .category-item {
        padding: 0.8em 1em;
        font-size: 0.95em;
    }
    
    .career-category-badge {
        position: relative;
        display: inline-block;
        margin: 0 auto 0.8rem;
        font-size: 0.7rem;
        padding: 4px 10px;
        top: 0;
        right: 0;
    }
    
    .career-article h2 {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    
    .career-article-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .career-article-inner > * {
        width: 100%;
    }
}

.categories-dropdown-container,
.countries-dropdown-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px auto;
    z-index: 100;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-arrow {
    font-size: 0.8em;
    transition: transform 0.3s;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 101;
    max-height: 300px;
    overflow-y: auto;
}

/* For desktop devices with hover capability */
@media (hover: hover) and (pointer: fine) {
    .categories-dropdown-container:hover .dropdown-content,
    .countries-dropdown-container:hover .dropdown-content {
        display: block;
    }
    
    .categories-dropdown-container:hover .dropdown-arrow,
    .countries-dropdown-container:hover .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* For all devices with JavaScript toggle */
.dropdown-content.show {
    display: block;
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.country-btn {
    font-size: 0.95em;
    padding: 0.8em 1em;
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.category-btn {
    font-size: 0.95em;
    padding: 0.8em 1em;
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.country-btn.active {
    background: #f0f0f0;
    color: var(--primary);
    font-weight: bold;
}

.country-btn:hover {
    background: #f8f8f8;
}

.category-btn.active {
    background: #f0f0f0;
    color: var(--primary);
    font-weight: bold;
}

.category-btn:hover {
    background: #f8f8f8;
}
.admission-article img {
    max-width: 120px;
    float: left;
    margin-right: 1em;
    border-radius: 8px;
}

.admission-article a {
    display: inline-block;
    margin-top: 0.5em;
    color: var(--primary);
    text-decoration: underline;
}
.admission-article ul {
    margin: 0 0 1em 1.5em;
    padding: 0;
    list-style: disc inside;
}

.admission-article b {
    display: block;
    margin-top: 0.5em;
}
.donate-section {
    margin-top: 2vw;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2vw;
    box-shadow: var(--shadow);
    max-width: 600px;
}

.donate-methods {
    margin-top: 1vw;
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

#visitor-stats {
    margin-bottom: 0.5vw;
    font-size: 1em;
    color: #666;
    letter-spacing: 0.5px;
}
#visitor-stats span {
    margin: 0 0.5em;
    font-weight: 500;
}

.review-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
    max-width: 100%;
}

.review-article {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* Responsive styling for the reviews page */
@media (max-width: 768px) {
    .categories-dropdown-container,
    .countries-dropdown-container {
        max-width: 100%;
    }
    
    .dropdown-header {
        padding: 12px 15px;
    }
    
    .category-btn,
    .country-btn {
        font-size: 1em;
        padding: 12px 15px;
    }
    
    .review-article,
    .admission-article {
        padding: 15px;
    }
}

@media (max-width: 900px) {

    nav,
    main {
        padding-left: 1vw;
        padding-right: 1vw;
    }

    .video-notes {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .video-note-block {
        width: 100%;
    }

    .science-terms {
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .team-member {
        min-width: 120px;
        padding: 0.7em 0.5em;
    }
    
    .team-img {
        width: 70px;
        height: 70px;
    }
    
    .team-post {
        font-size: 0.9em;
    }
    
    .team-name {
        font-size: 1em;
    }
    
    .team-marquee {
        gap: 1.5em;
    }
    
    .team-marquee-container {
        padding: 0.75em 0;
    }

    .team-img {
        width: 60px;
        height: 60px;
    }
}

/* Hamburger menu icon styles */
.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    z-index: 1001;
}

.menu-icon span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 600px) {
    .mode-switch {
        gap: 0.5em;
        flex-wrap: wrap;
        justify-content: center;
    }

    .mode-btn {
        font-size: 1em;
        padding: 0.5em 1.2em;
        border-radius: 2em;
        margin-bottom: 0.3em;
    }
    
    .team-member {
        min-width: 110px;
        padding: 0.6em 0.5em;
    }
    
    .team-img {
        width: 65px;
        height: 65px;
    }
    
    .team-post {
        font-size: 0.85em;
    }
    
    .team-name {
        font-size: 0.95em;
    }
    
    .team-marquee {
        gap: 1.2em;
    }
    
    .mode-btn:hover {
        box-shadow: 0 0 16px #6c63ff55;
    }

    #footer {
        position: fixed;
        left: 0;
        bottom: 0;
        z-index: 100;
        width: 100vw;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.07);
    }
    main#main {
        margin-bottom: 60px; /* Adjust if footer height changes */
    }
}

/* Mobile menu styles */
@media (max-width: 600px) {
    .menu-icon {
        display: flex;
    }

    .mode-btn {
        flex: 1;
        font-size: 0.95em;
        padding: 1.5vw 0;
        min-width: 26px;
        min-height: 26px;
    }
    .logo{
        font-size: 2.6em;
    }
    main{
        font-size: 2.4em;
        margin: 2em 1em;
        padding: 1em;
    }

    nav#menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 1em;
        border-radius: 10px;
        text-align: center;
        width: 50vw;
        background: var(--menu-bg);
        box-shadow: 0 4px 16px #0002;
        z-index: 1000;
        padding: 4vw 0;
        gap: 1vw;
        font-size: 2.4em;
    }

    nav#menu.open {
        display: flex;
    }
    
    .subject-btn, .topic-btn {
        min-width: 44vw;
        max-width: 48vw;
        height: 42px;
        font-size: 2rem;
        padding: 0.4em 0.5em;
    }
    .subjects, .topics {
        gap: 0.3em;
    }

    header {
        position: relative;
    }
}

/* Social media icons */
.social-media-section {
    margin: 1.5rem 0;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.social-icon svg {
    fill: var(--accent);
    transition: transform 0.3s ease, fill 0.3s ease;
}

.social-icon:hover {
    color: var(--accent);
}

.social-icon:hover svg {
    transform: scale(1.2);
}

/* Contact Section Styles */
/* Tab Navigation */
.contact-tabs {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2em;
}

.tab-buttons {
    display: flex;
    background: linear-gradient(to right, #f6f9fc, #edf2f7);
    padding: 0.6em;
    border-radius: 12px 12px 0 0;
    gap: 0.5em;
}

.tab-btn {
    padding: 0.8em 1.5em;
    background: none;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #718096;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 3px;
    background: var(--accent);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.tab-btn:hover {
    color: var(--accent);
}

.tab-btn.active {
    color: var(--accent);
    background: rgba(130, 41, 140, 0.08);
}

.tab-btn.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* Tab Content */
.tab-content {
    padding: 1.5em;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.tab-pane {
    display: none;
    opacity: 0;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

/* Form Styles */
.contact-form-compact {
    max-width: 100%;
}

.form-floating {
    position: relative;
    margin-bottom: 1.5em;
}

.form-floating input,
.form-floating textarea {
    width: 100%;
    padding: 1em 0.8em 0.6em;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.25s ease;
}

.form-floating textarea {
    min-height: 120px;
    resize: vertical;
}

.form-floating label {
    position: absolute;
    top: 50%;
    left: 0.8em;
    transform: translateY(-50%);
    font-size: 1em;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.25s ease;
}

.form-floating textarea ~ label {
    top: 1.2em;
    transform: none;
}

/* Floating label animation */
.form-floating.focused label,
.form-floating.has-content label,
.form-floating input:focus ~ label,
.form-floating textarea:focus ~ label,
.form-floating input:not(:placeholder-shown) ~ label,
.form-floating textarea:not(:placeholder-shown) ~ label {
    top: 0.5em;
    font-size: 0.85em;
    color: var(--accent);
}

/* Input focus styles */
.form-floating.focused input,
.form-floating.focused textarea,
.form-floating input:focus,
.form-floating textarea:focus {
    border-color: var(--accent);
    background: rgba(130, 41, 140, 0.03);
    box-shadow: 0 0 0 3px rgba(130, 41, 140, 0.1);
    outline: none;
}

.input-focus-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.form-floating.focused .input-focus-indicator,
.form-floating input:focus ~ .input-focus-indicator,
.form-floating textarea:focus ~ .input-focus-indicator {
    width: 100%;
}

/* Form error state */
.form-floating.error input,
.form-floating.error textarea {
    border-color: #e53e3e;
    background: rgba(229, 62, 62, 0.03);
}

.form-floating.error label {
    color: #e53e3e;
}

/* Button styles */
.animated-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.9em 1.8em;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(130, 41, 140, 0.2);
}

.animated-btn:hover {
    background: #6b1d72;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(130, 41, 140, 0.3);
}

.animated-btn:active {
    transform: translateY(1px);
}

.animated-btn svg {
    transition: transform 0.3s ease;
}

.animated-btn:hover svg {
    transform: translateX(4px);
}

/* Form feedback */
.form-feedback {
    margin-top: 1.5em;
    padding: 1em;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.6em;
    opacity: 0;
}

.form-feedback.error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #e53e3e;
}

.form-feedback.success {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #38a169;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Contact info card */
.contact-info-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1em;
    margin-bottom: 1.5em;
}

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

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #9c27b0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-icon.pulse {
    position: relative;
}

.contact-icon.pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(130, 41, 140, 0.4);
    opacity: 0.6;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.contact-detail {
    flex: 1;
    text-align: center;
}

.contact-info-item {
    align-items: center;
}

.contact-detail h4 {
    margin: 0 0 0.3em;
    font-size: 1.1em;
    color: var(--primary);
}

.contact-detail p {
    margin: 0;
    color: #718096;
}

.contact-detail a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-detail a:hover {
    color: #9c27b0;
    text-decoration: underline;
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 0.8em;
    margin-top: 1.8em;
    justify-content: center;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Accordion for FAQs */
.accordion {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.accordion-item {
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 1.2em 1.5em;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    color: var(--primary);
    transition: color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: '+';
    font-size: 1.2em;
    color: var(--accent);
}

.accordion-item.active .accordion-header {
    color: var(--accent);
}

.accordion-item.active .accordion-header::after {
    content: '−';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8fafc;
}

.accordion-content p {
    padding: 1em 1.5em;
    margin: 0;
    color: #718096;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-5px);
    }
    40%, 80% {
        transform: translateX(5px);
    }
}

/* Responsive styles for contact section */
@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
        gap: 0.3em;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
    
    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto 1em;
    }
    
    .contact-detail {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .accordion-header {
        padding: 1em;
    }
    
    .accordion-content p {
        padding: 1em;
    }
    
    /* Increased font size for Fun Science Facts on mobile */
    .fun-fact-content h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .fun-fact-content p {
        font-size: 1.3rem;
        line-height: 1.7;
    }
    
    .fun-facts-slider {
        height: 280px; /* Increased height to accommodate larger text */
    }
}

/* Additional styles for smaller mobile devices */
@media (max-width: 480px) {
    .fun-fact-content h3 {
        font-size: 2rem;
    }
    
    .fun-fact-content p {
        font-size: 1.5rem;
    }
    
    .fun-facts-slider {
        height: 320px;
    }
}

/* Founder and Vision Section */
.founder-vision-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(to right, #f8f9ff, #f0f4fa);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.founder-vision-section::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.2) 0%, rgba(255, 101, 132, 0.05) 70%);
    border-radius: 50%;
    z-index: 0;
}

.founder-info {
    flex: 1;
    min-width: 300px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.founder-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.founder-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(130, 41, 140, 0.1);
}

.founder-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 5px 15px rgba(130, 41, 140, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-info:hover .founder-image {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(130, 41, 140, 0.3);
}

.founder-title h3 {
    margin: 0 0 0.3rem;
    font-size: 1.3rem;
    color: var(--primary);
}

.founder-role {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
}

.founder-quote {
    position: relative;
    padding-left: 2rem;
    font-style: italic;
    color: #444;
    line-height: 1.6;
}

.quote-mark {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--accent);
    opacity: 0.5;
}

.founder-achievements {
    display: flex;
    justify-content: space-around;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(130, 41, 140, 0.1);
}

.achievement-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-4px);
}

.achievement-number {
    display: block;
    font-weight: bold;
    font-size: 1.4rem;
    color: var(--accent);
}

.achievement-label {
    font-size: 0.8rem;
    color: #666;
}

.vision-statement {
    flex: 2;
    min-width: 300px;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.vision-statement:hover {
    transform: translateY(-5px);
}

.vision-statement h3 {
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.vision-statement h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--accent), transparent);
}

.vision-statement p {
    margin-bottom: 0.7rem;
    line-height: 1.7;
}

.vision-statement p:first-of-type {
    color: #555;
    font-weight: 500;
}

/* Make the founder and vision section responsive */
@media (max-width: 768px) {
    .founder-vision-section {
        flex-direction: column;
        padding: 1rem;
    }
    
    .founder-info, .vision-statement {
        width: 100%;
    }
    
    .vision-statement h3 {
        font-size: 1.4rem;
    }
    
    .founder-header {
        justify-content: center;
        text-align: center;
    }
    
    .founder-achievements {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .achievement-item {
        flex: 0 0 45%;
    }
}

@media (max-width: 480px) {
    .founder-header {
        flex-direction: column;
    }
    
    .founder-title {
        text-align: center;
    }
    
    .founder-image {
        width: 100px;
        height: 100px;
        margin-bottom: 0.5rem;
    }
    
    .achievement-item {
        flex: 0 0 100%;
        margin-bottom: 1rem;
    }
}
.countries-dropdown-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px auto;
    z-index: 100;
}

.admission-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
    max-width: 100%;
}

.admission-article {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

/* Responsive styling for admission page */
@media (max-width: 768px) {
    .countries-dropdown-container {
        max-width: 100%;
    }
    
    .admission-article img {
        max-width: 100%;
        float: none;
        display: block;
        margin: 0 auto 15px;
    }
    
    /* Adjust notes font size for mobile */
    .notes {
        padding: 1.25rem;
        font-size: 1.75rem;
    }
    
    .notes b {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
}

/* Enhanced responsive styles for video content */
@media (min-width: 992px) {
    .video-notes {
        padding: 0 2rem;
    }
    
    .video-note-block {
        flex-direction: column;
        align-items: center;
    }
    
    .video-part {
        width: 100%;
        margin: 0 auto;
    }
    
    .notes-part {
        width: 100%;
        margin: 0 auto;
    }
    
    .video-container-wrapper {
        width: 100%;
        margin: 0 auto;
    }
    
    .video-note-block .notes {
        width: 100%;
        margin: 0;
        height: auto;
        padding: 1.75rem;
        font-size: 1.15rem; /* Slightly larger font for laptop screens */
    }
    
    .video-note-block .notes b {
        font-size: 1.3rem;
    }
}

@media (min-width: 1200px) {
    .video-notes {
        max-width: 1200px;
        margin: 2vw auto;
    }
    
    .video-container-wrapper {
        width: 100%;
    }
    
    .video-note-block .notes {
        width: 100%;
        margin: 0;
        font-size: 1.2rem; /* Larger font for desktop screens */
        padding: 2rem;
    }
    
    .video-note-block .notes b {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
}