:root {
  --primary-red: #FF4444;
  --dark-red: #E63946;
  --light-gray: #F8F9FA;
  --text-dark: #2C3E50;
  --text-light: #6C757D;
}

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

body {
  font-size: 1.25rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-gray);
  overflow-x: hidden;
}

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

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

/* Breadcrumb */
.breadcrumb-nav {
  padding: 1rem 2rem;
  background: rgba(255, 68, 68, 0.1);
  margin-left: 250px;
  transition: margin-left 0.3s ease;
}

.breadcrumb {
  margin: 0;
  background: transparent;
}

.breadcrumb-item a {
  color: var(--primary-red);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--text-dark);
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: white;
  z-index: 1000;
  transition: transform 0.3s ease;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  overflow-y: auto;
  max-height: 100vh;
  overflow-x: hidden;
}

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

.sidebar-header h4 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
}

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

/* Sidebar Title Larger and Left-Aligned */
.sidebar-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 2rem;
    text-align: left;
}

/* Sidebar Nav Buttons Larger */
.sidebar-nav .nav-link {
    font-size: 1.35rem;
    padding: 1.1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    font-weight: 600;
}
.sidebar-nav .nav-link i {
    font-size: 1.5rem;
}

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

.sidebar-nav .nav-link i {
  margin-right: 0.75rem;
  width: 20px;
}

/* Mobile Toggle */
.mobile-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  background: var(--primary-red);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.mobile-toggle:hover {
  background: var(--dark-red);
  transform: scale(1.05);
}

/* Main Content */
.main-content {
  margin-left: 250px;
  min-height: 100vh;
  background: white;
  transition: margin-left 0.3s ease;
}

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

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

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

/* Hero Section */
.hero-section {
  margin-bottom: 3rem;
}

/* Hero Main Title for Typing Effect - Larger */
.main-title {
    font-size: 4rem;
    font-weight: 800;
    min-height: 4.5rem;
    letter-spacing: 1.5px;
    color: #222;
    margin-bottom: 0.5rem;
}
#typing-effect {
    border-right: 2px solid #222;
    padding-right: 4px;
    white-space: nowrap;
    display: inline-block;
    min-width: 180px;
}

.subtitle {
  font-size: 2.2rem;
  color: var(--primary-red);
  font-weight: 600;
  position: relative;
}

.subtitle::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-red);
}

/* Profile Image */
.profile-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

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

.profile-image-container:hover .profile-image {
  transform: scale(1.05);
}

/* Content Text */
.content-text {
  padding-left: 2rem;
}

.section-heading {
  font-size: 2.5rem;
  color: var(--primary-red);
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
}


.text-content p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.text-content strong {
  color: var(--primary-red);
}

/* Know More Button */
.know-more-btn {
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
  background: transparent;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.know-more-btn:hover {
  background: var(--primary-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
}

.know-more-btn i {
  margin-right: 0.5rem;
}

/* Media Section */
.media-section {
  padding: 2rem 0;
}

.media-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  height: 100%;
  cursor: pointer;
}

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

.video-thumbnail {
  position: relative;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.media-card:hover .video-thumbnail img {
  transform: scale(1.1);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 68, 68, 0.9);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.media-card:hover .play-button {
  background: var(--primary-red);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Embedded Video Container Styles */
.video-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #000;
  aspect-ratio: 16/9;
}

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

.media-info {
  padding: 1.5rem;
}

.media-info h3,
.media-info h4 {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text-dark);
  margin: 0;
  font-weight: 600;
}

.media-info h4 {
  font-size: 1.2rem;
}

/* Language Navigation */
.language-nav {
  margin-bottom: 2rem;
}

.language-scroll-btn {
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
  background: transparent;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.language-scroll-btn:hover {
  background: var(--primary-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
}

.language-scroll-btn.active {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
}

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

/* Language Sections */
.language-section {
  border-bottom: 2px solid var(--light-gray);
  padding-bottom: 2rem;
  scroll-margin-top: 100px; /* Account for fixed header */
}

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

/* Book Section */
.book-section {
  padding: 2rem 0;
}

.book-cover-container {
  text-align: center;
  padding: 1rem;
  background: transparent; /* Removed background */
  border-radius: 15px;
  transition: all 0.3s ease;
}

.book-cover-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  border: none; /* Removed border */
}

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

.book-description {
  padding: 2rem;
}

.book-title {
  color: var(--primary-red);
  font-weight: 600;
  margin-bottom: 1rem;
}

.btn-primary {
  background: var(--primary-red);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
}

/* Learn More Button Styles */
.learn-more-btn {
  background: var(--primary-red);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: white;
}

.learn-more-btn:hover {
  background: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
  color: white;
}

/* Footer */
.site-footer {
  background: var(--text-dark);
  color: white;
  padding: 2rem 0;
  margin-left: 250px;
  transition: margin-left 0.3s ease;
}

/* Contact Section */
.contact-section address {
  font-style: normal;
}

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

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

/* About Section Styling */
#about article {
  max-width: 800px;
}

#about h2 {
  color: var(--primary-red);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#about h3 {
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

#about ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

#about li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* About Section Specific Styles */
.experience-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 68, 68, 0.05);
  border-radius: 10px;
  border-left: 4px solid var(--primary-red);
}

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

.subsection-heading {
  color: var(--text-dark);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-red);
}

/* Section Backgrounds for Contrast */
.home-section, #home.content-section { background: #fff; border-radius: 18px; box-shadow: 0 4px 24px rgba(44,62,80,0.07); margin-bottom: 2.5rem; }
.media-section, #media.content-section { background: #f6f7fa; border-radius: 18px; box-shadow: 0 4px 24px rgba(44,62,80,0.07); margin-bottom: 2.5rem; }
.book-section, #blog.content-section { background: #fff7f7; border-radius: 18px; box-shadow: 0 4px 24px rgba(255,68,68,0.07); margin-bottom: 2.5rem; }
.contact-section, #contact.content-section { background: #f8f9fa; border-radius: 18px; box-shadow: 0 4px 24px rgba(44,62,80,0.07); margin-bottom: 2.5rem; }
#about.content-section { background: #f6f7fa; border-radius: 18px; box-shadow: 0 4px 24px rgba(44,62,80,0.07); margin-bottom: 2.5rem; }

/* Section Padding and Spacing */
.content-section { padding: 3rem 2.5rem; }
@media (max-width: 767.98px) {
  .content-section { padding: 1.5rem 0.5rem; }
}

/* Center and Symmetry for Headings */
.section-heading, .main-title, .book-title, .subsection-heading, #about-heading, #book-heading, #media-heading, #contact-heading {
  text-align: left !important;
  margin-left: 0;
  margin-right: 0;
}

/* Modern Container Look */
.profile-image-container, .media-card, .anti-corruption-section, .contact-section, .content-section {
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(44,62,80,0.07);
}

/* Sidebar Visual Distinction */
.sidebar {
  box-shadow: 4px 0 24px rgba(44,62,80,0.10);
  border-right: 2px solid #e63946;
}
.sidebar-header {
  background: rgba(255,255,255,0.08);
  border-bottom: 2px solid #fff2;
  border-radius: 0 0 18px 18px;
}

/* Font Accessibility: Ensure large readable font */
body, .content-section, .sidebar-nav .nav-link, .section-heading, .main-title, .book-title, .subsection-heading {
  font-size: 1.25rem;
}
.section-heading, .main-title, .book-title, .subsection-heading {
  font-size: 2.2rem;
}
@media (max-width: 991.98px) {
  .section-heading, .main-title, .book-title, .subsection-heading {
    font-size: 2rem;
  }
}

/* Improve spacing between sections */
hr {
  border: none;
  border-top: 2px solid #f1f1f1;
  margin: 2.5rem 0;
}

/* Responsive: Add more breathing room on mobile */
@media (max-width: 991.98px) {
  .main-content { margin-left: 0; }
  .content-section { margin-bottom: 1.5rem; }
}

/* Larger body text on mobile for readability */
@media (max-width: 575.98px) {
  body {
    font-size: 1.35rem;
  }
  .text-content p {
    font-size: 1.3rem;
    line-height: 1.8;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-red);
}

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

/* Print styles */
@media print {
  .sidebar,
  .mobile-toggle,
  .breadcrumb-nav {
      display: none;
  }
  
  .main-content {
      margin-left: 0;
  }
  
  .content-section {
      display: block !important;
  }
}

/* Home banner image (no border/shadow) */
.home-banner-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
}

/* Remove old banner styles */

@media (min-width: 992px) {
  .home-banner-img {
    width: auto;
    max-width: 88%;
    margin: 0;
  }
}
@media (max-width: 991.98px) {
  .sidebar {
    width: 85vw;
    max-width: 350px;
    left: 0;
    top: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    z-index: 2000;
    border-radius: 0 18px 18px 0;
    box-shadow: 4px 0 24px rgba(44,62,80,0.18);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-content,
  .breadcrumb-nav,
  .site-footer {
    margin-left: 0 !important;
  }
  .mobile-toggle {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 3000;
    display: block;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44,62,80,0.35);
    z-index: 1500;
    transition: opacity 0.3s;
  }
  .sidebar.show ~ .sidebar-overlay {
    display: block;
    opacity: 1;
  }
  .content-section {
    padding: 1.2rem 0.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
  }
  .profile-image-container, .book-cover-container, .media-card, .anti-corruption-section, .contact-section, .content-section {
    border-radius: 12px;
  }
  .section-heading, .main-title, .book-title, .subsection-heading {
    font-size: 1.3rem;
  }
  .sidebar-header {
    padding: 1.2rem 1rem 1rem 1rem;
  }
  .sidebar-header h4, .sidebar-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }
  .sidebar-header .display-6, .sidebar-header .fw-bold {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .sidebar-nav {
    padding: 0.5rem 0;
  }
  .sidebar-nav .nav-link {
    font-size: 1.05rem;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    gap: 0.7rem;
  }
  .sidebar-nav .nav-link i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
  }
}
