/* ======= ОСНОВНІ СТИЛІ ======= */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #222;
  overflow-x: hidden;
}

section {
  padding: 80px 10%;
}

h1, h2, h3 {
  text-align: center;
  color: #003366;
}

/* ======= КНОПКИ ======= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.btn-orange { background: #ff6600; color: #fff; }
.btn-orange:hover { background: #e65500; }
.btn-blue { background: #0097a7; color: #fff; }
.btn-blue:hover { background: #007d8c; }

/* ======= FIX: ПРИБРАТИ ВСІ ВЕРХНІ ВІДСТУПИ ASTRA НА ГОЛОВНІЙ ======= */
.page-template-front-page .site-content,
.page-template-front-page .ast-container,
.page-template-front-page .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ======= HERO ======= */
.ast-container, .site-content, .entry-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

.hero {
  position: relative;
  height: 85vh;
  overflow: hidden;
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0;
  width: 100vw;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  filter: none !important;
}
.hero-slide.active { opacity: 1; }

.hero::after { content: none !important; }

/* ======= ВИПРАВЛЕННЯ ПОЯВИ КНОПОК ======= */
.hero-content {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  width: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
body.loaded .hero-content {
  opacity: 1;
}

.hero-content .btn {
  margin: 10px;
  font-size: 1.2em;
  padding: 14px 34px;
}

/* ======= ПЕРЕВАГИ ======= */
.benefits {
  background: #f7f9fc;
  margin-top: 0;
  position: relative;
  z-index: 5;
  padding-top: 80px;
  padding-bottom: 80px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.benefit {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  padding: 30px 20px;
  transition: all 0.3s ease;
}
.benefit:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.benefit i {
  font-size: 40px;
  color: #0097a7;
  margin-bottom: 15px;
  display: block;
}

/* ======= КУРСИ ======= */
.courses { 
  text-align: center; 
  background: #fff; 
}
.course-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 40px;
}
.course {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s;
}
.course:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.course img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.course h3 { margin: 15px 0; }
.course p { padding: 0 15px 20px; }

/* ======= ПРО КОЛЕДЖ ======= */
.about { 
  background: #f7f9fc; 
  text-align: center; 
}
.about p {
  max-width: 700px;
  margin: 20px auto;
  line-height: 1.6;
}

/* ======= КОНТАКТИ ======= */
.contact { text-align: center; }
.contact p { font-size: 1.1em; }
.contact a {
  color: #0097a7;
  text-decoration: none;
  font-weight: bold;
}
.contact a:hover { 
  text-decoration: underline; 
}

/* ======= ФУТЕР ======= */
.footer {
  background: #ffffff;
  color: #003366;
  padding: 60px 10% 20px;
  font-family: "Poppins", sans-serif;
  border-top: 4px solid #ff6600;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col {
  flex: 1 1 250px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-col:first-child {
  align-items: flex-start;
  text-align: left;
}

.footer-col:first-child img {
  display: block;
  max-width: 100px;
  height: auto;
  margin-bottom: 10px;
  margin-top: -10px;
}

.footer-col h3 {
  color: #ff6600;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.footer-col p, .footer-col a, .footer-col li {
  color: #333;
  text-decoration: none;
  font-size: 0.95em;
  line-height: 1.7;
}

.footer-col a:hover { color: #ff6600; }

.footer-logo { width: 110px; margin-bottom: 15px; }

.footer ul { list-style: none; padding: 0; margin: 0; }

.social img {
  width: 28px;
  margin-right: 10px;
  transition: 0.3s;
  filter: brightness(0.3);
}
.social img:hover {
  filter: brightness(1);
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85em;
  color: #666;
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

/* ======= СХОВАТИ СТАНДАРТНИЙ ФУТЕР WORDPRESS ======= */
.site-footer,
footer#colophon,
.ast-footer-overlay,
.ast-footer-widget-area,
.ast-small-footer,
.ast-footer-wrap,
.ast-footer-section {
  display: none !important;
}

/* ======= МОБІЛЬНА АДАПТАЦІЯ ======= */
@media (max-width: 768px) {
  .hero { height: 75vh; }
  .hero-content .btn { 
    display: block; 
    margin: 10px auto; 
    width: 70%; 
  }
  .benefits, .courses, .about, .contact { padding: 50px 5%; }
  .footer { padding: 40px 5% 10px; }
  .footer-container { 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
  }
  .footer-col { align-items: center; }
  .footer-col:first-child { 
    align-items: center; 
    text-align: center; 
  }
  .social img { margin: 5px; }
}

/* ======= Анімація появи блоків ======= */
.benefit {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.benefit.visible {
  opacity: 1;
  transform: translateY(0);
}

.course {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.course.visible {
  opacity: 1;
  transform: translateY(0);
}

.entry-title {
  display: none !important;
}

/* Прибрати сірий блок під логотипом */
.ast-mobile-header-logo {
  background: transparent !important;
}

/* Максимальне вирівнювання логотипу */
.ast-site-identity {
  padding: 0 !important;
  margin: 0 auto !important;
}

/* ======= ПРИБИРАЄМО ASTRA ABOVE HEADER ======= */
.ast-above-header,
.ast-above-header-wrap,
.ast-builder-grid-row.ast-builder-grid-row-has-sides.ast-above-header-wrap {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    border: none !important;
}

/* --- FIX ДЛЯ iPhone: фото HERO не виїжджає --- */
.hero-slide {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}

@supports (-webkit-touch-callout: none) {
  .hero {
      width: 100% !important;
      max-width: 100% !important;
      height: 70vh !important;
  }
  .hero-slide {
      background-position: center top !important;
  }
  .hero {
    height: 85vh;
    height: 85svh; /* Fix for iPhone */
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #000 !important;
}

.hero-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0;
    transition: opacity 1.6s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
    z-index: 10;
}

.hero-content .btn {
    width: 100%;
    max-width: 320px;
    display: block;
    margin: 12px auto;
    font-size: 1.3rem;
}

@supports (-webkit-touch-callout: none) {
    .hero {
        height: 80svh !important;
    }
}
.spec-card h3 {
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2;
}
.spec-card * {
    text-align: left !important;
}

