:root {
    --primary: #ffd500;
    --primary-dark: #e6b400;
    --secondary: #ff9a00;
    --accent: #5ce3ba;
    --accent-red: #ff6b6b;
    --accent-blue: #5dadf8;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #222222;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* audio player */
.audio-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 20px;
    color: #4285F4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.content-page-main {

    padding-top: 30px;
}

.audio-icon:hover {
    background-color: rgba(66, 133, 244, 0.1);
}

.audio-icon.playing {
    color: #ea4335;
}

.audio-icon svg {
    width: 20px;
    height: 20px;
}

#audio-player {
    display: none;
}

/* Responsive video container with max-width */
.video-container {
    position: relative;
    width: 100%;
    max-width: 700px; /* Set maximum width to 700px */
    margin-left: auto; /* Center the container */
    margin-right: auto;
    padding-bottom: calc(700px * 0.5625); /* Height based on 16:9 ratio of max-width */
    max-height: 394px; /* 700px * 0.5625 (16:9 ratio) */
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.video-container:hover {

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Video info section */
.video-info {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.video-title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #222;
}

.video-description {
    color: #666;
    line-height: 1.6;
}

.video-meta {
    display: flex;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #888;
}

.video-meta div {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.video-meta svg {
    margin-right: 5px;
}


.learning-resource-content img {

    display: block;
    max-width: 100%;
    height: auto;
    margin: auto;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 30px;

}

/* On mobile, let content images run edge-to-edge with square corners.
   The panel (section) has 1.5rem padding, so pull the image out by that amount. */
@media (max-width: 600px) {
    .learning-resource-content img {
        width: calc(100% + 3rem);
        max-width: calc(100% + 3rem);
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        border-radius: 0;
    }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 22pt;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;

}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Hot Desert Hero */
.hot-desert-hero {
    background: linear-gradient(135deg, #f9cb37 0%, #ff9d2f 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.hero-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.hero-title span {
    color: #fff;
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

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

/* Quiz Button */
.quiz-button-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    position: relative;
    z-index: 10;
}

.quiz-button {
    background: var(--primary);
    color: var(--text-dark);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
}

.quiz-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.quiz-button .icon {
    margin-right: 10px;
    font-size: 1.4rem;
}
/* Sticky Navigation Styles */
.study-nav {
    background: white;
    padding: 1rem 0; /* Reduced horizontal padding to allow full width */
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    left: 0;
    right: 0;
    margin: 0;
}

/* Make sure nav container takes full width */
.nav-container {
    max-width: 100%; /* Change from 1200px to 100% */
    margin: 0 auto;
    padding: 0 2rem; /* Move padding from .study-nav to .nav-container */
}

/* Ensure tabs fill available space */
.nav-tabs {
    display: flex;
    justify-content: center; /* Center the tabs */
    gap: 1rem;
    overflow-x: auto;
    overflow: visible;
    padding-bottom: 0.5rem;
    width: 100%;
}

/* Make tabs more visible and highlight active tab better */
.nav-tab {
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    flex: 0 0 auto; /* Let tabs size naturally */
    text-align: center;
}

.nav-tab.active {
    background: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-tab:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Add visual distinction when sticky */
.study-nav.is-sticky {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-tabs {
        justify-content: flex-start; /* Left-align on mobile for better scrolling */
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .nav-tab {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Main Content */
.study-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.study-section {
    margin-bottom: 3rem;
    display: none;
}

.study-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.section-container {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.section-header {
    background: var(--primary);
    padding: 1.5rem;
    position: relative;
}

.section-icon {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
}

.section-body {
    padding: 2rem;
}

/* Information Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.info-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.info-card-title {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card-content {
    font-size: 1rem;
}

.info-card-content ul {
    margin: 0.5rem 0 0.5rem 1.5rem;
}

.info-card-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Interactive elements */
.interactive-map {
    width: 100%;
    height: 400px;
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 1.5rem 0;
    position: relative;
}

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

.map-point {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.map-point:hover {
    transform: translate(-50%, -50%) scale(1.2);
    background: var(--secondary);
}

.map-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 300px;
    display: none;
}

.map-info.active {
    display: block;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.comparison-table th, .comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: var(--primary);
    color: var(--text-dark);
}

.comparison-table tr:nth-child(even) {
    background: var(--bg-light);
}

.comparison-table tr:hover {
    background: rgba(255, 213, 0, 0.1);
}

.btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Two-column layout */
.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}

/* Image with caption */
.image-with-caption {
    margin: 1.5rem 0;
}

.image-with-caption img {
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    display: block;
}

.image-caption {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: 0.9rem;
    color: #666;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    
    .video-container {
        margin-bottom: 20px;
      }
      
      .video-info {
        padding: 15px;
      }
      
      .video-title {
        font-size: 1.2rem;
      }
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .section-body {
        padding: 1.5rem;
    }
    
    .quiz-button {
        width: 100%;
        justify-content: center;
    }


        .video-meta {
          flex-direction: column;
          align-items: flex-start;
        }
        
        .video-meta div {
          margin-bottom: 10px;
        }
      



}

 .learning-buttons-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    flex-wrap: wrap;
    max-width: 800px;
}

.learning-button {
    display: flex;
    align-items: center;
    background: white;
    color: var(--text-dark);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.quiz-button {
    background-color: var(--primary);
    color: var(--text-dark);
}

.quiz-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.game-button {
    background-color: var(--accent);
    color: white;
}

.game-button:hover {
    background-color: #3aa58c; /* Darker green color */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.learning-button .icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Updated styling for the buttons container */
.learning-buttons-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    flex-wrap: wrap;
    max-width: 900px;
}

/* Add style for the PDF button */
.pdf-button {
    background-color: #ff9a00; /* Secondary color from your CSS variables */
    color: white;
}

.pdf-button:hover {
    background-color: #e07e00; /* Darker orange */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Child-friendly styles */
.child-friendly-font {
    font-size: 1.1rem;
    line-height: 1.6;
}

.fun-fact-box {
    background-color: #f0f8ff;
    border: 3px dashed #4682B4;
    border-radius: 15px;
    padding: 15px;
    margin: 20px 0;
}

.fun-fact-title {
    color: #4682B4;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.simple-list li {
    margin-bottom: 10px;
    list-style-type: none;
    padding-left: 30px;
    position: relative;
}

.simple-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3CB371;
    font-weight: bold;
}

.hero-image img {
    border-radius: 20px;
    border: 5px solid #FFD700;
}

.uk-flag {
    width: 60px;
    height: auto;
    vertical-align: middle;
    margin-right: 10px;
}

.country-card {
    border: 3px solid #4682B4;
    border-radius: 15px;
    padding: 15px;
    margin: 10px;
    text-align: center;
    background-color: #f9f9f9;
    width: 220px;
}

.country-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.country-flag {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
    border: 2px solid #ddd;
}

.weather-icon {
    font-size: 2rem;
    margin-right: 10px;
}
