@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --primary-blue: #0061ce;
  --primary-blue-dark: #004a9e;
  --accent-red: #ac1c2c;
  --accent-red-dark: #8a1623;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --bg-light: #ffffff;
  --bg-subtle: #f8f9fb;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-subtle);
  color: var(--text-primary);
  line-height: 1.7;
  width: 100%;
  /*max-width: 1400px;*/
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   AD BANNERS
   ============================================ */

.toadbr1,
.toadbr2 {
  width: 100%;
  padding: 1.5rem 0;
  text-align: center;
}

.toadbr1 img,
.toadbr2 img {
  display: none;
  width: 100%;
  max-width: 970px;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.toadbr1 img.active,
.toadbr2 img.active {
  display: block;
  margin: 0 auto;
}

.toadbr1 {
  display: block;
}

.toadbr2 {
  display: none;
}

@media (max-width: 768px) {
  .toadbr1 {
    display: none;
  }

  .toadbr2 {
    display: block;
  }
}

/* ============================================
   PRELOADER
   ============================================ */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader {
  display: flex;
  gap: 12px;
}

.loader span {
  display: block;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
  border-radius: 50%;
  animation: bounce 1.2s infinite ease-in-out;
}

.loader span:nth-child(1) {
  animation-delay: 0s;
}

.loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-25px);
  }
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
  padding: 2rem 1.5rem;
  max-width: 90%;
  margin: 0 auto;
}

/* ============================================
   TOP STORY SECTION
   ============================================ */

.desk-tops,
.mobi-tops {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.mobi-tops {
  display: none;
}

#top-story {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

#top-story:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

#top-story h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 4px solid var(--accent-red);
  display: inline-block;
}

.top-story-card {
  display: flex;
  flex-direction: column;
}

.desktop-topstory-image,
.mobile-topstory-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.top-story-card:hover .desktop-topstory-image,
.top-story-card:hover .mobile-topstory-image {
  transform: scale(1.02);
}

.mobile-topstory-image {
  display: none;
}

.top-story-card h3 {
  margin: 0.5rem 0;
  line-height: 1.4;
}

.top-story-card h3 a {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.top-story-card h3 a:hover {
  color: var(--primary-blue);
}

.top-story-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .desk-tops {
    display: none;
  }

  .mobi-tops {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .desktop-topstory-image {
    display: none;
  }

  .mobile-topstory-image {
    display: block;
    max-height: 250px;
  }

  .top-story-card h3 a {
    font-size: 1.4rem;
  }

  #top-story {
    padding: 1.5rem;
  }

  #top-story h2 {
    font-size: 1.3rem;
  }
}

/* ============================================
   LATEST NEWS SECTION
   ============================================ */

.ltns {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 3rem 0 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 4px solid var(--accent-red);
  display: inline-block;
}

#latest-news {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.news-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.news-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--primary-blue);
}

.news-item img.featured-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.news-item:hover img.featured-image {
  transform: scale(1.05);
}

.news-item-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-item h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  flex: 1;
}

.news-item h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.news-item h3 a:hover {
  color: var(--primary-blue);
}

.news-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  #latest-news {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .news-item img.featured-image {
    height: 200px;
  }

  .ltns {
    font-size: 1.6rem;
  }
}

/* ============================================
   EXPLORE MORE BUTTON
   ============================================ */

.explore-more-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.explore-more-button:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ============================================
   VIDEO GRID
   ============================================ */

#video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

#video-grid > div {
  position: relative;
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

#video-grid > div:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

#video-grid img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  #video-grid {
    grid-template-columns: 1fr;
  }
  .videomobilesize {
    width: 100% !important;
  }
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */

#categories {
  margin: 4rem 0;
}

#categories h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 4px solid var(--accent-red);
  display: inline-block;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.category-column {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.category-column:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
  transform: translateY(-4px);
}

.category-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-blue);
}

.category-news-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.category-news-list li {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.category-news-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tiny-featured-image {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.category-news-list li:hover .tiny-featured-image {
  transform: scale(1.02);
}

.category-news-list li a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: var(--transition);
}

.category-news-list li a:hover {
  color: var(--primary-blue);
}

.category-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
  border: 2px solid var(--primary-blue);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  transition: var(--transition);
}

.category-view-all:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateX(4px);
}

/* ============================================
   SEARCH POPUP
   ============================================ */

.search-popup {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.search-popup-content {
  background: var(--bg-light);
  padding: 3rem;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.search-popup-content input[type="text"] {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  outline: none;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.search-popup-content input[type="text"]:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(0, 97, 206, 0.1);
}

.search-popup-content button {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: white;
  border: none;
  border-radius: 12px;
  margin-top: 1rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-popup-content button:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.close-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  font-size: 1.2rem;
  border: none;
  outline: none;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: white;
  cursor: pointer;
  padding: 1rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

#scrollTopBtn:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 97, 206, 0.3);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-form input[type="email"] {
  padding: 0.875rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--accent-red);
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.newsletter-form button:hover {
  background: linear-gradient(135deg, var(--accent-red-dark), var(--accent-red));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.newsletter-response {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem;
  border-radius: 6px;
  transition: var(--transition);
}

.newsletter-response.success {
  color: #28a745;
  background: rgba(40, 167, 69, 0.1);
}

.newsletter-response.error {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}

/* ============================================
   FLOATING SOCIAL ICONS
   ============================================ */

.floating-social-icons {
  position: fixed;
  top: 40%;
  left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.floating-social-icons a {
  text-decoration: none;
}

.floating-social-icons .social-icon {
  background: var(--bg-light);
  color: var(--text-primary);
  text-align: center;
  padding: 0.875rem;
  border-radius: 50%;
  font-size: 1.2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.floating-social-icons .social-icon:hover {
  transform: scale(1.15) translateX(8px);
  box-shadow: var(--shadow-lg);
}

.floating-social-icons .fb {
  color: #1877f2;
}

.floating-social-icons .fb:hover {
  background: #1877f2;
  color: white;
}

.floating-social-icons .ig {
  color: #e4405f;
}

.floating-social-icons .ig:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.floating-social-icons .yt {
  color: #ff0000;
}

.floating-social-icons .yt:hover {
  background: #ff0000;
  color: white;
}

@media (max-width: 768px) {
  .floating-social-icons {
    left: 1rem;
    gap: 0.75rem;
  }

  .floating-social-icons .social-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1024px) {
  body {
    width: 100%;
  }

  main {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .ltns,
  #top-story h2,
  #categories h2 {
    font-size: 1.4rem;
  }

  .top-story-card h3 a {
    font-size: 1.2rem;
  }

  .news-item h3 {
    font-size: 1rem;
  }

  main {
    padding: 1rem;
  }

  #top-story {
    padding: 1.25rem;
  }

}