/* ================= CHATBOT me ================= */
#me-chat-toggle {
  position: fixed;
  right: 20px;
  bottom: 85px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ee4d2d;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
  cursor: pointer;
  z-index: 99999;

  box-shadow: 0 10px 25px rgba(238, 77, 45, 0.28);
  transition: 0.3s ease;
}

#me-chat-toggle:hover {
  transform: scale(1.06);
}

#me-chat-toggle p {
  position: absolute;

  bottom: 70px; /* jarak di atas lingkaran */
  left: 50%;
  transform: translateX(-50%);

  margin: 0;
  padding: 6px 12px;

  background: white;
  color: #ee4d2d;

  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;

  box-shadow: 0 5px 15px rgba(0,0,0,.15);
}

/* Saat chat terbuka */
body.me-open #me-chat-toggle {
  display: none !important;
}

#me-chat-window {
  position: fixed;
  right: 20px;
  bottom: 85px;
  width: 360px;
  max-width: calc(100% - 24px);
  height: 560px;
  max-height: 75vh;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  z-index: 99998;
  display: none;
  flex-direction: column;
}

#me-chat-window.show {
  display: flex;
}

.me-chat-header {
  background: #ee4d2d;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.me-chat-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.me-chat-title strong {
  font-size: 15px;
  color: #fff;
}

.me-chat-title small {
  font-size: 12px;
  color: rgba(255,255,255,.85);
}

#me-chat-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s;
}

#me-chat-close:hover {
  background: rgba(255,255,255,0.15);
}

#me-chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: #f5f7fb;
  -webkit-overflow-scrolling: touch;
}

.me-msg-row {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.me-msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.me-msg.bot {
  background: #ffffff;
  color: #222;
  align-self: flex-start;
  border: 1px solid #e9edf5;
}

.me-msg.user {
  background: #ee4d2d;
  color: #fff;
  align-self: flex-end;
}

.me-msg-time {
  margin-top: 4px;
  font-size: 11px;
  color: #8892a6;
}

.me-msg-time.user {
  text-align: right;
}

.me-chat-input-wrap {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
  flex-shrink: 0;
  border-top: 1px solid #e9edf5;
}

#me-chat-input {
  flex: 1;
  resize: none;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  max-height: 100px;
}

#me-chat-input:focus {
  border-color: #ee4d2d;
  box-shadow: 0 0 0 2px rgba(238, 77, 45, 0.1);
}

#me-chat-send {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #ee4d2d;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#me-chat-send:hover {
  background: #d73a1d;
}

.me-typing .me-msg {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.me-typing .me-msg span {
  width: 7px;
  height: 7px;
  background: #ee4d2d;
  border-radius: 50%;
  display: inline-block;
  animation: meBlink 2.2s infinite ease-in-out;
}

.me-typing .me-msg span:nth-child(2) {
  animation-delay: .2s;
}

.me-typing .me-msg span:nth-child(3) {
  animation-delay: .4s;
}

@keyframes meBlink {
  0%, 80%, 100% {
    transform: scale(.7);
    opacity: .4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ================= MOBILE FULL PAGE ================= */
@media (max-width: 576px) {

  #me-chat-toggle {
    right: 16px;
    bottom: 90px;
    width: 56px;
    height: 56px;
  }

  #me-chat-window {
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .me-chat-header {
    padding-top: calc(14px + env(safe-area-inset-top));
  }

  .me-chat-input-wrap {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  #me-chat-messages {
    padding: 12px;
  }

  .me-msg {
    max-width: 90%;
  }

  /* Kunci body saat chat fullscreen terbuka */
  body.me-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }
}


    
/* ===== EKSTRAKURIKULER CAROUSEL ===== */
.ekskul-swiper {
  padding: 10px 5px 50px !important;
  position: relative;
}

.ekskul-slide-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.ekskul-slide-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(var(--bs-primary-rgb), 0.18);
}

/* Wrapper gambar */
.ekskul-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.ekskul-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ekskul-slide-card:hover .ekskul-img-wrap img {
  transform: scale(1.07);
}

/* Overlay badge di atas foto */
.ekskul-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
}

.ekskul-badge-overlay {
  background: var(--bs-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Info bawah card */
.ekskul-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}

.ekskul-icon-sm {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: rgba(var(--bs-primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--bs-primary);
  transition: background 0.3s, color 0.3s;
}

.ekskul-slide-card:hover .ekskul-icon-sm {
  background: var(--bs-primary);
  color: #fff;
}

.ekskul-info h5 {
  font-size: 0.92rem;
  font-weight: 600;
  color: #2c2c2c;
  margin: 0;
  line-height: 1.3;
}

/* Navigasi panah */
.ekskul-prev,
.ekskul-next {
  color: var(--bs-primary) !important;
  background: #fff;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  top: 42% !important;
}

.ekskul-prev::after,
.ekskul-next::after {
  font-size: 1rem !important;
  font-weight: 700;
}

.ekskul-prev:hover,
.ekskul-next:hover {
  background: var(--bs-primary);
  color: #fff !important;
}

/* Pagination dots */
.ekskul-pagination .swiper-pagination-bullet {
  background: var(--bs-primary);
  opacity: 0.3;
}

.ekskul-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  width: 20px;
  border-radius: 4px;
}

/* Responsive tinggi foto */
@media (max-width: 768px) {
  .ekskul-img-wrap {
    height: 180px;
  }
}
    
    
/* ===== PROFESSIONAL MULTI-COLUMN FOOTER ===== */
.footer {
  background-color: #222222 !important; /* Latar belakang abu-abu gelap (darkgrey) */
  color: #cdd6e8 !important;
  padding: 60px 0 30px 0 !important;
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  text-align: left !important;
}

.footer h5 {
  color: #ffffff !important;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 35px;
  height: 2px;
  background-color: #e87532; /* Orange accent */
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cdd6e8 !important;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff !important;
  padding-left: 5px;
}

.footer-about p {
  line-height: 1.6;
  color: #cdd6e8;
}

.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin: 40px 0 20px 0 !important;
  max-width: 100% !important;
}

.footer-bottom {
  font-size: 0.85rem;
  color: #a5b4fc;
}

.footer-bottom strong {
  color: #ffffff;
}


/* ===== SECTION SOSIAL MEDIA ===== */
.sosial-media {
  padding: 80px 0;
  background: #f8f9fa;
  position: relative;
}

.social-profile-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-profile-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(13, 26, 99, 0.08);
}

.social-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.social-profile-card:hover .social-icon-wrapper {
  transform: scale(1.1) rotate(10deg);
}

/* YouTube Specific Styles */
.youtube-card .social-icon-wrapper {
  background: #FF0000;
}
.youtube-card:hover {
  border-bottom: 4px solid #FF0000;
}

/* Instagram Specific Styles */
.instagram-card .social-icon-wrapper {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.instagram-card:hover {
  border-bottom: 4px solid #dc2743;
}

/* TikTok Specific Styles */
.tiktok-card .social-icon-wrapper {
  background: #010101;
}
.tiktok-card:hover {
  border-bottom: 4px solid #000000;
}

.social-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.social-card-body h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0D1A63;
  margin-bottom: 6px;
}

.social-handle {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.social-card-body p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 25px;
  max-width: 280px;
}

.social-action-btn {
  margin-top: auto;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
}

.social-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.youtube-btn {
  background: #FF0000;
}
.youtube-btn:hover {
  background: #e60000;
}

.instagram-btn {
  background: linear-gradient(45deg, #f09433, #dc2743);
}
.instagram-btn:hover {
  background: linear-gradient(45deg, #e68522, #c71e37);
}

.tiktok-btn {
  background: #010101;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.tiktok-btn:hover {
  background: #111;
}

/* Override Fasilitas Section agar lebih compact */
.fasilitas .service-item {
  padding: 16px 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  border-radius: 12px !important;
}

.fasilitas .service-item i {
  font-size: 1.8rem !important;
  margin-bottom: 0 !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.fasilitas .service-item h3 {
  font-size: 1.05rem !important;
  margin-bottom: 0 !important;
  font-weight: 600 !important;
}

/* Responsive Hero Image */
.main-hero-img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
}

/* Mobile optimization for Social Media profile cards */
@media (max-width: 576px) {
  .social-profile-card {
    max-width: 310px !important;
    margin: 0 auto 15px auto !important;
    padding: 30px 20px !important;
    height: auto !important;
  }
  .social-profile-card h3 {
    font-size: 1.35rem !important;
  }
  .social-profile-card p {
    font-size: 0.88rem !important;
    margin-bottom: 20px !important;
  }
  .social-profile-card .social-icon-wrapper {
    width: 65px !important;
    height: 65px !important;
    margin-bottom: 20px !important;
  }
  .social-profile-card .position-relative span {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.8rem !important;
  }
}

/* ===== STRUKTUR ORGANISASI (PORTFOLIO) SECTION ===== */
.portfolio {
  padding: 80px 0;
}

.structure-img-container {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.structure-img-container:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
}

.structure-img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.structure-img-container:hover .structure-img {
  transform: scale(1.015);
}

.structure-img-overlay {
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.structure-img-container:hover .structure-img-overlay {
  opacity: 1 !important;
}

/* ===== CHATBOT VERTICAL PILL OPTIONS (SHOPEE STYLE) ===== */
.me-chat-options-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
  width: 100%;
  align-items: flex-start;
}

.me-chat-option-btn {
  background: #ffffff;
  color: #ee4d2d;
  border: 1px solid #ee4d2d;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(238, 77, 45, 0.05);
  display: inline-block;
  max-width: 85%;
}

.me-chat-option-btn:hover {
  background: #ee4d2d;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(238, 77, 45, 0.15);
}
.mini-info-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  max-width: 320px;
  margin: 0 auto;
  transition: 0.2s ease;
}

.mini-info-card:hover {
  border-color: #0D1A63;
  box-shadow: 0 4px 16px rgba(13, 26, 99, 0.08);
}

.mini-info-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #0D1A63;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.mini-info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.mini-info-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}



