:root {
  --color-primary: #1e5821;
  --color-secondary: #d4af37;
  --color-bg: #f9f9f9;
  --color-white: #ffffff;
  --color-gray-dark: #333333;
  --color-gray-light: #777777;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--color-gray-dark);
  background-color: var(--color-bg);
}

/* Header Styles */
.header {
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-gray-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(30, 88, 33, 0.05), rgba(42, 122, 46, 0.05)), 
              url('images/Hero.jpg') center/cover;
  color: var(--color-white);
  padding: 8rem 0 4rem;
  text-align: center;
  margin-top: 70px;
  position: relative;
  min-height: 80vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 88, 33, 0.1), rgba(42, 122, 46, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
  color: var(--color-white);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  color: var(--color-white);
}

.cta-button {
  background: var(--color-secondary);
  color: var(--color-gray-dark);
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  background: #e6c547;
}

/* Video Section */
.video-section {
  margin-bottom: 6rem;
  background: var(--color-white);
  border-radius: 25px;
  padding: 4rem 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 177.78%; /* 9:16 aspect ratio for vertical video */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.video-info {
  padding: 2rem;
}

.video-info h3 {
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.video-info p {
  color: var(--color-gray-dark);
  font-size: 1.1rem;
  line-height: 1.8;
}

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

/* Blog Section */
.blog-section {
  margin-bottom: 6rem;
}

.section-title {
  font-size: 2.8rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--color-secondary);
  border-radius: 2px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.blog-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.blog-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  padding: 10px;
}

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

.blog-age-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-secondary);
  color: var(--color-gray-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.blog-card-content {
  padding: 2rem;
}

.blog-card h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
}

.blog-card p {
  color: var(--color-gray-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.read-more-btn {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background: #2a7a2e;
  transform: translateY(-2px);
}

/* Groups Section */
.groups-section {
  margin-bottom: 6rem;
}

.groups-container {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.group-section {
  background: var(--color-white);
  border-radius: 25px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.group-section:hover {
  transform: translateY(-5px);
}

.group-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--color-bg);
}

.group-image {
  width: 200px;
  height: 150px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.group-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.group-info {
  flex: 1;
}

.group-title {
  color: var(--color-primary);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.group-age {
  color: var(--color-secondary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.group-description {
  color: var(--color-gray-light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.group-duration {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.book-card {
  background: var(--color-white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.book-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--color-secondary);
}

.book-cover {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  padding: 10px;
}

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

.book-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 88, 33, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--color-white);
}

.book-card:hover .book-overlay {
  opacity: 1;
}

.book-overlay i {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.book-overlay span {
  font-weight: 600;
  font-size: 1.2rem;
}

.book-info {
  padding: 1.8rem;
}

.book-title {
  color: var(--color-primary);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.book-id {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* About Section */
.about-section {
  margin-bottom: 6rem;
  background: var(--color-white);
  border-radius: 25px;
  padding: 4rem 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text h3 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.about-text p {
  color: var(--color-gray-dark);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--color-bg);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

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

.stat-item h4 {
  font-size: 2.5rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--color-gray-light);
  font-weight: 600;
}

/* Contact Section */
.contact-section {
  margin-bottom: 4rem;
  background: var(--color-white);
  border-radius: 25px;
  padding: 4rem 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3,
.contact-form h3 {
  color: var(--color-primary);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--color-secondary);
  width: 30px;
}

.contact-item h4 {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.contact-item p {
  color: var(--color-gray-dark);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--color-bg);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.submit-btn {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background: #2a7a2e;
  transform: translateY(-2px);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--color-white);
  margin: 2rem;
  padding: 0;
  border-radius: 25px;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.8rem;
  color: var(--color-white);
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Book Modal Styles */
.modal-book-header {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  padding: 2rem;
  border-bottom: 2px solid var(--color-bg);
}

.modal-book-cover {
  width: 250px;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.modal-book-info h2 {
  color: var(--color-primary);
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.modal-book-id,
.modal-collection,
.modal-age-range {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.modal-book-id strong,
.modal-collection strong,
.modal-age-range strong {
  color: var(--color-primary);
}

.modal-book-id {
  color: var(--color-secondary);
  font-weight: 600;
}

.modal-collection,
.modal-age-range {
  color: var(--color-gray-dark);
}

.modal-description {
  padding: 2rem;
  border-bottom: 2px solid var(--color-bg);
}

.modal-description h3 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.modal-description p {
  color: var(--color-gray-dark);
  line-height: 1.8;
  font-size: 1rem;
}

.modal-assets {
  padding: 2rem;
}

.modal-assets h3 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.asset-item {
  text-align: center;
  background: var(--color-bg);
  border-radius: 15px;
  padding: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.asset-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.asset-item::before {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  background: rgba(30, 88, 33, 0.9);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-item:hover::before {
  opacity: 1;
}

.asset-item:hover img {
  filter: brightness(0.7);
}

.asset-item img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: filter 0.3s ease;
  background: white;
  padding: 5px;
}

.asset-item p {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Blog Modal Styles */
.blog-modal-header {
  position: relative;
  margin-bottom: 2rem;
}

.blog-modal-image {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: 25px 25px 0 0;
  background: #f8f9fa;
  padding: 20px;
}

.blog-modal-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--color-white);
  padding: 2rem;
}

.blog-modal-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.blog-modal-content {
  padding: 2rem;
}

.blog-modal-content p {
  color: var(--color-gray-dark);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* Image Viewer Styles */
.image-viewer {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
}

.image-viewer.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-viewer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
}

.image-viewer-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.image-viewer-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 80vh;
}

.image-viewer-container img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-viewer-info {
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 2rem;
  border-radius: 10px;
  margin-top: 1rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.image-viewer-info h3 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.image-viewer-info p {
  color: var(--color-gray-dark);
  font-size: 1rem;
}

.image-viewer-close {
  position: absolute;
  top: -60px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 2rem;
  color: var(--color-white);
  cursor: pointer;
  transition: background-color 0.3s ease;
  backdrop-filter: blur(10px);
}

.image-viewer-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.image-viewer-controls {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.image-nav-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.image-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.image-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Footer */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  color: var(--color-secondary);
  font-size: 1.3rem;
  font-weight: 600;
}

.footer-section p {
  margin-bottom: 0.8rem;
  opacity: 0.9;
  line-height: 1.6;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--color-white);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
  opacity: 1;
  color: var(--color-secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--color-white);
  font-size: 1.8rem;
  transition: all 0.3s ease;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  color: var(--color-secondary);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.8;
}

/* Performance optimizations */
.book-cover img,
.blog-image img,
.group-image img {
  will-change: transform;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    min-height: 60vh;
    padding: 6rem 0 3rem;
    background-size: cover;
    background-position: center;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .video-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .video-wrapper {
    padding-bottom: 56.25%; /* 16:9 aspect ratio for mobile */
  }

  .group-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .group-image {
    justify-self: center;
  }

  .group-title {
    font-size: 1.8rem;
  }

  .books-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    margin: 1rem;
  }

  .modal-book-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .modal-book-cover {
    justify-self: center;
  }

  .modal-book-info {
    padding: 1.5rem;
  }

  .modal-book-info h2 {
    font-size: 1.8rem;
  }

  .group-section {
    padding: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .assets-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .image-viewer-container img {
    max-height: 60vh;
  }

  .image-viewer-close {
    top: -50px;
    right: -10px;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 1rem;
  }

  .hero {
    padding: 6rem 0 3rem;
    min-height: 50vh;
    background-size: cover;
    background-position: center;
  }

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

  .main-content {
    padding: 2rem 1rem;
  }

  .video-section {
    padding: 2rem 1.5rem;
  }

  .video-wrapper {
    padding-bottom: 75%; /* 4:3 aspect ratio for small mobile */
  }

  .video-info h3 {
    font-size: 1.5rem;
  }

  .group-section {
    padding: 1.5rem;
  }

  .footer {
    padding: 2rem 1rem 1rem;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }

  .book-cover {
    height: 250px;
  }

  .modal-book-cover {
    width: 200px;
    height: 280px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 1.5rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .assets-grid {
    grid-template-columns: 1fr 1fr;
  }

  .image-viewer-container img {
    max-height: 50vh;
  }

  .image-viewer-controls {
    flex-direction: row;
    justify-content: center;
  }
}

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

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header,
  .footer,
  .modal,
  .image-viewer {
    display: none;
  }
  
  .hero {
    background: var(--color-primary);
    color: var(--color-white);
  }
}

/* Intersection Observer animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}