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

html {
  scroll-behavior: smooth;
}

body {
  background: #f5f5f5;
  overflow-x: hidden;
}

/* ===== NAV ===== */
nav {
  min-height: 90px;
  background: #ff9800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.logo img {
  height: 55px;
}

.back-btn {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  transition: 0.3s;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 130px 8% 70px;
  background: #14171f;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(45px) brightness(0.45) saturate(1.3);
  transform: scale(1.25);
  z-index: 0;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 23, 31, 0.3),
    rgba(20, 23, 31, 0.75)
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 320px;
  color: white;
  text-align: left;
}

.hero-text h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin: 18px 0 10px;
  line-height: 1.15;
}

.hero-text p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  opacity: 0.85;
}

.hero-poster {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.hero-poster img {
  width: 100%;
  max-width: 360px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.badge {
  background: #ff9800;
  width: max-content;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
}

/* ===== CONTENT ===== */
.content {
  width: 90%;
  max-width: 1200px;
  margin: 60px auto 80px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.article {
  background: white;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.article h2 {
  color: #ff9800;
  margin-bottom: 20px;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.article p {
  line-height: 1.9;
  color: #555;
  margin-bottom: 20px;
}

.article ul {
  padding-left: 25px;
  margin-bottom: 20px;
}

.article li {
  margin-bottom: 12px;
  color: #444;
}

blockquote {
  margin: 30px 0;
  border-left: 5px solid #ff9800;
  padding-left: 20px;
  font-style: italic;
  color: #777;
}

/* ===== SIDEBAR ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.card {
  background: white;
  padding: 28px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #ff9800;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card:hover::before {
  transform: scaleY(1);
}

.card h3 {
  color: #ff9800;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.card p {
  color: #555;
}

/* ===== UNIVERSITIES ===== */
.universities {
  padding: clamp(60px, 10vw, 100px) 8%;
  background: #f7f7f7;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(35px, 6vw, 60px);
}

.section-header h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
  color: #ff9800;
}

.section-header p {
  color: #666;
  margin-top: 10px;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

/* ===== UNIVERSITY FILTER ===== */
.uni-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.uni-filter-btn {
  border: 1.5px solid #e5e5e5;
  background: white;
  color: #555;
  padding: 9px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.25s ease;
}

.uni-filter-btn:hover {
  border-color: #ff9800;
  color: #ff9800;
}

.uni-filter-btn.active {
  background: #ff9800;
  border-color: #ff9800;
  color: white;
}

.uni-card.filtered-out {
  display: none;
}

.university-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.uni-card {
  background: white;
  border-radius: 25px;
  padding: clamp(28px, 4vw, 40px) 20px;
  text-align: center;

  transition: 0.4s ease;

  position: relative;
  overflow: hidden;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

  opacity: 0;
  transform: translateY(50px);
}

.uni-card.active {
  opacity: 1;
  transform: translateY(0);
}

.uni-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), transparent);

  opacity: 0;
  transition: 0.4s;
}

.uni-card img {
  width: 90px;
  height: 90px;
  object-fit: contain;

  transition: 0.4s;
}

.uni-card h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.uni-card span {
  color: #777;
  font-size: 0.9rem;
}

.uni-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(255, 152, 0, 0.25);
}

.uni-card:hover::before {
  opacity: 1;
}

.uni-card:hover img {
  transform: scale(1.15) rotate(5deg);
}

.rank-badge {
  position: absolute;
  top: 15px;
  right: 15px;

  background: #ff9800;
  color: white;

  padding: 6px 12px;
  border-radius: 999px;

  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== EDUCATION AGENTS ===== */
.agents {
  padding: clamp(60px, 10vw, 100px) 8%;
  background: #fff;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.agent-card {
  background: #fafafa;
  border-radius: 22px;
  padding: clamp(28px, 4vw, 36px) 20px;
  text-align: center;
  transition: 0.35s ease;
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #ff9800;
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.agent-card:hover {
  background: white;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 152, 0, 0.15);
}

.agent-card:hover::before {
  transform: scaleX(1);
}

.agent-logo {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: white;
  border: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: 0.35s ease;
}

.agent-logo img {
  width: 65%;
  height: 65%;
  object-fit: contain;
}

.agent-card:hover .agent-logo {
  border-color: #ff9800;
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.25);
  transform: scale(1.08);
}

.agent-card h3 {
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 8px;
}

.agent-card span {
  color: #999;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #1f2937;
  color: white;
  text-align: center;
  padding: 45px 20px;
}

.site-footer img {
  width: 55px;
  margin-bottom: 12px;
}

.site-footer p {
  opacity: 0.75;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.site-footer a {
  color: #ffb84d;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 900px) {
  .content {
    grid-template-columns: 1fr;
  }

  nav {
    padding: 0 30px;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 0 18px;
    min-height: 70px;
  }

  .logo img {
    height: 42px;
  }

  .back-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .hero {
    padding: 100px 6% 50px;
  }

  .hero-inner {
    flex-direction: column-reverse;
    gap: 25px;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .badge {
    margin: 0 auto;
  }

  .hero-poster img {
    max-width: 260px;
  }

  .hero-overlay {
    padding-left: 6%;
    padding-right: 6%;
  }

  .content {
    width: 92%;
    margin-top: 40px;
    margin-bottom: 50px;
    gap: 25px;
  }

  .article {
    border-radius: 20px;
  }

  .universities {
    padding-left: 6%;
    padding-right: 6%;
  }

  .university-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .uni-card img {
    width: 70px;
    height: 70px;
  }

  .rank-badge {
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 5px 10px;
  }

  .uni-filter-btn {
    padding: 7px 16px;
    font-size: 0.8rem;
  }

  .agents {
    padding-left: 6%;
    padding-right: 6%;
  }

  .agent-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .agent-logo {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 380px) {
  .university-grid {
    grid-template-columns: 1fr;
  }

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

  .article {
    padding: 20px;
  }

  .card {
    padding: 20px;
  }

  .agent-card {
    padding: 22px 16px;
  }

  .uni-card {
    padding: 22px 16px;
  }

  .uni-filter {
    gap: 8px;
  }

  .uni-filter-btn {
    padding: 6px 14px;
    font-size: 0.75rem;
  }
}
