/*
 Theme Name:  Association Child - AINAKI
 Theme URI:   https://ainaki.or.id/
 Description: Child theme untuk Association. Berisi seluruh styling untuk section custom halaman Home AINAKI (hero slider, quote, crowd banner, catalog banner, berita, sidebar Instagram & sponsor), supaya tidak perlu menaruh <style> di konten halaman yang rawan dirusak TinyMCE. Update 6.0.1 - Tambah custom header & footer.
 Author:      Web Editor Tim RUS (modified)
 Author URI:  https://github.com/ainaki
 Template:    association
 Version:     6.0.1
 License:     GNU General Public License v2 or later
 Text Domain: association-child
*/

@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

html, body { overflow-x: hidden; }

.ainaki-full-width {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

.ainaki-full-width.ainaki-full-width {
  width: 100vw !important;
}

body:has(.ainaki-full-width) * {
  overflow: visible;
}
body:has(.ainaki-full-width) .ainaki-full-width,
body:has(.ainaki-full-width) #ainaki-hero-slider {
  overflow: hidden; 
}

#ainaki-hero-slider {
  background: #111;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.ainaki-main-slide {
  display: none;
  position: relative;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.ainaki-main-slide.active {
  display: block;
  opacity: 1;
}
.ainaki-slide-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 380px;
  max-height: 580px;
}
.ainaki-slide-overlay {
  position: absolute;
  bottom: 50px;
  left: 80px;
  max-width: 50%;
  background: rgba(0, 0, 0, 0.72);
  padding: 24px 32px;
  border-radius: 8px;
  color: #fff;
  z-index: 5;
  box-sizing: border-box;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ainaki-slide-title {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  font-size: 24px;
  margin: 0 0 10px 0;
  line-height: 1.3;
  font-weight: 700;
}
.ainaki-slide-desc {
  font-family: 'Libre Franklin', sans-serif;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  margin: 0 0 18px 0;
  line-height: 1.6;
}
.ainaki-slide-btn {
  display: inline-block;
  background-color: #991f22;
  color: #ffffff !important;
  padding: 10px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 25px;
  text-transform: uppercase;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
}
.ainaki-slide-btn:hover { background-color: #7b191c; }

.ainaki-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.ainaki-slider-arrow:hover { background: rgba(153, 31, 34, 0.8); border-color: #991f22; }
#ainaki-slider-prev { left: 24px; }
#ainaki-slider-next { right: 24px; }

#ainaki-slider-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 10;
}
.ainaki-slider-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s, width 0.3s, height 0.3s;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
}
.ainaki-slider-dot.active { background: #fff; width: 12px; height: 12px; }

.ainaki-quote-sec { background: #ffffff; padding: 60px 0; text-align: center; }
.ainaki-quote-title {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #991f22;
  line-height: 1.4;
  margin: 0 auto 20px auto;
  max-width: 850px;
}
.ainaki-quote-desc {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin: 0 auto;
  max-width: 750px;
}

.ainaki-crowd-banner img { width: 100%; height: auto; display: block; }

.ainaki-catalog-banner { background: #991f22; padding: 40px 0; color: #ffffff; }
.ainaki-catalog-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}
.ainaki-catalog-left { flex: 1; min-width: 280px; }
.ainaki-catalog-right { flex: 2; min-width: 320px; }
.ainaki-catalog-btn {
  display: inline-block;
  background: #ffffff;
  color: #222222 !important;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.ainaki-catalog-btn:hover { background: #000000; color: #ffffff !important; }
.ainaki-catalog-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}
.ainaki-catalog-desc {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.6;
}

.ainaki-main-grid-container {
  max-width: 1170px;
  margin: 50px auto;
  padding: 0 15px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.ainaki-left-col { flex: 2; min-width: 320px; }
.ainaki-right-col { flex: 1; min-width: 300px; }

.ainaki-sec-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #222222;
  border-bottom: 3px solid #991f22;
  padding-bottom: 10px;
  margin: 0 0 25px 0;
  text-transform: uppercase;
}

.ainaki-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .ainaki-news-grid { grid-template-columns: 1fr; }
}
.ainaki-news-card {
  background: #ffffff;
  border: 1px solid #ededed;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ainaki-news-img { width: 100%; height: 170px; object-fit: cover; }
.ainaki-news-body {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ainaki-news-meta {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 11px;
  color: #888;
  display: block;
  margin-bottom: 6px;
}
.ainaki-news-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.4;
}
.ainaki-news-title a { color: #222222; text-decoration: none; transition: color 0.3s; }
.ainaki-news-title a:hover { color: #991f22; }
.ainaki-news-text {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 12px;
  color: #666666;
  line-height: 1.6;
  margin: 0;
}

.ainaki-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 22px;
  border: 1.5px solid #991f22;
  border-radius: 25px;
  color: #991f22 !important;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s;
}
.ainaki-view-all-btn:hover { background: #991f22; color: #fff !important; }

.ainaki-right-widget {
  background: #ffffff;
  border: 1px solid #ededed;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.ainaki-right-widget h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #222;
  border-bottom: 2px solid #991f22;
  padding-bottom: 8px;
  margin: 0 0 16px 0;
  text-transform: uppercase;
}

.ainaki-ig-follow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #ffffff !important;
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 4px 14px rgba(214, 36, 159, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ainaki-ig-follow-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(214, 36, 159, 0.45); }
.ainaki-ig-follow-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.ainaki-ig-handle {
  display: block;
  text-align: center;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 12px;
  color: #888;
  margin-top: 10px;
}
.ainaki-ig-handle a { color: #991f22; text-decoration: none; font-weight: 600; }
.ainaki-ig-handle a:hover { text-decoration: underline; }

.ainaki-sponsor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.ainaki-sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fafafa;
  padding: 6px;
}
.ainaki-sponsor-item img { max-height: 100%; max-width: 100%; object-fit: contain; }
