:root {
  --primary-color: #E63946;
  --secondary-color: #F77F00;
  --accent-color: #FCBF49;
  --text-dark: #2D3748;
  --text-medium: #4A5568;
  --text-light: #718096;
  --background-light: #F8F9FA;
  --background-gray: #F1F3F4;
  --background-section: #F8F9FA;
  --border-light: #E2E8F0;
  --shadow: rgba(45, 55, 72, 0.08);
  --shadow-hover: rgba(45, 55, 72, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 1.3rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--background-gray);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1002;
  font-weight: 600;
}

.skip-link:focus {
  top: 6px;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-color), #C53030);
  color: white;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 20px var(--shadow-hover);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.sidebar-header {
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin-bottom: 0.5rem;
}

.sidebar-header .display-6 {
  font-size: 2.5rem;
  font-weight: 600;
  opacity: 0.9;
}

.sidebar-nav {
  padding: 1rem 0;
  list-style: none;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 0 25px 25px 0;
  margin: 0.25rem 0 0.25rem 1rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateX(5px);
}

.sidebar-nav .nav-link i {
  width: 20px;
  font-size: 1.1rem;
  text-align: center;
}

/* Mobile Toggle */
.mobile-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.mobile-toggle:hover {
  background: #C53030;
  transform: scale(1.05);
}

/* Hide mobile toggle on mobile devices */
@media (max-width: 767.98px) {
  .mobile-toggle {
    display: none !important;
  }
}

/* Mobile Navigation Bar */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary-color), #C53030);
  color: white;
  z-index: 999;
  box-shadow: 0 2px 10px var(--shadow-hover);
  padding: 0.75rem 1rem;
}

/* Ensure mobile nav doesn't interfere with sidebar on mobile */
@media (max-width: 767.98px) {
  .sidebar.show ~ .mobile-nav {
    z-index: 997;
  }
}

.mobile-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
}

.mobile-nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mobile-nav-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  color: white;
}

.mobile-nav-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  opacity: 0.9;
  color: white;
}

.mobile-nav-toggle {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.mobile-nav-toggle:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Main Content */
.main-content {
  margin-left: 280px;
  min-height: 100vh;
  background: var(--background-light);
  transition: margin-left 0.3s ease;
}

.content-section {
  display: none;
  padding: 3rem 2rem;
  animation: fadeIn 0.4s ease-out;
}

.content-section.active {
  display: block;
}

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

/* Typography - Consistent Sizing */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.3rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.7rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.2rem; }

/* Section Headings - Consistent Style */
.section-heading {
  font-size: 2.3rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  text-align: left;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Home Banner */
.home-banner-img {
  width: 80%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px var(--shadow);
  margin: 0 auto 3rem auto;
  display: block;
}

/* Profile Images and Text Layout Fix */
.row.align-items-start {
  align-items: flex-start !important;
}

.profile-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform 0.3s ease;
  margin-bottom: 2rem;
}

.profile-image-container:hover {
  transform: translateY(-5px);
}

.profile-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

/* Floating Images for Text Wrapping */
.profile-image-float,
.book-cover-float {
  float: left;
  margin: 0 2rem 1rem 0;
  border-radius: 15px;
  box-shadow: 0 8px 25px var(--shadow);
  transition: transform 0.3s ease;
  max-width: 300px;
  width: 100%;
  height: auto;
}
.profile-image-float{
  max-width: 500px;
}
.profile-image-float:hover,
.book-cover-float:hover {
  transform: translateY(-5px);
}

.about-content-wrapper,
.book-content-wrapper {
  overflow: hidden;
  margin-bottom: 2rem;
}

.clearfix {
  clear: both;
}

.about-preview-section,
.about-main-section {
  margin-bottom: 3rem;
}

.book-text-content {
  text-align: left;
}

/* Content Text - Improved Wrapping */
.content-text {
  padding-left: 0;
}

.text-content {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

.text-content p {
  margin-bottom: 1.5rem;
}

.text-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Language Navigation - Make it Sticky */
.language-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background-light);
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--border-light);
  box-shadow: 0 2px 10px var(--shadow);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.language-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: -1;
}

.language-scroll-btn {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin: 0.25rem;
  cursor: pointer;
  user-select: none;
}

.language-scroll-btn:hover,
.language-scroll-btn.active,
.language-scroll-btn:focus {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
  outline: none;
}

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

.language-scroll-btn i {
  margin-right: 0.5rem;
}

/* Improve language sections spacing */
.language-section {
  scroll-margin-top: 120px;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-light);
}

.language-section:last-child {
  border-bottom: none;
}

/* Media Cards - Consistent Styling */

/* Enhanced contrast for YouTube embeds */
.video-container {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
  border-bottom: 3px solid #333;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: contrast(1.1) brightness(1.05);
}

.media-info {
  padding: 1rem;
  background: var(--background-gray);
  border-top: 1px solid #e9ecef;
}

.media-info h3,
.media-info h4 {
  font-size: 1.1rem;
  line-height: 1.3;
  color: #1a202c;
  margin: 0;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* Featured videos grid adjustments */
.media-section .row .col-lg-3 {
  margin-bottom: 1.5rem;
}

.media-section .row .col-lg-3 .media-card {
  height: auto;
  min-height: auto;
}

/* Ensure proper spacing for media cards */
.media-section .row {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.media-section .row > [class*="col-"] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Enhanced media card styling */
.media-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.3s ease;
  height: auto;
  margin-bottom: 2rem;
  border: 2px solid #e0e0e0;
  position: relative;
}

.media-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.media-card:hover::before {
  opacity: 1;
}

.media-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px var(--shadow-hover);
  border-color: var(--primary-color);
}

/* Responsive adjustments for featured videos */
@media (max-width: 1199.98px) {
  .media-section .row .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 767.98px) {
  .media-section .row .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .media-section .row .col-lg-3 .media-card {
    min-height: auto;
  }
}

/* Book Section */
.book-section {
  background: var(--background-gray);
  border-radius: 20px;
  padding: 3rem;
  margin: 2rem 0;
}

.book-cover-container {
  text-align: center;
  margin-bottom: 2rem;
}

.book-cover-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform 0.3s ease;
}

.book-cover-image:hover {
  transform: scale(1.05);
}

.book-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Buttons - Consistent Styling */
.btn-primary,
.learn-more-btn {
  background: var(--primary-color);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover,
.learn-more-btn:hover {
  background: #C53030;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
  color: white;
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

/* Tables - Improved Styling */
.table {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  margin: 2rem 0;
}

.table th {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  padding: 1rem;
  border: none;
}
.table th:first-child {
  border-right: 3px solid var(--border-light);
}
.table td {
  padding: 1rem;
  border-top: 1px solid var(--border-light);
  vertical-align: top;
}
.table td:first-child {
  border-right: 2px solid var(--border-light);
}

.table-striped tbody tr:nth-of-type(odd) {
  background: var(--background-gray);
}

/* Experience Items */
.experience-item {
  background: var(--background-gray);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.2s ease;
  border: 2px solid #e0e0e0;
}

.experience-item:hover {
  transform: translateX(5px);
  border-color: var(--primary-color);
}

.experience-item .year {
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.experience-item .text-content {
  color: var(--text-dark);
  font-weight: 500;
}

.experience-item .text-content strong {
  color: var(--text-dark);
  font-weight: 700;
}

/* Subsection Heading */
.subsection-heading {
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

/* Contact Section */
.contact-section {
  background: var(--background-gray);
  border-radius: 20px;
  padding: 3rem;
  margin: 2rem 0;
}

.contact-section address {
  font-style: normal;
  font-size: 1.1rem;
}

.contact-section a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.contact-section a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--background-light);
  padding: 2rem 0;
  margin-left: 280px;
  transition: margin-left 0.3s ease;
  text-align: center;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 50%;
  font-size: 1rem;
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
  z-index: 1000;
}

#backToTop:hover {
  background: #C53030;
  transform: translateX(-50%) scale(1.1);
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 1199.98px) {
  .main-content {
    margin-left: 0;
  }
  
  .sidebar {
    width: 320px;
    transform: translateX(-100%);
    z-index: 1001;
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
  
  .site-footer {
    margin-left: 0;
  }
}

@media (max-width: 991.98px) {
  .content-section {
    padding: 2rem 1rem;
  }
  
  .section-heading {
    font-size: 2rem;
  }
  
  h1 { font-size: 2.3rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.7rem; }
  
  .home-banner-img {
    width: 90%;
    border-radius: 10px;
  }
  
  .book-section,
  .contact-section {
    padding: 2rem;
    border-radius: 15px;
  }
  
  .experience-item {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 1.2rem;
  }
  
  .content-section {
    padding: 1.5rem 1rem;
  }
  
  .section-heading {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
  }
  
  .sidebar {
    width: 85vw;
    max-width: 300px;
    z-index: 1001;
    top: 0;
  }
  
  .sidebar-title {
    font-size: 4rem;
  }
  
  .sidebar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  
  .language-nav {
    padding: 1rem 0;
  }
  
  .language-scroll-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin: 0.125rem;
  }
  
  .media-card {
    margin-bottom: 1.5rem;
  }
  
  .book-section,
  .contact-section {
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 12px;
  }
  
  .experience-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .text-content {
    font-size: 1.2rem;
  }
  
  .profile-image-container {
    margin-bottom: 1.5rem;
  }
  
  .home-banner-img {
    width: 95%;
  }
  
  /* Mobile navigation adjustments */
  .main-content {
    margin-top: 80px;
    margin-left: 0;
  }
  
  /* Ensure sidebar doesn't overlap mobile nav */
  .sidebar.show {
    top: 0;
    height: 100vh;
  }
}

@media (max-width: 575.98px) {
  .content-section {
    padding: 1rem 0.5rem;
  }
  
  .section-heading {
    font-size: 1.4rem;
  }
  
  .sidebar-header {
    padding: 1.5rem 1rem;
  }
  
  .sidebar-title {
    font-size: 1.75rem;
  }
  
  .book-section,
  .contact-section,
  .experience-item {
    padding: 1rem;
  }
  
  .btn-primary,
  .learn-more-btn,
  .language-scroll-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  #backToTop {
    top: 1rem;
    padding: 0.6rem;
    font-size: 0.9rem;
  }
  
  .home-banner-img {
    width: 100%;
  }
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar.show ~ .sidebar-overlay {
  display: block;
  opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C53030;
}

/* Performance optimizations */
.media-card,
.profile-image-container,
.experience-item {
  will-change: transform;
}

/* Loading states */
.media-card iframe {
  transition: opacity 0.3s ease;
}

.media-card iframe[loading] {
  opacity: 0.5;
}

.media-card iframe[loading="lazy"] {
  opacity: 1;
}

/* Improve hover effects */
.profile-image-float:hover,
.book-cover-float:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 35px var(--shadow-hover);
}

.media-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px var(--shadow-hover);
}

/* Button loading states */
.btn-primary:disabled,
.learn-more-btn:disabled,
.language-scroll-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Improved focus states for accessibility */
.media-card:focus,
.btn-primary:focus,
.learn-more-btn:focus,
.language-scroll-btn:focus {
  outline: 3px solid rgba(230, 57, 70, 0.4);
  outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
a, button, .media-card, .profile-image-float, .book-cover-float {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .profile-image-float:hover,
  .book-cover-float:hover,
  .media-card:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #CC0000;
    --text-dark: #000000;
    --background-light: #FFFFFF;
    --border-light: #666666;
  }
  
  .media-card,
  .experience-item,
  .book-section,
  .contact-section {
    border: 2px solid var(--text-dark);
  }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #FF6B6B;
    --text-dark: #F7FAFC;
    --text-medium: #E2E8F0;
    --text-light: #CBD5E0;
    --background-light: #1A202C;
    --background-gray: #2D3748;
    --background-section: #2A2D3A;
    --border-light: #4A5568;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
  }
  
  .language-nav::before {
    background: rgba(26, 32, 44, 0.95);
  }
}

/* Print styles */
@media print {
  .sidebar,
  .mobile-toggle,
  .language-nav,
  #backToTop {
    display: none;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .content-section {
    display: block !important;
    page-break-inside: avoid;
  }
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Responsive adjustments for floating images */
@media (max-width: 767.98px) {
  .profile-image-float,
  .book-cover-float {
    float: none;
    display: block;
    margin: 0 auto 1.5rem auto;
    max-width: 250px;
  }
  
  .about-content-wrapper,
  .book-content-wrapper {
    text-align: left;
  }
}

/* Media Cards */
.media-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid transparent;
}

.media-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px var(--shadow-hover);
  border-color: var(--primary-color);
}

.media-card:focus {
  outline: 3px solid rgba(230, 57, 70, 0.4);
  outline-offset: 2px;
}

.video-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.media-info {
  padding: 1.5rem;
}

.media-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.4;
}

/* Video Tags */
.video-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.language-tag {
  background: var(--accent-color);
  color: var(--text-dark);
}

.content-tag {
  background: var(--secondary-color);
  color: white;
}

/* Filter Controls */
.filter-controls {
  background: var(--background-gray);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 2px 10px var(--shadow);
}

.filter-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.language-filter-btn,
.content-filter-btn {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 120px;
}

.language-filter-btn:hover,
.content-filter-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.language-filter-btn.active,
.content-filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Video Count */
#video-count {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-medium);
}

/* Unified Media Section */
.unified-media-section {
  min-height: 400px;
}

/* Responsive adjustments for filter controls */
@media (max-width: 767.98px) {
  .filter-controls {
    padding: 1.5rem;
  }
  
  .language-filter-btn,
  .content-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: 100px;
  }
  
  .filter-label {
    font-size: 1.1rem;
  }
}
