/* Import Jameel Noori Nastaleeq font */
@import url('https://fonts.googleapis.com/css2?family=Jameel+Noori+Nastaleeq&display=swap');

/* Custom BLotusBd font for Persian text */
@font-face {
  font-family: 'BLotusBd';
  src: url('https://fonts.fontcdn.ir/BLotusBd.eot');
  src: url('https://fonts.fontcdn.ir/BLotusBd.eot?#iefix') format('embedded-opentype'),
       url('https://fonts.fontcdn.ir/BLotusBd.woff2') format('woff2'),
       url('https://fonts.fontcdn.ir/BLotusBd.woff') format('woff'),
       url('https://fonts.fontcdn.ir/BLotusBd.ttf') format('truetype');
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF; /* Persian/Arabic characters */
}

#preview-render {
  font-family: 'BLotusBd', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 32px;
  color: #373c44;
}

/* CSS Variables */
:root {
  --primary-color: #0a2540;
  --secondary-color: #ffffff;
  --accent-color: #1a365d;
  --text-color: #333333;
  --light-gray: #f5f5f5;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --header-bg: #ffffff;
  --header-text: #333333;
  --header-hover: #0a2540;
  --header-border: #eaeaea;
  --header-height: 80px;
  --logo-size: 60px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'BLotusBd', 'Jameel Noori Nastaleeq', 'Vazir', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-color);
  background-color: var(--secondary-color);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* Header Styles */
.header {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border-bottom: 1px solid var(--header-border);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
}

.logo h2 {
  color: var(--header-text);
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.logo img {
  height: var(--logo-size);
  width: auto;
  transition: var(--transition);
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-menu ul li {
  position: relative;
  transition: var(--transition);
}

.nav-menu ul li a {
  color: var(--header-text);
  padding: 8px 0;
  display: block;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  font-size: clamp(0.8rem, 2vw, 1rem);
  text-decoration: none;
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
  color: var(--header-hover);
}

.nav-menu ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--header-hover);
  transition: var(--transition);
}

.nav-menu ul li a:hover::after,
.nav-menu ul li a.active::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--header-bg);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  z-index: 1000;
  top: 100%;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  border: 1px solid var(--header-border);
}

.dropdown-content a {
  color: var(--header-text);
  padding: 12px 20px;
  display: block;
  font-weight: 400;
  transition: var(--transition);
  border-left: 3px solid transparent;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: var(--light-gray);
  color: var(--header-hover);
  border-left-color: var(--header-hover);
  padding-left: 25px;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-toggle {
  position: relative;
  margin-left: 15px;
}

.lang-btn {
  background-color: transparent;
  color: var(--header-text);
  border: 1px solid var(--header-border);
  padding: 8px 15px;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  font-weight: 500;
  transition: var(--transition);
}

.lang-btn:hover {
  background-color: var(--light-gray);
  color: var(--header-hover);
  border-color: var(--header-hover);
}

.lang-dropdown {
  display: none;
  position: absolute;
  background-color: var(--header-bg);
  min-width: 140px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  z-index: 1000;
  top: 100%;
  right: 0;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  border: 1px solid var(--header-border);
}

.lang-dropdown a {
  color: var(--header-text);
  padding: 12px 18px;
  display: block;
  text-align: center;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.lang-dropdown a:hover {
  background-color: var(--light-gray);
  color: var(--header-hover);
}

.language-toggle:hover .lang-dropdown {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-toggle {
  display: none;
  color: var(--header-text);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.menu-toggle:hover {
  color: var(--header-hover);
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 500px;
  overflow: hidden;
  background-color: var(--light-gray);
}

.slider-container {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  padding: 0 50px;
}

.slide.active {
  opacity: 1;
}

.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.slide-content {
  max-width: 600px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  z-index: 1;
  position: relative;
}

.slide-content .date {
  display: block;
  color: var(--accent-color);
  margin-bottom: 10px;
  font-weight: 500;
}

.slide-content h2 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.slider-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.slider-controls button {
  background-color: rgba(10, 37, 64, 0.7);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}

.slider-controls button:hover {
  background-color: var(--primary-color);
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active,
.dot:hover {
  background-color: var(--secondary-color);
}

/* Section Styles */
.section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-header h2 {
  color: var(--primary-color);
  font-size: 28px;
  margin: 0;
}

.see-more {
  color: var(--primary-color);
  font-weight: 500;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 3px;
}

.see-more:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

/* Card Styles */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content .date {
  display: block;
  color: var(--accent-color);
  margin-bottom: 10px;
  font-size: 14px;
}

.card-content h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.read-more {
  display: inline-flex;
  align-items: center;
  margin-top: 15px;
  color: var(--primary-color);
  font-weight: 500;
  gap: 5px;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.video-card {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.video-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.video-info {
  padding: 20px;
}

.video-info h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.video-info .date {
  display: block;
  color: var(--accent-color);
  margin-top: 10px;
  font-size: 14px;
}

/* Book Grid */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.book-card {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.book-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.book-info {
  padding: 20px;
}

.book-info h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.language-tag {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin: 10px 0;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 500;
  margin-top: 10px;
  transition: var(--transition);
  gap: 8px;
  text-decoration: none;
}

.download-btn:hover {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Magazine Grid */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.magazine-card {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.magazine-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.magazine-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  cursor: pointer;
}

/* Contact Preview */
.contact-preview {
  background-color: var(--light-gray);
  padding: 40px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
}

.contact-preview p {
  margin-bottom: 20px;
  font-size: 18px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  gap: 8px;
  text-decoration: none;
}

.contact-btn:hover {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Footer Styles */
.footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--secondary-color);
  opacity: 0.8;
}

.footer-section ul li a:hover {
  opacity: 1;
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--secondary-color);
  font-size: 18px;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}

/* News Page */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.news-card {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-content .date {
  display: block;
  color: var(--accent-color);
  margin-bottom: 10px;
  font-size: 14px;
}

.news-content h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.news-content p {
  margin-bottom: 15px;
}

.expand-btn {
  background-color: transparent;
  border: none;
  color: var(--primary-color);
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.expand-btn:hover {
  color: var(--accent-color);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color);
}

/* Classes Page */
.search-container {
  margin-bottom: 30px;
  text-align: center;
}

.search-box {
  padding: 12px 20px;
  width: 100%;
  max-width: 500px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
}

/* Books Page */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-tab {
  padding: 10px 20px;
  background-color: var(--light-gray);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: var(--transition);
}

.filter-tab.active,
.filter-tab:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Magazine Page */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--border-radius);
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  font-weight: 300;
}

.prev-img,
.next-img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
}

.prev-img {
  left: 20px;
}

.next-img {
  right: 20px;
}

/* Contact Page */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  margin-top: 30px;
}

.contact-form {
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.contact-info {
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-info h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.contact-detail {
  display: flex;
  margin-bottom: 20px;
}

.contact-icon {
  margin-right: 15px;
  color: var(--primary-color);
  font-size: 20px;
  min-width: 24px;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
}

.success-message {
  display: none;
  background-color: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
}

/* Persian text styling */
h1, h2, h3, h4, h5, h6,
p, span, div, a, li, td, th, label, input, textarea, button, select {
  font-family: 'BLotusBd', 'Jameel Noori Nastaleeq', 'Vazir', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-slider {
    height: 400px;
  }
  
  .slide-content {
    padding: 30px;
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-wrap: wrap;
    height: auto;
    gap: 10px;
    position: relative;
  }
  
  .logo {
    order: 1;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
  }
  
  .logo img {
    height: calc(var(--logo-size) * 0.8);
  }
  
  .logo h2 {
    font-size: 1.2rem;
  }
  
  .nav-menu {
    order: 3;
    width: 100%;
    display: none;
    margin-top: 10px;
    background: var(--header-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
  }
  
  .nav-menu.active {
    display: block;
  }
  
  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .nav-menu ul li {
    margin: 0;
    width: 100%;
  }
  
  .nav-menu ul li a {
    padding: 10px 0;
    width: 100%;
    font-size: 1rem;
  }
  
  .nav-menu ul li a::after {
    width: 0;
  }
  
  .nav-menu ul li a:hover::after,
  .nav-menu ul li a.active::after {
    width: 50px;
  }
  
  .language-toggle {
    order: 2;
    margin-left: 0;
    position: absolute;
    right: 60px;
    top: 25px;
  }
  
  .lang-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  
  .menu-toggle {
    display: block;
    order: 4;
    position: absolute;
    right: 20px;
    top: 25px;
  }
  
  .hero-slider {
    height: 350px;
  }
  
  .slide-content {
    padding: 20px;
    max-width: 90%;
  }
  
  .slide-content h2 {
    font-size: 24px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .card-grid,
  .video-grid,
  .book-grid,
  .magazine-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
  }
  
  .hero-slider {
    height: 300px;
  }
  
  .slide-content {
    padding: 15px;
  }
  
  .slide-content h2 {
    font-size: 20px;
  }
  
  .slider-controls button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .section-header h2 {
    font-size: 24px;
  }
  
  .contact-preview {
    padding: 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .language-toggle {
    right: 50px;
    top: 20px;
  }
  
  .menu-toggle {
    right: 15px;
    top: 20px;
    font-size: 1.5rem;
  }
  
  .nav-menu {
    left: -20px;
    right: -20px;
    padding: 20px;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float a:hover {
  background-color: #128C7E;
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.whatsapp-float i {
  transition: var(--transition);
}

.whatsapp-float a:hover i {
  transform: scale(1.2);
}

/* Welcome Section Styles */
.welcome-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
  padding: 60px 0;
  margin-bottom: 30px;
}

.welcome-content {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.welcome-content h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.welcome-content p {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.feature {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: 280px;
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.feature p {
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--text-color);
}

/* Enhanced Section Styles */
.featured-section {
  margin-bottom: 50px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
}

.section-header h2 {
  color: var(--primary-color);
  font-size: 28px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.card-image:hover img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  z-index: 2;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.card-image:hover .play-icon {
  opacity: 1;
}

/* Card Link Styles */
.card-link, .video-card-link, .book-card-link, .news-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover .card,
.video-card-link:hover .video-card,
.book-card-link:hover .book-card,
.news-card-link:hover .news-card {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-link:hover .card img,
.video-card-link:hover .video-card img,
.book-card-link:hover .book-card img,
.news-card-link:hover .news-card img {
  transform: scale(1.05);
}

/* Detail Page Styles */
.detail-page {
  padding: 40px 0;
}

.detail-content {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  margin-bottom: 30px;
}

.detail-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--light-gray);
}

.detail-image {
  width: 100%;
  max-width: 600px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin: 0 auto;
}

.detail-info h1 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.detail-meta span {
  background-color: var(--light-gray);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.detail-body {
  padding: 20px;
}

.detail-description h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--light-gray);
}

.detail-description p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.detail-specs h3 {
  color: var(--primary-color);
  margin: 20px 0 15px;
}

.detail-specs ul {
  list-style: none;
  padding: 0;
}

.detail-specs li {
  padding: 5px 0;
  border-bottom: 1px solid var(--light-gray);
}

.detail-specs li:last-child {
  border-bottom: none;
}

.detail-actions {
  margin: 20px 0;
}

.no-pdf {
  color: #666;
  font-style: italic;
  padding: 10px;
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  text-align: center;
}

@media (min-width: 768px) {
  .detail-header {
    flex-direction: row;
    align-items: center;
  }
  
  .detail-image {
    width: 40%;
    max-width: 100%;
    height: 300px;
  }
  
  .detail-info {
    width: 60%;
  }
}

/* Gallery Grid Styles for Homepage */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  height: 150px;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Carousel Styles for News Detail Page */
.news-image-carousel {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.carousel {
  position: relative;
  width: 100%;
  height: 400px;
}

.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--primary-color);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.carousel-nav:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.carousel-nav.prev {
  left: 20px;
}

.carousel-nav.next {
  right: 20px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--light-gray);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active,
.indicator:hover {
  background-color: var(--primary-color);
}

/* News Content Images */
.content-image {
  margin: 20px 0;
  text-align: center;
}

.content-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.image-caption {
  margin-top: 10px;
  font-style: italic;
  color: var(--accent-color);
  text-align: center;
}

/* News Detail Actions */
.detail-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-download-pdf {
  display: inline-flex;
  align-items: center;
  background-color: #dc3545;
  color: var(--secondary-color);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  gap: 8px;
  text-decoration: none;
}

.btn-download-pdf:hover {
  background-color: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-telegram-share {
  display: inline-flex;
  align-items: center;
  background-color: #0088cc;
  color: var(--secondary-color);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  gap: 8px;
  text-decoration: none;
}

.btn-telegram-share:hover {
  background-color: #0077b3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

@media (max-width: 768px) {
  .welcome-features {
    flex-direction: column;
    align-items: center;
  }
  
  .feature {
    width: 100%;
    max-width: 350px;
  }
  
  .welcome-content h1 {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .gallery-item {
    height: 120px;
  }
}
