/* cartoon-styles.css - أنماط كرتونية للموقع */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700&family=Tajawal:wght@400;500;700&display=swap');

:root {
    /* الألوان الرئيسية من الشعار */
    --green-primary: #0d8a3f;
    --green-light: #7ed957;
    --yellow-primary: #ffde59;
    --orange-primary: #ff914d;
    --red-primary: #ff5757;
    --blue-primary: #1079b6;
    
    /* ألوان إضافية */
    --blue-primary: #4fc3f7;
    --purple-primary: #9c27b0;
    --pink-primary: #ff6b9e;
    --brown-primary: #8d6e63;
    
    /* ألوان الخلفية والنص */
    --background-light: #ffffff;
    --background-dark: #1a1a1a;
    --text-dark: #333333;
    --text-light: #ffffff;
    
    /* ألوان الأقسام */
    --world-news-color: var(--blue-primary);
    --arts-culture-color: var(--purple-primary);
    --education-color: var(--orange-primary);
    --environment-color: var(--green-light);
    --science-tech-color: var(--red-primary);
    --wellness-color: var(--pink-primary);
    --opinion-color: var(--yellow-primary);
    --economics-color: var(--blue-primary);
}

/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Baloo 2', 'Tajawal', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html[lang="ar"] body {
    font-family: 'Tajawal', 'Baloo 2', sans-serif;
}


.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الروابط والأزرار */
a {
    text-decoration: none;
    color: var(--green-primary);
    transition: all 0.3s ease;
}

a:hover {
    transform: scale(1.05);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--green-primary);
    color: white;
}

.btn-secondary {
    background-color: var(--yellow-primary);
    color: var(--text-dark);
}

.btn-accent {
    background-color: var(--orange-primary);
    color: white;
}

/* هيدر الموقع */
.site-header {
    background-color: var(--background-light);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 5px;
}

.logo {
    height: 120px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
}

/* قائمة التنقل الرئيسية */
.main-navigation {
    width: 100%;
    margin-top: 10px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 10px;
}

.nav-item {
    position: relative;
}

.nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-dark);
    font-weight: bold;
    border-radius: 15px;
    transition: all 0.3s ease;
}

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

.nav-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.2);
}

/* ألوان الأقسام في القائمة */
.nav-item.world-news a {
    color: var(--world-news-color);
}

.nav-item.arts-culture a {
    color: var(--arts-culture-color);
}

.nav-item.wordSound a {
    color: var(--education-color);
}

.nav-item.books a {
    color: var(--environment-color);
}

.nav-item.encyclopaedia a {
    color: var(--science-tech-color);
}

.nav-item.wellness a {
    color: var(--wellness-color);
}

.nav-item.news a {
    color: var(--opinion-color);
}

.nav-item.castinArabic a {
    color: var(--economics-color);
}

/* ألوان الأقسام النشطة */
.nav-item.world-news.active a {
    background-color: rgba(79, 195, 247, 0.2);
}

.nav-item.arts-culture.active a {
    background-color: rgba(156, 39, 176, 0.2);
}

.nav-item.wordSound.active a {
    background-color: rgba(255, 145, 77, 0.2);
}

.nav-item.books.active a {
    background-color: rgba(126, 217, 87, 0.2);
}

.nav-item.encyclopaedia.active a {
    background-color: rgba(255, 87, 87, 0.2);
}

.nav-item.wellness.active a {
    background-color: rgba(255, 107, 158, 0.2);
}

.nav-item.news.active a {
    background-color: rgba(255, 222, 89, 0.2);
}

.nav-item.castinArabic.active a {
    background-color: rgba(26, 122, 231, 0.2);
}

/* زر تبديل اللغة */
.language-toggle {
    position: relative;
    background-color: var(--green-primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.language-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.language-toggle:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* قسم الهيرو */
.hero-section {
    position: relative;
    padding: 60px 0;
    text-align: center;
    background-color: var(--yellow-primary);
    border-radius: 0 0 30px 30px;
    margin-bottom: 10px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/cartoon/hero-pattern.png');
    background-size: 200px;
    background-repeat: repeat;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.5);
}

.hero-description {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 30px;
}


/* ============================
    Breadcrumb Navigation
============================ */
.breadcrumb {
    direction: rtl;
    top: 0;
    right: 0;
    width: 100%;
    display: flex;
    margin-right: 50px;
    justify-content: flex-start;
    align-items: center;
}

.breadcrumb-icon {
    width: 80px;
    height: 80px;
    margin-right: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.breadcrumb-icon:hover {
    transform: scale(1.1);
}

.separator {
    margin: 0 15px;
    color: #000000;
    font-size: 50px;
}

.breadcrumb h1 {
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    margin: 0 40px;
    font-size: 4em;
    color: #000000;
}

/* two-column layout */
.book-two-col {
    display: flex;
    flex-direction: row-reverse;     /* RTL: slider on the visual right */
    gap: 2rem;
    align-items: stretch;
  }
  
  .book-info,
  .book-slider {
    flex: 1 1 0;          /* each side gets half the width */
    min-width: 320px;     /* keeps columns readable on tablets */
  }
  
  /* make each slide fill its side neatly */
  .book-slider .slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;    /* crops edges rather than squashing */
  }
  
  /* mobile: stack the two blocks */
  @media (max-width: 768px) {
    .book-two-col {
      flex-direction: column;
    }
  }
  
  

/* الأخبار المميزة */
.featured-news {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--green-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background-color: var(--green-primary);
    border-radius: 10px;
    margin: 10px auto 0;
}

.featured-grid {
    display: block;
}

.featured-news-item {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.featured-news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.featured-image {
    height: 120px;
    overflow: hidden;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit:contain;
    transition: transform 0.5s ease;
}

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

.featured-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.article-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.article-meta .icon {
    margin-right: 5px;
    color: var(--orange-primary);
}

.article-excerpt {
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    background-color: var(--green-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    align-self: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.read-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* أنماط شريط التبديل */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.prev-btn, .next-btn {
    background-color: var(--green-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.prev-btn:hover, .next-btn:hover {
    transform: scale(1.1);
    background-color: var(--orange-primary);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

.slider-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* شبكة الأخبار */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-item {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-item img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-content {
    padding: 20px;
}

.news-item .article-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.news-item .article-excerpt {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* parent: put the two sections side-by-side */
.news-wrapper {
    display: flex;            /* side-by-side */
    gap: 2rem;                /* space between the two columns */
    align-items: stretch;     /* both pieces same height if possible */
  }
  
  /* each section takes half the width */
  .news-wrapper > section {
    flex: 1 1 0;              /* grow + shrink, initial basis 0 */
    min-width: 320px;         /* keep readable on narrow screens */
  }
  
  /* stack vertically on small devices */
  @media (max-width: 768px) {
    .news-wrapper {
      flex-direction: column; /* one on top of the other */
    }
  }
  

/* التبويبات */
.category-tabs {
    margin-top: 40px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 10px;
}

.tab-button {
    padding: 12px 24px;
    background-color: white;
    border: 3px solid var(--green-primary);
    border-radius: 50px;
    color: var(--green-primary);
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tab-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.tab-button.active {
    background-color: var(--green-primary);
    color: white;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

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

/* فوتر الموقع */
.site-footer {
    background-color: var(--green-light);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
    border-radius: 30px 30px 0 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/cartoon/footer-pattern.png');
    background-size: 200px;
    background-repeat: repeat;
    opacity: 0.1;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    text-align: center;
}

.footer-logo .logo {
    height: 150px;
    margin-bottom: 15px;
}

.footer-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

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

.footer-heading {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--yellow-primary);
    border-radius: 3px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: white;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--yellow-primary);
    transform: translateX(5px);
}

.footer-newsletter p {
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    font-family: inherit;
}

.newsletter-form button {
    padding: 15px 25px;
    background-color: var(--yellow-primary);
    color: var(--text-dark);
    border: none;
    border-radius: 0 50px 50px 0;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--orange-primary);
    color: white;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.copyright {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

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

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--yellow-primary);
    color: var(--text-dark);
    transform: translateY(-5px);
}

/* زر تبديل الوضع المظلم/الفاتح */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

#theme-toggle-btn {
    width: 50px;
    height: 50px;
    background-color: var(--green-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#theme-toggle-btn:hover {
    transform: scale(1.1);
    background-color: var(--orange-primary);
}

.theme-icon {
    transition: all 0.3s ease;
}

/* الوضع المظلم */
html[data-theme="dark"] {
    --background-light: var(--background-dark);
    --text-dark: var(--text-light);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .featured-news-item,
html[data-theme="dark"] .news-item,
html[data-theme="dark"] .tab-button {
    background-color: #2a2a2a;
    color: white;
}

html[data-theme="dark"] .article-title,
html[data-theme="dark"] .section-title {
    color: white;
}

html[data-theme="dark"] .tab-button {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

html[data-theme="dark"] .tab-button.active {
    background-color: var(--green-primary);
    color: white;
}

/* عناصر زخرفية */
.decoration {
    position: absolute;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}

.decoration.star {
    background-image: url('../assets/images/cartoon/star.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 40px;
    height: 40px;
    animation: float 3s ease-in-out infinite;
}

.decoration.circle {
    background-image: url('../assets/images/cartoon/circle.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    animation: float 4s ease-in-out infinite;
}

.decoration.zigzag {
    background-image: url('../assets/images/cartoon/zigzag.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 60px;
    height: 20px;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0); }
}

@media (max-width: 767px) {
    .logo-container {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      margin-bottom: 10px;
    }
  
    .logo {
      margin: 0 auto;
    }
  }

@media (min-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-container {
        margin-bottom: 0;
    }
    
    .featured-news-item {
        flex-direction: row;
    }
    
    .featured-image {
        width: 40%;
        height: auto;
    }
    
    .featured-content {
        width: 60%;
    }
    
    .footer-content {
        grid-template-columns: 1fr 2fr;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
    
    .nav-item a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .nav-icon {
        width: 30px;
        height: 30px;
    }
    
    .featured-news-item {
        flex-direction: column;
    }
    
    .featured-image {
        width: 100%;
        height: 200px;
    }
    
    .featured-content {
        width: 100%;
    }
}

/* رسوم متحركة */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-wiggle {
    animation: wiggle 2s infinite;
}

/* تأثيرات إضافية للأطفال */
.bubble-button {
    position: relative;
    overflow: hidden;
}

.bubble-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.5s, opacity 0.5s;
    opacity: 0;
}

.bubble-button:hover::after {
    transform: scale(40);
    opacity: 0.4;
}

/* أنماط خاصة بالأقسام */
.world-news-section {
    background-color: rgba(79, 195, 247, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

.arts-culture-section {
    background-color: rgba(156, 39, 176, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

.education-section {
    background-color: rgba(255, 145, 77, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

.environment-section {
    background-color: rgba(126, 217, 87, 0.1);
    border-radius: 50px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    margin-bottom: 40px;
}

.science-tech-section {
    background-color: rgba(255, 87, 87, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

.wellness-section {
    background-color: rgba(255, 107, 158, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

.opinion-section {
    background-color: rgba(255, 222, 89, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

.economics-section {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

/* Reset + font */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: "Tajawal", sans-serif; background:#fafafa; }

/* Card container */
.card {
  max-width: 1400px;
  max-height: 700px;
  margin: 2rem auto;
  background:#fff;
  border-radius:1.5rem;
  box-shadow:0 4px 20px rgba(0,0,0,.07);
  display:flex;
  flex-wrap:wrap;
  gap:2rem;
  padding:2.5rem;
}

/* LEFT */
.info { flex:1 1 380px; }

h1 {
  font-size:4rem;
  font-weight:900;
  color:#004e67;
  margin-bottom:1rem;
}

.description {
  line-height:1.7;
  margin-bottom:2rem;
  font-size:1.3rem;
  color:#333;
}


.meta {
    list-style: none;
    margin-bottom: 2rem;
}

.meta li {
    display: flex;
    align-items: center; /* optional, keeps vertical alignment nice */
    gap: 0.5rem; /* adds a small fixed space instead of huge flex gap */
    border-bottom: 1px solid var(--light-blue);
    font-size: 2rem;
}


.meta span {
    font-weight: bold;
    color: var(--primary-blue);
}
/* Buttons */
.actions { display:flex; gap:1rem; flex-wrap:wrap; }

.btn {
  cursor:pointer;
  border:none;
  font-size:1rem;
  padding:.75rem 2.5rem;
  border-radius:.75rem;
  transition:.25s;
  font-weight:700;
}



.btn.primary {
    background: linear-gradient(135deg, var(--accent-green), var(--bright-blue));
    color: var(--text-white);
}

.primary:hover { filter:brightness(110%); }

.outline {
  background:transparent;
  color:#ff5757;
  border:2px solid #ff5757;
}

.outline:hover {
  background:#ff5757;
  color:#fff;
}

/* RIGHT – simple slider */
.slider {
  flex:1 1 360px;
  position:relative;
  overflow:hidden;
  border-radius:1rem;
  aspect-ratio:3/4;  /* keeps book-ish shape */
}

.slides { height:100%; }

.slides img {
  position:absolute;
  inset:0;
  width:100%;
  max-height: 600px;
  border-radius: 10px;
  object-fit:cover;
  opacity:0;
  transition:opacity .4s ease;
  z-index: 1;
}

.slides img.active { opacity:1; }

.slides img,
.slides iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:70%;
  border-radius: 10px;
  object-fit:cover;
  border:0;
  opacity:0;
  transition:opacity .4s ease;
}
.slides .active{ opacity:1; }

/*  put this with your other .slides rules  */
.slides > *            { pointer-events:none; z-index:1; }  /* all slides ignore clicks   */
.slides > *.active     { pointer-events:auto; z-index:2; }  /* only the visible slide responds */

.nav {
  position:absolute;
  top:50%;
  transform:translateY(-30%);
  width:50px;
  height:50px;
  border:none;
  border-radius:50%;
  font-size:3.5rem;
  line-height:1;
  color:#000000;
  background: #71c44e;
  cursor:pointer;
  transition:.3s;
  z-index: 10;
  inset-block-start: 50%;                /* vertical-center RTL-friendly */
  translate: 0 -50%;
  inset-inline-start: 1rem;              /* ← prev  at 1 rem inside */
}
.nav.next { inset-inline-start: auto; inset-inline-end: 1rem; } /* → next */

.nav:hover { background:rgba(0,0,0,.65); }


@media (max-width: 900px) {
    .nav.next {
      left: -0.5rem;
      right: auto;
    }
    .nav.prev {
      right: -0.5rem;
      left: auto;
    }
  }


  @media (max-width: 767px) {
    .nav-icon {
      width: 30px;
      height: 30px;
    }
  }
