/**
 * Index Page Styles - Page-specific styles only
 * Common styles moved to common.css
 * All original functionality preserved
 * Updated to use CSS custom properties for easy theming
 */

/* === INDEX PAGE SPECIFIC STYLES === */
body {
  padding-top: 66px; /* Primary navbar (56px) + spacing (20px) - INDEX SPECIFIC */
}

/* === HERO SECTION STYLES === */
.hero-section {
  background: var(--gradient-hero);
  color: var(--text-white);
  padding: 6rem 0;
  margin: 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.hero-button {
  background: var(--surface-bg);
  color: var(--primary-color);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-button:hover {
  background: var(--text-light);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
}

/* Discover Section Styles */
.discover-section {
  padding-top: 4rem;
  background: var(--body-bg);
}

.discover-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.discover-header {
  text-align: center;
  margin-bottom: 3rem;
}

.discover-header h2 {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.discover-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.discover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .discover-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.discover-card {
  background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1) 0%, rgba(var(--secondary-color-rgb), 0.1) 100%);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(var(--primary-color-rgb), 0.1);
  position: relative;
  overflow: hidden;
}

.discover-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

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

.discover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(var(--primary-color-rgb), 0.2);
  border-color: var(--primary-color);
}

.discover-card-content {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.discover-card:hover .discover-card-content {
  color: var(--text-white);
}

.discover-card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.discover-card:hover .discover-card-icon {
  color: var(--text-white);
}

.discover-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  transition: color 0.3s ease;
}

.discover-card:hover h3 {
  color: var(--text-white);
}

@media (max-width: 768px) {
  .discover-section {
    padding-top: 3rem;
  }
  
  .discover-container {
    padding: 0 1rem;
  }
  
  .discover-header h2 {
    font-size: 2rem;
  }
  
  .discover-card {
    padding: 1.5rem 1rem;
  }
  
  .discover-card-icon {
    font-size: 2rem;
  }
  
  .discover-card h3 {
    font-size: 1.1rem;
  }
}

/* News & Blog Section Styles */
.news-blog-section {
  padding-top: 4rem;
}

.news-blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .news-blog-section {
    padding-top: 3rem;
  }
  
  .news-blog-container {
    padding: 0 1rem;
  }
}

.news-blog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.news-blog-header h2 {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.news-blog-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.scroll-container {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.scroll-wrapper {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.scroll-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.news-card {
  flex: 0 0 350px;
  background: var(--surface-bg);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(var(--primary-color-rgb), 0.1);
  display: flex;
  flex-direction: column;
  height: 450px; /* Fixed height for all cards */
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(var(--primary-color-rgb), 0.15);
}

.news-image {
  width: 100%;
  height: 200px;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.news-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-white);
  font-size: 1.2rem;
  font-weight: 600;
}

.news-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0; /* Allow content to shrink if needed */
  overflow: hidden; /* Prevent content overflow */
}

.news-category {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--text-white);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  width: auto;
  max-width: fit-content;
}

.news-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.news-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1; /* This pushes the meta section to the bottom */
  overflow: hidden; /* Prevent text overflow */
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  line-clamp: 3; /* Standard property */
  -webkit-box-orient: vertical;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; /* This ensures it stays at the bottom */
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0; /* Prevent the meta section from shrinking */
  min-height: 40px; /* Ensure minimum height for visibility */
}

.news-date {
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--secondary-color);
}

.scroll-nav {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.scroll-nav:hover {
  color: var(--secondary-color);
  transform: scale(1.2);
}

.scroll-nav:active {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .news-card {
    flex: 0 0 280px;
    height: 420px; /* Slightly smaller for mobile */
  }
  
  .news-blog-header h2 {
    font-size: 2rem;
  }
  
  .scroll-navigation {
    display: none;
  }
  
  .news-content {
    padding: 1.2rem; /* Reduced padding for mobile */
  }
  
  .news-category {
    font-size: 0.75rem;
    padding: 0.25rem 0.8rem;
    margin-bottom: 0.8rem;
  }
  
  .news-title {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    line-height: 1.3;
  }
  
  .news-excerpt {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    -webkit-line-clamp: 2; /* Reduce to 2 lines on mobile */
    line-clamp: 2;
  }
  
  .news-meta {
    padding-top: 0.8rem;
    min-height: 35px;
  }
  
  .news-date {
    font-size: 0.8rem;
  }
  
  .read-more {
    font-size: 0.85rem;
  }
}
