:root {
  --bg: #f5f6f8;
  --bg-soft: #f0f1f4;
  --panel: #ffffff;
  --panel-alt: #f8f9fb;
  --text: #121417;
  --muted: #5d6470;
  --line: rgba(18, 20, 23, 0.08);
  --black: #07090d;
  --black-soft: #11151a;
  --red: #880c17;
  --red-dark: #440006;
  --white: #ffffff;
  --shadow: rgba(18, 20, 23, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}
button, input {
    font: inherit;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.bar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(7, 9, 13, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
}

.amesat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(136, 12, 23, 0.25);
}
.amesat-text {
    font-size: 0.9rem;
}

.menu {
    display: flex;
    gap: 28px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.94rem;
}

.menu a {
    transition: color 0.25s ease;
}

.menu a:hover {
    color: var(--white);
}

.hero {
    padding: 72px 0 42px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 20px;
}
.eyebrow .trait{
  min-width: 30px;
  min-height: 30px;
  color:  var(--red);
}
.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
  margin-bottom: 18px;
  color: var(--text);
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: 0 16px 28px rgba(234, 29, 45, 0.26);
}

.btn-secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.stat-item {
  min-width: 120px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 20px rgba(15, 20, 26, 0.04);
}

.stat-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.stat-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.pulse {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 29, 45, 0.18), rgba(234, 29, 45, 0.08) 35%, transparent 70%);
  filter: blur(10px);
}

.mini-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: linear-gradient(180deg, #101418 0%, #0b0d11 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.18);
  color: var(--white);
}

.notification {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #ffc9cf;
}

.notification .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(234, 29, 45, 0.12);
}

.mini-panel h3 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.mini-panel ul {
  list-style: none;
  display: grid;
  gap: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.mini-panel li {
  position: relative;
  padding-left: 22px;
}

.mini-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.search-panel {
  padding: 18px 0 26px;
  background: rgba(255, 255, 255, 0.75);
}

.filters-wrap {
  display: grid;
  gap: 18px;
}

.search-box {
  display: flex;
  align-items: center;
  width: min(100%, 620px);
  min-height: 62px;
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 26px rgba(15, 20, 26, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
  border-color: rgba(234, 29, 45, 0.8);
  box-shadow: 0 0 0 4px rgba(234, 29, 45, 0.08);
}

.search-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
}

#searchInput {
  flex: 1;
  height: 46px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  padding: 0 14px 0 0;
  font-size: 1rem;
}

#searchInput::placeholder {
  color: #8a90a0;
}

.search-button {
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  min-width: 132px;
  height: 46px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(234, 29, 45, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(234, 29, 45, 0.26);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.tag.active,
.tag:hover {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(234, 29, 45, 0.2);
}

.channels {
  padding: 30px 0 54px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.channel-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 260px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 14px 26px rgba(15, 20, 26, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.channel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 29, 45, 0.4);
  box-shadow: 0 20px 38px rgba(15, 20, 26, 0.08);
}

.channel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.channel-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(234, 29, 45, 0.12), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(234, 29, 45, 0.18);
  font-size: 1.35rem;
}

.channel-tag {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(234, 29, 45, 0.08);
  color: var(--red-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.channel-card h3 {
  font-size: 1.42rem;
  margin-bottom: 8px;
}

.channel-card p {
  color: var(--muted);
  line-height: 1.7;
}

.channel-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--red-dark);
  font-size: 0.82rem;
  font-weight: 600;
}

.channel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(234, 29, 45, 0.22);
}

.about {
  padding: 18px 0 64px;
}

.about-box {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 22px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px 30px;
  box-shadow: 0 14px 24px rgba(15, 20, 26, 0.04);
}

.about-box p:last-child {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  align-items: start;
}

.footer-brand-block,
.footer-links,
.footer-socials {
  min-width: 0;
}

.amical {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer_logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(136, 12, 23, 0.25);
}

.amesat1 .ame {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.amesat1 .ufr {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
}

.footer-links h3,
.footer-socials h3 {
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--white);
}

.footer-links ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer-links a,
.footer-socials a {
  color: rgba(255, 255, 255, 0.74);
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-socials a:hover {
  color: var(--white);
}

.contact-block li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: var(--white);
  flex-shrink: 0;
}

.social-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.social-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(234, 29, 45, 0.12);
  border-color: rgba(234, 29, 45, 0.35);
}

.youtube {
  background: rgba(255, 255, 255, 0.06);
}

.instagram {
  background: linear-gradient(135deg, rgba(255, 126, 40, 0.18), rgba(184, 49, 140, 0.18));
}

.tiktok {
  background: rgba(255, 255, 255, 0.06);
}

.question-section {
  padding: 0 0 26px;
  background: #f5f5f5;
}

.question-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 26px;
  box-shadow: 0 14px 26px rgba(15, 20, 26, 0.04);
}

.question-head {
  margin-bottom: 16px;
}

.question-head h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
  color: var(--text);
}

.question-head p {
  color: var(--muted);
}

.question-form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.question-form input,
.question-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fafafa;
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

.question-form input::placeholder,
.question-form textarea::placeholder {
  color: #7d8594;
}

.question-form textarea {
  resize: vertical;
  min-height: 110px;
}

.question-form button {
  justify-self: start;
  border: none;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(234, 29, 45, 0.22);
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 900px) {
  .hero-grid,
  .about-box,
  .channels-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 320px;
  }

  .question-box {
    padding: 18px;
  }
}

@media (max-width: 550px) {
  .menu {
    display: none;
  }

  .amesat-text {
    letter-spacing: 0.08em;
    font-size: 12px;
  }

  .hero {
    padding-top: 46px;
  }
  .hero-copy .eyebrow{
    font-size: 10px;
  }
  .hero-copy h1{
    font-size: 30px;
  }
  .hero-copy p{
    font-size: 15px;
  }
  .hero-card{
    max-width: fit-content;
  }
  .cta-row a{
    max-width: max-content;
  }
  .mini-panel h3{
    font-size: 20px;
  }
  .mini-panel ul li{
    font-size: small;
  }
  .mini-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

  .channel-card {
    padding: 18px;
  }

  .channel-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .channel-link {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .footer-grid {
    gap: 18px;
  }

  .question-form button {
    width: 100%;
  }
}
