* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Afacad";
}

body {
  background: #ffffff;
}

.hero-wrapper {
  padding: 40px 80px;
}

.hero-container {
  position: relative;
  height: 600px;
  background:rgba(4, 1, 114, 1);
  border-radius: 50px;
  overflow: hidden;
  color:rgba(255, 255, 255, 1);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  margin: auto;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

.hero-title {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 80px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  z-index: 2;
  white-space: nowrap;
}

.hero-subtitle {
  position: absolute;
  top: 160px;
  right: 180px;
  letter-spacing: 0.5px;
  font-size: 14px;
  max-width: 360px;
  text-align: right;
  opacity: 0.9;
  z-index: 2;
}

.hero-quote {
  position: absolute;
  bottom: 40px;
  left: 30px;
  font-size: 14px;
  letter-spacing: 0.5px;
  max-width: 300px;
  line-height: 1.6;
  opacity: 0.9;
  z-index: 2;
}

.hero-btn {
  position: absolute;
  bottom: 40px;
  right: 30px;
  background:rgba(210, 0, 7, 1);
  color:rgba(255, 255, 255, 1);
  border: none;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
      text-decoration: none;   /* removes underline */
    display: inline-block;   
}

.hero-btn:hover {
  background: #c40812;
  transform: translateY(-2px);
}

/* Top Categories Section */
.top-categories {
  padding: 30px 80px;
  background: #ffffff;
}

.tc-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.tc-header p {
  font-size: 14px;
  color:rgba(4, 1, 114, 1);
  max-width: 600px;
  letter-spacing: 0.5px;
}

.tc-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tc-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 350px;
  cursor: pointer;
}

.tc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.tc-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  padding: 12px 16px;
  background: rgba(185, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.tc-overlay .arrow {
  font-size: 16px;
}

@media (max-width: 1024px) {
  .tc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .top-categories {
    padding: 40px 20px;
  }

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

/* Latest Articles Section */
.latest-articles {
  padding: 40px 80px;
  background: #ffffff;
}

.la-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.la-header p {
  color:rgba(4, 1, 114, 1);
  font-size: 15px;
  margin-bottom: 40px;
}

.la-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.la-card {
  position:relative;
  display: flex;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;  
}

.la-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
}

.la-img {
  width: 220px;
  object-fit: cover;
}

.la-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.la-content h3 {
  font-size: 18px;
  font-weight: 600;
  color:rgba(4, 1, 114, 1);
  margin-bottom: 10px;
}

.la-desc {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.la-date {
  font-size: 12px;
  color: #888;
}

.la-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 8px 16px;
  border-radius: 30px;
  background: #e60000;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  z-index: 2;
}

.la-btn:hover {
  background: #c80000;
}
/* Laptop */
@media (max-width: 1200px) {
  .hero-wrapper,
  .top-categories,
  .latest-articles {
    padding: 40px 40px;
  }

  .hero-title {
    font-size: 64px;
  }

  .hero-subtitle {
    right: 80px;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .hero-container {
    height: 520px;
  }

  .hero-title {
    font-size: 52px;
    white-space: normal;
    padding: 0 20px;
  }

  .hero-subtitle {
    top: 170px;
    right: 40px;
    font-size: 13px;
  }

  .hero-quote {
    max-width: 260px;
    font-size: 13px;
  }

  .tc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .la-img {
    width: 200px;
  }
}

/* large mobiles */
@media (max-width: 768px) {
  .hero-wrapper {
    padding: 16px;
  }

  .hero-container {
    height: auto;
    padding: 20px 16px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 28px;
  }

  .hero-bg-img {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: unset;
    margin-bottom: 20px;
  }

  .hero-title {
    position: static;
    transform: none;
    font-size: 34px;
    line-height: 1.25;
    margin-bottom: 14px;
    white-space: normal;
  }

  .hero-subtitle {
    position: static;
    font-size: 14px;
    margin-bottom: 14px;
  }

  .hero-quote {
    position: static;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .hero-btn {
    position: static;
    padding: 12px 26px;
  }

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

  .tc-card {
    height: 300px;
  }

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

  .la-img {
    width: 100%;
    height: 220px;
  }
  .la-btn {
    bottom: 12px;
    right: 12px;
    font-size: 12px;
    padding: 7px 14px;
  }
}

/* Small mobiles */
@media (max-width: 480px) {
  .hero-title {
    font-size: 34px;
  }

  .hero-subtitle,
  .hero-quote {
    font-size: 13px;
  }

  .hero-btn {
    font-size: 13px;
    padding: 11px 22px;
  }

  .tc-header h2,
  .la-header h2 {
    font-size: 28px;
  }

  .la-content {
    padding: 18px;
  }

  .la-content h3 {
    font-size: 16px;
  }

  .la-desc {
    font-size: 13px;
  }
}

/* iPad */
@media (max-width: 1024px) and (min-width: 769px) {

  .hero-wrapper {
    padding: 24px;
  }

  .hero-container {
    height: auto;
    padding: 40px 32px;
    display: grid;
    grid-template-rows: auto auto auto auto;
    text-align: center;
    border-radius: 36px;
  }

  .hero-bg-img {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0 auto 20px;
    object-fit: contain;
  }

  .hero-title {
    position: static;
    transform: none;
    font-size: 48px;
    line-height: 1.2;
    white-space: normal;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    position: static;
    max-width: 100%;
    text-align: center;
    font-size: 14px;
    margin-bottom: 16px;
  }

  .hero-quote {
    position: static;
    max-width: 480px;
    margin: 0 auto 22px;
    font-size: 14px;
    line-height: 1.6;
  }

  .hero-btn {
    position: static;
    margin: 0 auto;
    padding: 13px 28px;
  }
}
