/* ============================================================
   ImanTaka - Responsive Styles
   ============================================================ */

/* ----- XXL (≥1400px) ----- */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  .hero-title {
    font-size: 4rem;
  }
}

/* ----- XL (1200-1399px) ----- */
@media (max-width: 1399.98px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-floating-card.card-1 {
    right: -5%;
  }
  .hero-floating-card.card-2 {
    left: -5%;
  }
}

/* ----- News Carousel Responsive ----- */
@media (max-width: 991.98px) {
  .news-carousel-slide {
    height: 50vh;
    min-height: 360px;
  }
  .news-carousel-title {
    font-size: 1.2rem;
  }
  .news-carousel-overlay {
    padding: 30px 24px 24px;
  }
  .news-carousel .carousel-control-prev,
  .news-carousel .carousel-control-next {
    opacity: 1;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 575.98px) {
  
  .news-carousel-slide {
    height: 75vh;
    min-height: 300px;
  }
  .news-carousel-title {
    font-size: 1rem;
  }
  .news-carousel-desc {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-carousel-overlay {
    padding: 20px 16px 16px;
  }
  .news-carousel-meta {
    font-size: 0.75rem;
    gap: 12px;
  }
  .news-carousel-meta .btn {
    font-size: 0.75rem;
    padding: 4px 12px;
  }
  .news-carousel .carousel-indicators {
    bottom: 4px;
  }
  .news-carousel .carousel-indicators button {
    width: 8px;
    height: 8px;
  }
}

/* ----- LG (992-1199px) ----- */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-section {
    min-height: auto;
    padding: 120px 0 60px;
  }
  .hero-floating-card {
    display: none;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .membership-card.featured {
    transform: scale(1.02);
  }
  .membership-card.featured:hover {
    transform: scale(1.02) translateY(-6px);
  }
  .training-features {
    grid-template-columns: 1fr;
  }
}

/* ----- MD (768-991px) ----- */
@media (max-width: 991.98px) {
  .navbar {
    top: 36px !important;
  }
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 12px;
    box-shadow: var(--shadow-md);
    max-height: 70vh;
    overflow-y: auto;
  }
  .navbar .nav-link {
    padding: 10px 16px !important;
  }
  .navbar-nav.ms-auto {
    gap: 0 !important;
  }
  .navbar-nav .dropdown-toggle::after {
    float: right;
    margin-top: 6px;
  }
  .navbar-nav .nav-item.ms-lg-2 {
    margin-top: 8px;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-section {
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-image-wrapper {
    margin-top: 40px;
  }
  .section-header {
    text-align: center;
  }
  .section-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .instructor-card {
    margin-bottom: 20px;
  }
  .class-card {
    height: 280px;
    margin-bottom: 20px;
  }
  .training-content {
    margin-bottom: 40px;
  }
  .training-experience-badge {
    width: 100px;
    height: 100px;
    bottom: -15px;
    right: -15px;
  }
  .training-experience-badge h3 {
    font-size: 1.6rem;
  }
  .booking-card {
    padding: 30px;
  }
  .membership-card {
    margin-bottom: 24px;
  }
  .membership-card.featured {
    transform: none;
  }
  .membership-card.featured:hover {
    transform: translateY(-6px);
  }
  .artikel-card {
    margin-bottom: 20px;
  }
  .video-card {
    height: 240px;
    margin-bottom: 20px;
  }
  .komunitas-card {
    margin-bottom: 20px;
  }
  .sertifikat-card {
    margin-bottom: 20px;
  }
  .testimoni-card {
    margin-bottom: 20px;
  }
  .download-app-image {
    margin-top: 40px;
  }
  .download-section .text-center {
    text-align: center !important;
  }
  .download-buttons {
    justify-content: center;
  }
}

/* ----- SM (576-767px) ----- */
@media (max-width: 767.98px) {
  body {
    padding-top: 100px;
  }
  .hero-section {
    margin-top: -100px;
    padding-top: 100px;
    min-height: 70vh;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  .hero-stat h3 {
    font-size: 1.6rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .section-badge {
    font-size: 0.8rem;
  }
  .shortcut-card {
    margin-bottom: 16px;
  }
  .event-card {
    margin-bottom: 20px;
  }
  .marketplace-card {
    margin-bottom: 20px;
  }
  .sanggar-card {
    margin-bottom: 20px;
  }
  .membership-card {
    padding: 30px 20px;
  }
  .membership-card .plan-price {
    font-size: 2.2rem;
  }
  .footer {
    padding: 40px 0 0;
  }
  .footer h5 {
    margin-top: 24px;
  }
  .footer .col-6:first-child h5 {
    margin-top: 0;
  }
  .download-btn {
    width: 100%;
    justify-content: center;
  }
  .testimoni-card {
    padding: 20px;
  }
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* ----- XS (<576px) ----- */
@media (max-width: 575.98px) {
  body {
    padding-top: 90px;
  }
  .hero-section {
    margin-top: -90px;
    padding-top: 90px;
  }
  .topbar-tagline {
    font-size: 0.7rem;
  }
  .topbar-social-icon {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }
  .hero-title {
    font-size: 1.7rem;
  }
  .hero-buttons .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .section-header {
    margin-bottom: 30px;
  }
  .features-section,
  .event-horizontal-section,
  .berita-section,
  .program-section,
  .video-section,
  .team-section,
  .testimoni-slider-section,
  .kontak-section {
    padding: 50px 0;
  }
  .feature-card {
    padding: 24px 16px;
  }
  .feature-icon {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
  }
  .gallery-section {
    padding: 50px 0;
  }
  .galeri-grid .galeri-item {
    height: 120px;
  }
  .trainer-features {
    grid-template-columns: 1fr;
  }
  .trainer-content h2 {
    font-size: 1.5rem;
  }
  .booking-card {
    padding: 20px;
  }
  .booking-card h4 {
    font-size: 1.1rem;
  }
  .event-card .event-image {
    height: 180px;
  }
  .class-card {
    height: 240px;
  }
  .marketplace-card .product-image {
    height: 180px;
  }
  .artikel-card .artikel-image {
    height: 180px;
  }
  .sanggar-card .sanggar-image {
    height: 180px;
  }
  .sertifikat-card .sertifikat-image {
    height: 160px;
  }
  .download-app-image img {
    max-height: 300px;
  }
}
