* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --primary: #f8fafc;
  --secondary: #ffffff;
  --accent: #2563eb;
  --accent-gradient: linear-gradient(90deg, #2563eb, #3b82f6);
  --text: #1e293b;
  --text-secondary: #64748b;
  --dropdown-bg: rgba(255, 255, 255, 0.95);
  --card-bg: rgba(255, 255, 255, 0.8);
  --search-bg: rgba(255, 255, 255, 0.98);
  --border: #9dc6fc;
  --shadow: rgba(0, 0, 0, 0.05);
  --like: #10b981;
  --dislike: #ef4444;

}

body {
  background-color: var(--primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}



/* ALERTS */

/* ALERT POP UPS */


.success-alert {
  background-color: #4CAF50;
  color: white;
}

.alert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0000009b;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.alert-content {
  width: 350px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.alert-icon {
  margin-bottom: 15px;
}

.alert-icon i {
  font-size: 50px;

}

.alert-message h3 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
}

.alert-message p {
  margin: 0;
  font-size: 1rem;
}

.alert-button {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: white;
  color: #4CAF50;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.alert-button:hover {
  opacity: 0.9;
}


.error-alert {
  background-color: #F44336;
  color: white;
}

.error-alert .alert-button {
  color: #F44336;
}



.confirm-modal {
  background-color: white;
  color: #333;
}

.confirm-modal .alert-icon svg {
  stroke: #4CAF50;
}


/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 5px 20px var(--shadow);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  z-index: 1001;
  letter-spacing: 0.5px;
  border: var(--accent) 1px solid;
  padding: 0 15px;
  border-radius: 30px;
}

.logo img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  padding: 3px;
  border: var(--text) 1px solid;
  margin-right: 3px;

}

.nav-container {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  margin-left: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-item {
  position: relative;
  list-style: none;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: var(--accent);
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: var(--dropdown-bg);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem 0;
  box-shadow: 0 15px 40px var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid var(--border);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

.dropdown-item {
  list-style: none;
}

.dropdown-link {
  display: flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  transition: all 0.3s;
}

.dropdown-link i {
  margin-right: 10px;
  font-size: 0.9rem;
  color: var(--accent);
}

.dropdown-link:hover {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.search-container {
  position: relative;
}

.search-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
}

.search-btn:hover {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.2);
}

.search-box {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background: var(--search-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 15px 40px var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid var(--border);
}

.search-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(10px);
}

.search-box input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 15px;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-box button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: var(--accent-gradient);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.search-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.subscribe-btn {
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  margin-left: 1rem;
}

.mobile-toggle:hover {
  background: rgba(37, 99, 235, 0.2);
}

/* Hero Section with Vertical Carousel */
.hero {
  height: 100vh;
  display: flex;
  padding-top: 80px;
}

.carousel-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.carousel {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.carousel-slide {
  min-height: 100%;
  padding: 2rem 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transition: transform 0.8s ease-in-out;
  overflow: hidden;
}

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.155), rgba(255, 255, 255, 0.172));
}

.slide-content {
  position: relative;
  max-width: 800px;
  z-index: 2;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px var(--shadow);
}

.category-tag {
  display: inline-block;
  background: var(--accent-gradient);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.slide-title {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(to right, #1e293b, #475569);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.slide-excerpt {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.slide-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.meta-item i {
  color: var(--accent);
}

.slide-actions {
  display: flex;
  gap: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: white;
  padding: 1.1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  gap: 0.5rem;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.secondary-button {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 25px var(--shadow);
}

.carousel-controls {
  position: absolute;
  right: 5%;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 10;
}

.carousel-control {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.2rem;
}

.carousel-control:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-3px);
}

.carousel-indicators {
  position: absolute;
  left: 5%;
  bottom: 50px;
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s;
}

.indicator.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* Mobile Nav Styles */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100vh;
  background: var(--secondary);
  z-index: 1002;
  padding: 5rem 2rem 2rem;
  transition: left 0.4s ease;
  overflow-y: auto;
  box-shadow: 5px 0 30px var(--shadow);
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav-item {
  list-style: none;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  padding: 1.2rem 0;
  font-weight: 500;
  font-size: 1.1rem;
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-dropdown-menu.active {
  max-height: 500px;
}

.mobile-dropdown-item {
  list-style: none;
}

.mobile-dropdown-link {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 1rem 0 1rem 1.5rem;
  transition: color 0.3s;
}

.mobile-dropdown-link i {
  margin-right: 10px;
  font-size: 0.9rem;
  color: var(--accent);
}

.mobile-dropdown-link:hover {
  color: var(--accent);
}

.close-menu {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(37, 99, 235, 0.1);
  border: none;
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
}

.close-menu:hover {
  background: rgba(37, 99, 235, 0.2);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* STORIES */

/* Posts Section Styles */
.posts-section {
  padding: 5rem 10px;
  background: var(--primary);
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 6px;
}

.post-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--shadow);
}

.post-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-category {
  display: inline-block;
  background: var(--accent-gradient);
  color: white;
  padding: 0.1rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.post-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: var(--text);
}

.post-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.post-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-stats {
  display: flex;
  gap: 1rem;
}

.post-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-actions {
  display: flex;
  gap: 1rem;
}

.post-btn {
  flex: 1;
  text-align: center;
  padding: 0.7rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  cursor: pointer;
}

.read-btn {
  background: var(--accent-gradient);
  color: white;
  border: none;
  text-decoration: none;
}

.read-btn:hover {
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.save-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.save-btn:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Recommended Section Styles */
.recommended-section {
  padding: 3rem 5%;
  background: var(--secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.recommended-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.recommended-title {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.view-all {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.view-all:hover {
  gap: 0.7rem;
}

.recommended-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recommended-card {
  display: flex;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  min-height: 150px;
}

.recommended-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--shadow);
}

.recommended-image {
  width: 140px;
  min-height: 100%;
  object-fit: cover;
  object-fit: cover;
  flex-shrink: 0;
}

.recommended-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.recommended-category {
  display: inline-block;
  background: var(--accent-gradient);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 16px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.recommended-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  display: block;
}

.recommended-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.recommended-date {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.recommended-stats {
  display: flex;
  gap: 0.8rem;
}

.recommended-stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* FOOTER - Blue Version */

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  padding: 4rem 5% 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #e0f2fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  border: var(--primary) 1px solid;
  padding: 0 15px;
  border-radius: 30px;
}

.footer-logo img {
  width: 35px;
  background: #f4f1f1;
  border-radius: 50%;
  padding: 5px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, #ffffff, #93c5fd);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 0.8rem;
}

.footer-link a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-link i {
  font-size: 0.8rem;
  color: #93c5fd;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.9rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: white;
  background: rgba(255, 255, 255, 0.25);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-btn {
  background: white;
  color: #2563eb;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.newsletter-btn:hover {
  background: #e0f2fe;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transition: all 0.3s;
}

.social-link:hover {
  background: white;
  color: #2563eb;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-bottom-link:hover {
  color: white;
}






/* CATEGORY PAGE */

/* Page Header */
.page-header {
  padding: 8rem 5% 2rem;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  text-align: center;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb span {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-subtitle {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* Category Filters */
.category-filters {
  padding: 2rem 5%;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
}

.filters-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active {
  background: var(--accent-gradient);
  color: white;
  border-color: var(--accent);
}

.filter-btn:hover:not(.active) {
  background: rgba(37, 99, 235, 0.1);
}

.sort-select {
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--text);
  cursor: pointer;
}

/* Posts Section Styles */


.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--shadow);
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-category {
  display: inline-block;
  background: var(--accent-gradient);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.post-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.post-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.9rem;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.post-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-stats {
  display: flex;
  gap: 1rem;
}

.post-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-actions {
  display: flex;
  gap: 1rem;
}

.post-btn {
  flex: 1;
  text-align: center;
  padding: 0.7rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.read-btn {
  background: var(--accent-gradient);
  color: white;
  border: none;
}

.read-btn:hover {
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.save-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.save-btn:hover {
  background: rgba(255, 255, 255, 0.5);
}

.semmor i{
  margin-left: 10px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
}

.page-btn.active {
  background: var(--accent-gradient);
  color: white;
  border-color: var(--accent);
}

.page-btn:hover:not(.active) {
  background: var(--accent);
  color: var(--secondary);
}

.page-btn.dots {
  border: none;
  background: transparent;
  cursor: default;
}

.page-btn.nav {
  width: auto;
  padding: 0 1rem;
}





/* Back Button */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 2rem;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  transition: all 0.3s;
  background: var(--secondary);
  box-shadow: 0 4px 12px var(--shadow);
}

.back-button:hover {
  background-color: rgba(37, 99, 235, 0.1);
  gap: 0.7rem;
  transform: translateY(-2px);
}

/* Article Header */
.article-header {
  text-align: center;
  margin-bottom: 3rem;
  background: var(--secondary);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow);
}

.article-category {
  display: inline-block;
  background: var(--accent-gradient);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.article-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(to right, #1e293b, #475569);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.engagement-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--primary);
  border-radius: 20px;
  font-weight: 500;
}

.article-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 20px;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 15px 30px var(--shadow);
}

/* Article Content */
.article-content {
  max-width: 800px;
  margin: 3rem auto;
  background: var(--secondary);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow);
}

.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-content h2,
.article-content h1 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1.5rem;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.article-content h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  color: var(--text);
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-secondary);
  background: var(--primary);
  border-radius: 0 12px 12px 0;
}

.content-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 16px;
  margin: 2rem 0;
  box-shadow: 0 10px 25px var(--shadow);
}

.image-caption {
  text-align: center;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}

/* Engagement Section */
.engagement-section {
  max-width: 800px;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.engagement-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  background: var(--primary);

}

.like-btn {
  color: var(--primary);
  background: var(--like);
}

.like-btn:hover,
.like-btn.active {
  background: var(--like);
  color: white;
}

.dislike-btn {
  color: var(--primary);
  background: var(--dislike);
}

.dislike-btn:hover,
.dislike-btn.active {
  background: var(--dislike);
  color: white;
}

/* Share Section */
.share-section {
  max-width: 800px;
  margin: 4rem auto 3rem;
  padding: 2.5rem;
  border-radius: 20px;
  background: var(--secondary);
  box-shadow: 0 10px 30px var(--shadow);
}

.share-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
}

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

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  color: white;
  font-size: 1.3rem;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.share-btn.facebook {
  background: #3b5998;
}

.share-btn.twitter {
  background: #000000;
}

.share-btn.instagram {
  background: #E1306C;
}

.share-btn.whatsapp {
  background: #25D366;
}

.share-btn.telegram {
  background: #0088cc;
}

.share-btn.link {
  background: var(--accent);
}

.share-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Recommended Articles */
.recommended-section {
  margin: 4rem 0;
}

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

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* .post-card {
  background: var(--secondary);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px var(--shadow);
} */

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px var(--shadow);
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-category {
  display: inline-block;
  background: var(--accent-gradient);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.post-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.post-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

.read-more:hover {
  gap: 0.7rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  padding: 1rem 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast.show {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .article-title {
    font-size: 2.2rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .article-image,
  .content-image {
    height: 250px;
  }

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

  .article-content {
    padding: 1.5rem;
  }

  .engagement-section {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .article-title {
    font-size: 1.8rem;
  }

  .share-buttons {
    gap: 0.5rem;
  }

  .share-btn {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }

  .article-header,
  .article-content,
  .share-section {
    padding: 1.5rem;
  }

  .article-header .engagement-stats{
    
    width: 100%;
    gap: 5px;
  }
  
  .article-header .engagement-stats .stat{
    padding: 5px;
  }

}















/* Responsive Design */
@media (max-width: 1200px) {
  .nav-links {
    gap: 1.2rem;
  }

  .slide-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 992px) {
  .slide-title {
    font-size: 2.5rem;
  }

  .slide-content {
    padding: 2rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .subscribe-btn.desktop-only {
    display: none;
  }

  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 5%;
  }

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

  .slide-excerpt {
    font-size: 1.1rem;
  }

  .search-box {
    width: 280px;
  }

  .slide-actions {
    flex-direction: column;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }

  .nav-container {
    margin-left: 0;
    justify-content: flex-end;
  }

  /* STORIES */
  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* RECOMENDED */
  .recommended-title {
    font-size: 1.5rem;
  }

  .recommended-image {
    width: 100px;
    height: 90px;
  }

  .recommended-card-title {
    font-size: 0.95rem;
  }

  .footer {
    padding: 3rem 5% 2rem;
  }

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

  .newsletter-form {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .logo {
    font-size: 1.5rem;
  }

  .logo i {
    font-size: 1.7rem;
  }

  .subscribe-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .slide-title {
    font-size: 1.9rem;
  }

  .slide-content {
    padding: 1.5rem;
  }

  .search-box {
    width: 250px;
    right: -80px;
  }

  .carousel-controls {
    bottom: 30px;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
  }

  .carousel-indicators {
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* STORIES */
  .posts-section {
    padding: 3rem 5%;
  }

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

  .post-stats {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .post-actions {
    flex-direction: column;
  }

  /* RECOMMENDED */
  .recommended-section {
    padding: 2rem 5%;
  }

  .recommended-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .recommended-card {
    flex-direction: column;
  }

  .recommended-image {
    width: 100%;
    height: 120px;
  }

  .recommended-stats {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .footer-logo {
    font-size: 1.8rem;
  }

  .footer-heading {
    font-size: 1.1rem;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}