/* assets/css/layout.css */
.site-header {
  background: #fff;
  color: #222;
  /* padding: 15px 0; */
}

.sub-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 1200px;
  margin: auto;
}

.sub-nav-logo {
  display: none;
  margin-right: 20px;
}

.sub-nav-logo img {
  width: 80px;
  height: auto;
}

.sub-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  margin: 0;
}

.sub-nav li {
  margin: 0 15px;
}

.sub-nav a {
  color: #555;
  font-size: 14px;
  text-decoration: none;
}

.sub-nav a:hover,
.sub-nav a.active {
  color: #de0000;
}

.sub-nav.fixed {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  justify-content: space-between;
  padding: 10px 20px;
  margin: auto;
}

.sub-nav.fixed .sub-nav-logo {
  display: block;
}

.sub-nav.fixed ul {
  justify-content: flex-start;
}

.sub-nav-arrow {
  display: none;
  background: #fff;
  border: none;
  font-size: 18px;
  color: #555;
  cursor: pointer;
  padding: 0 10px;
  z-index: 10;
  /* padding: 10px; */
}

.sub-nav-arrow:hover {
  color: #de0000;
}

.sub-nav-arrow-left {
  position: absolute;
  left: 0;
  top: 12px;
}

.sub-nav-arrow-right {
  position: absolute;
  right: 0;
  top: 12px;
}

.sub-nav.fixed .sub-nav-arrow-left {
  left: 100px;
  top: 33px;
  /* Adjust based on logo width */
}

.sub-nav.fixed .sub-nav-arrow-right {
  right: 20px;
  /* left: 100px; */
  top: 33px;
}

@media (max-width: 768px) {
  .sub-nav ul {
    position: relative;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    padding: 10px 40px;
    /* Space for arrows */
  }

  .sub-nav li {
    flex-shrink: 0;
    margin: 0 10px;
  }

  .sub-nav-logo img {
    width: 80px;
  }
}

/* Header Main Layout */
.header-content {
  display: flex;
  justify-content: space-between;
  /* left | center | right */
  align-items: center;
  padding: 30px 20px;
  position: relative;
}



/* Logo styling - Absolute positioning to prevent ad interference */
.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.logo img {
  display: block;
}



/* Right icons wrapper */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100px;
  /* same as left-space */
  justify-content: flex-end;
}

/* Button (Profile + MyFeed) */
.action-btn {
  position: relative;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #222;
  font-size: 14px;
  transition: 0.3s ease;
}

/* Icons */
.action-btn .icon {
  font-size: 30px;
  color: #fff;
  transition: 0.3s ease;
}

/* Text hidden by default */
.action-btn .text {
  font-size: 12px;
  color: #de0000;
  opacity: 0;
  transform: translateY(-5px);
  transition: 0.3s ease;
  pointer-events: none;
}

/* Hover Effects */
.action-btn:hover .icon {
  color: #de0000;
  transform: translateY(4px);
}

.action-btn:hover .text {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    padding: 30px 20px;
  }

  .header-actions {
    gap: 2px;
    width: auto;
  }


}

.search-container {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
}

.search-icon {
  font-size: 20px;
  cursor: pointer;
  color: #555;
  margin-right: 10px;
  background-color: #f0f0f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-icon:hover {
  color: #de0000;
}

.search-bar {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  width: 200px;
  visibility: hidden;
  /* Hidden by default */
}

.search-bar:focus {
  outline: none;
  border-color: #de0000;
}

.search-bar.show {
  visibility: visible;
}

/* Responsive search bar */
@media (max-width: 768px) {
  .search-bar {
    width: 150px;
    /* Smaller width on mobile */
  }
}

.main-nav a {
  color: #ccc;
  margin-left: 15px;
  font-size: 15px;
}

.main-nav a:hover {
  color: #fff;
}


/* ===== HERO SECTION ===== */
.hero {
  padding: 20px 0;
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  width: 75%;
  margin: 0 auto;

}

.hero-content img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.hero-content:hover img {
  transform: scale(1.05);
}

.hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
  color: #fff;
  z-index: 2;
  width: 75%;
  margin: 0 auto;

}

.hero-text h2 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.3;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 800px;
}

.hero-text h2 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.hero-text h2 a:hover {
  color: #de0000;
}

.hero-text p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  color: #f0f0f0;
  max-width: 700px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* ===== HERO SECTION - READ MORE BUTTON ===== */

/* Add this to your layout.css or components.css */

.hero-text .read-more-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 35px;
  background-color: #de0000;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(222, 0, 0, 0.3);
  text-transform: capitalize;
}

.hero-text .read-more-btn:hover {
  background-color: #b20000;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(222, 0, 0, 0.4);
}

.hero-text .read-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(222, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-text .read-more-btn {
    padding: 10px 28px;
    font-size: 14px;
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .hero-text .read-more-btn {
    padding: 8px 24px;
    font-size: 13px;
    margin-top: 12px;
  }
}


/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 992px) {
  .hero-content {
    max-width: 95%;
    border-radius: 6px;
  }

  .hero-image {
    height: 400px;
    width: 100%;
  }

  .hero-text {
    padding: 25px 30px;
    width: 100%;
  }

  .hero-text h2 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 16px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    padding: 15px 0;
  }

  .hero-content {
    max-width: 96%;
    border-radius: 4px;
  }

  .hero-image {
    height: 320px;
  }

  .hero-text {
    padding: 20px;
  }

  .hero-text h2 {
    font-size: 22px;
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .hero-text p {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero {
    padding: 10px 0;
  }

  .hero-content {
    max-width: 98%;
    border-radius: 0;
  }

  .hero-image {
    height: 250px;
  }

  .hero-text {
    padding: 15px;
  }

  .hero-text h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .hero-text p {
    font-size: 13px;
    line-height: 1.4;
  }
}

/* Extra Small Devices */
@media (max-width: 360px) {
  .hero-image {
    height: 220px;
  }

  .hero-text {
    padding: 12px;
  }

  .hero-text h2 {
    font-size: 16px;
  }

  .hero-text p {
    font-size: 12px;
  }
}





/* Footer styles moved to base.css for fixed positioning */

/* See More button styling */
.see-more-btn {
  background-color: #de0000;
  color: white;
  padding: 10px 25px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.see-more-btn:hover {
  background-color: #b20000;
}

.see-more-btn:disabled,
.see-more-btn[disabled] {
  background-color: #999999;
  cursor: not-allowed;
}