/* Wafez.com - Health & Wellness Website CSS */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  text-decoration: none;
  color: white;
}

.logo:hover {
  color: #ecf0f1;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: rgba(255,255,255,0.2);
}

/* Carousel */
.carousel {
  background: #1e8449;
  padding: 1rem 0;
  overflow: hidden;
}

.carousel-content {
  display: flex;
  animation: scroll 30s linear infinite;
  gap: 2rem;
}

.carousel-item {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  white-space: nowrap;
  transition: background-color 0.3s;
}

.carousel-item:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

@keyframes scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Main Grid Layout */
.main-grid {
  display: grid;
  grid-template-columns: minmax(0,3fr) minmax(0,1fr);
  gap: 2rem;
  margin: 2rem 0;
  align-items: start;
}

.main-grid > article { 
  grid-column: 1; 
  min-width: 0; 
}

.main-grid > #__sidebar { 
  grid-column: 2; 
}

/* MOBILE FIX: stack normally and disable sticky */
@media (max-width: 768px){
  .main-grid{
    grid-template-columns: 1fr;
  }
  .main-grid > article,
  .main-grid > #__sidebar{
    grid-column: auto;
    grid-row: auto;
  }
  #__sidebar{
    position: static;
    width: auto;
    box-shadow: none;
  }
}

/* Cards */
.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.card .pad {
  padding: 2rem;
}

/* Article Styles */
.article h1 {
  color: #27ae60;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article h2 {
  color: #27ae60;
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
  border-bottom: 2px solid #2ecc71;
  padding-bottom: 0.5rem;
}

.article h3 {
  color: #1e8449;
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem 0;
}

.article p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Meta Information */
.meta {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ecf0f1;
}

/* Table of Contents */
.toc {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.toc strong {
  color: #27ae60;
  font-size: 1.2rem;
}

.toc ol {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.toc a {
  color: #27ae60;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.table th {
  background: #27ae60;
  color: white;
  font-weight: 600;
}

.table tr:hover {
  background: #f8f9fa;
}

/* Lists */
ul, ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Links */
a {
  color: #27ae60;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Breadcrumb */
.breadcrumb {
  background: #ecf0f1;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #27ae60;
}

/* Sidebar */
.sidebar {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 2rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.sidebar h3 {
  color: #27ae60;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 0.8rem;
}

.sidebar a {
  color: #34495e;
  text-decoration: none;
  padding: 0.5rem;
  display: block;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.sidebar a:hover {
  background: #f8f9fa;
  color: #27ae60;
}

/* Related Articles */
.list-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.list-2 a {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: #2c3e50;
  border: 1px solid #dee2e6;
  transition: all 0.3s;
}

.list-2 a:hover {
  background: #27ae60;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 0 1rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #2ecc71;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

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

.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  line-height: 2;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #34495e;
  color: #95a5a6;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.btn {
  background: #27ae60;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn:hover {
  background: #229954;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  background: white;
  color: #27ae60;
  padding: 1rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.hero-btn:hover {
  background: #ecf0f1;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.hero-btn.secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* Featured Section */
.featured {
  margin: 3rem 0;
}

.featured h2 {
  text-align: center;
  color: #27ae60;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

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

.featured-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.featured-card-header {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: white;
  padding: 1.5rem;
}

.featured-card-header h3 {
  margin: 0;
  color: white;
}

.featured-card-body {
  padding: 1.5rem;
}

.featured-card-body p {
  color: #7f8c8d;
  margin-bottom: 1rem;
}

.featured-card-footer {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.read-more {
  color: #27ae60;
  font-weight: 600;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* Categories Section */
.categories {
  margin: 3rem 0;
}

.categories h2 {
  text-align: center;
  color: #27ae60;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

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

.category-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  color: #27ae60;
  margin-bottom: 1rem;
}

.category-card p {
  color: #7f8c8d;
  margin-bottom: 1rem;
}

.category-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.category-card li {
  margin-bottom: 0.5rem;
}

.category-card a {
  color: #27ae60;
  text-decoration: none;
}

.category-card a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    justify-content: center;
  }
  
  .article h1 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .carousel-content {
    animation-duration: 20s;
  }
  
  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .article h1 {
    font-size: 1.8rem;
  }
  
  .article h2 {
    font-size: 1.5rem;
  }
  
  .card .pad {
    padding: 1.5rem;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
}

