/* =========================================================
   FILE: GLOBAL.CSS
   SECTION: GLOBAL
   DESCRIPTION: Tampilan untuk bagian Header, School Tour, dan Footer
   AUTHOR: Team SMK Paramitha Jakarta Web Project
   ========================================================= */



/* =========================================================
   IMPORT SECTION
   ========================================================= */
@import url("styles.css");


/* =========================================================
   FONT IMPORTS
   ========================================================= */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-Bold.woff2") format("woff2"),
    url("../fonts/PlusJakartaSans-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-BoldItalic.woff2") format("woff2"),
    url("../fonts/PlusJakartaSans-BoldItalic.woff") format("woff");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2"),
    url("../fonts/PlusJakartaSans-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-LightItalic.woff2") format("woff2"),
    url("../fonts/PlusJakartaSans-LightItalic.woff") format("woff");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-ExtraBoldItalic.woff2") format("woff2"),
    url("../fonts/PlusJakartaSans-ExtraBoldItalic.woff") format("woff");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-ExtraLightItalic.woff2") format("woff2"),
    url("../fonts/PlusJakartaSans-ExtraLightItalic.woff") format("woff");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-Light.woff2") format("woff2"),
    url("../fonts/PlusJakartaSans-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-ExtraLight.woff2") format("woff2"),
    url("../fonts/PlusJakartaSans-ExtraLight.woff") format("woff");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-Italic.woff2") format("woff2"),
    url("../fonts/PlusJakartaSans-Italic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-Medium.woff2") format("woff2"),
    url("../fonts/PlusJakartaSans-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-Regular.woff2") format("woff2"),
    url("../fonts/PlusJakartaSans-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-MediumItalic.woff2") format("woff2"),
    url("../fonts/PlusJakartaSans-MediumItalic.woff") format("woff");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-SemiBoldItalic.woff2") format("woff2"),
    url("../fonts/PlusJakartaSans-SemiBoldItalic.woff") format("woff");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-SemiBold.woff2") format("woff2"),
    url("../fonts/PlusJakartaSans-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   GLOBAL RESET & BASE
   ========================================================= */

:root {
  --navy: #960019;
  --accent: #0d6efd;
  --bg: #ffffff;
  --card: #ffffff;
  --muted: #6c757d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", sans-serif;
}
body {
  background: #fff;
  scroll-behavior: smooth;
}

/* =========================================================
   NAVBAR STYLE
   ========================================================= */
nav.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 24px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2000;
  flex-wrap: nowrap;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  transition: background 0.4s ease, box-shadow 0.4s ease,
    backdrop-filter 0.4s ease;
  animation: fadeDown 0.6s ease forwards;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
  margin-left: -4px;
}
.navbar-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.navbar-toggler {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  box-shadow: none !important;
  padding: 4px;
  height: 38px;
  margin-right: -4px;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   DESKTOP MENU
   ========================================================= */
.navbar-nav .nav-link {
  font-weight: 600;
  font-size: 1rem;
  color: #111;
  padding: 8px 14px;
  transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
  color: #0d6efd;
}
.dropdown-menu {
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.dropdown-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: #222;
  padding: 6px 12px;
  transition: all 0.2s ease;
}
.dropdown-item:hover {
  color: #0d6efd;
  background-color: #f4f8ff;
  border-radius: 6px;
}

/* =========================================================
   MOBILE MENU
   ========================================================= */
#navModal .modal-dialog {
  margin: 0;
  margin-top: -10%;
  max-width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#menuCard {
  width: 90%;
  max-width: 380px;
  height: 70vh;
  margin: auto;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.modal-backdrop.show {
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.3);
}
#menuCard .modal-body {
  overflow-y: auto;
  height: 100%;
  padding: 20px 15px;
}
#menuCard .modal-body::-webkit-scrollbar {
  width: 6px;
}
#menuCard .modal-body::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}

#mobileMenu {
  list-style: none;
  padding: 0;
  margin: 0;
}
#mobileMenu .nav-item {
  margin-bottom: -5px;
}
#mobileMenu .nav-link,
#mobileMenu .dropdown-toggle {
  width: 100%;
  display: block;
  text-align: left;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  color: #333;
  transition: color 0.25s ease;
  padding: 8px 0;
}
#mobileMenu .nav-link:hover,
#mobileMenu .dropdown-toggle:hover {
  color: #0d6efd;
}
#mobileMenu .dropdown-menu {
  display: none;
  padding-left: 12px;
  margin-top: 6px;
  margin-bottom: 10px;
  animation: slideDown 0.3s ease forwards;
}
#mobileMenu .dropdown-item {
  display: block;
  font-size: 15px;
  padding: 6px 0;
  color: #555;
  transition: color 0.25s ease;
}
#mobileMenu .dropdown-item:hover {
  color: #0d6efd;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================
   FIX: Hamburger menu dorong jurusan
   ============================== */

#navModal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  overflow: hidden !important;
  z-index: 3000 !important;
}

#navModal .modal-dialog {
  margin: 0 auto !important;
  height: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.modal-open {
  overflow-y: hidden !important;
}

#jurusan,
section#jurusan {
  margin-top: 0 !important;
  padding-top: 60px !important;
  position: relative !important;
  z-index: 1 !important;
}


/* =========================================================
   SCHOOL TOUR SECTION
   ========================================================= */
.school-tour {
  background: #e8f3ff;
  padding: 10px 20px 16%;
  margin-top: 7px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a2254;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 8px;
  position: relative;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  font: 1rem sans-serif;
  background: linear-gradient(90deg, #1a2254, #1a2254);
  margin: 8px auto 0;
  border-radius: 2px;
}

.section-header p {
  font-size: 1rem;
  color: #333;
  margin-top: 4px;
  max-width: 650px;
  font-weight: 700;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   SCHOOL TOUR — BACKGROUND WRAPPER
===================================================== */
.school-tour {
  padding: 0;
}

.school-tour-bg {
  background: #e8f1ff;
  padding: 50px 5% 60px;
  border-radius: 0 0 30px 30px;
}

/* =====================================================
   SCHOOL TOUR — LAYOUT
===================================================== */
.tour-container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 40px;
  margin-top: 25px;
}

/* =====================================================
   TEXT CARD
===================================================== */
.tour-card {
  flex: 1;
  background: #ffffff;
  padding: 35px;
  border-radius: 22px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.tour-card h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #0a1a44;
  margin-bottom: 15px;
}

.tour-card p {
  font-size: 1.15rem;
  color: #333;
  line-height: 1.6;
}

/* =====================================================
   READ MORE SYSTEM
===================================================== */
.tour-desc-wrapper {
  max-height: 160px;
  overflow: hidden;
  position: relative;
  transition: 0.3s ease;
}

.tour-desc-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to bottom, transparent, white);
  pointer-events: none;
}

.tour-desc-wrapper.expanded {
  max-height: 500px;
  overflow-y: auto;
}

.tour-desc-wrapper.expanded::after {
  display: none;
}

.readmore-btn {
  margin-top: 10px;
  background: none;
  border: none;
  color: #a20000;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  text-decoration: underline;
}

/* =====================================================
   CONTROLS
===================================================== */
.tour-controls {
  display: flex;
  gap: 15px;
  margin-top: auto;
}

.tour-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #a20000;
  color: white;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
}

.tour-btn:hover {
  background: #7c0000;
  transform: scale(1.05);
}

/* =====================================================
   VIDEO
===================================================== */
.tour-video-box {
  flex: 1.2;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
===================================================== */

/* TABLET */
@media (max-width: 992px) {
  .tour-container {
    flex-direction: column-reverse;
    gap: 30px;
  }

  .tour-card {
    padding: 25px !important;
  }

  .tour-controls {
    justify-content: center !important;
  }
}

/* MOBILE LARGE */
@media (max-width: 768px) {
  .school-tour-bg {
    padding: 30px 5% 100px !important;
  }

  .tour-card {
    padding: 22px 20px !important;
  }

  .tour-controls {
    justify-content: center !important; /* CENTER BUTTONS */
  }

  .tour-btn {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/* MOBILE SMALL */
@media (max-width: 480px) {
  .tour-card {
    padding: 20px !important;
  }

  .tour-controls {
    justify-content: center !important; /* CENTER BUTTONS */
  }

  .tour-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}

/* MOBILE XS */
@media (max-width: 360px) {
  .tour-card {
    padding: 16px !important;
  }

  .tour-controls {
    justify-content: center !important; /* CENTER BUTTONS */
  }

  .tour-btn {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
}


/* =========================================================
   FOOTER SECTION
   ========================================================= */
.footer {
  background: #fff;
  width: 100%;
  overflow: hidden;
  text-align: center;
  padding: 0px 3vw 40px;
  transition: margin-top 0.3s ease;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto 30px;
  flex-wrap: wrap;
  gap: 20px;
  box-sizing: border-box;
  position: relative;
}
.footer-card {
  flex: 1 1 45%;
  background: #f1f7fd;
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 25px;
  text-align: left;
  box-sizing: border-box;
  min-width: 300px;
  position: relative;
  transition: all 0.4s ease;
}
.footer-card:first-child {
  margin-left: -4vw;
  justify-content: flex-start;
}
.footer-card:last-child {
  margin-right: -4vw;
  flex-direction: row-reverse;
  justify-content: space-between;
}
.footer-card img.footer-logo {
  width: clamp(80px, 10vw, 120px);
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
  border-radius: 8px;
  padding: 6px;
  align-self: center;
}
.footer-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}
.footer-info p {
  font-size: 14px;
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}
.footer-info img {
  width: 18px;
  height: 18px;
}
.footer-bottom {
  border-top: 1px solid #dce3ea;
  padding-top: 15px;
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}
.footer-social-desktop {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.footer-social-desktop a {
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  transition: 0.3s;
}
.footer-social-desktop img {
  width: 20px;
  height: 20px;
}
.footer-social-desktop a:hover {
  transform: translateY(-2px);
}
.footer-social-mobile {
  display: none;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}
.footer-social-mobile img {
  width: 24px;
  transition: 0.3s;
}
.footer-social-mobile img:hover {
  transform: scale(1.1);
}
.copyright {
  font-size: 16px;
  color: #000;
  margin-bottom: 5px;
  font-weight: 500;
  padding: 0 10px;
}
.copyright strong {
  font-weight: 700;
}

/* =========================================================
   SLIDE-IN ANIMATIONS
   ========================================================= */
.slide-left,
.slide-right {
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: transform, opacity;
}
.slide-left {
  transform: translateX(-100px);
}
.slide-right {
  transform: translateX(100px);
}
.slide-left.show,
.slide-right.show {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================================
   HEADER BOX & FADE-IN
   ========================================================= */
.header-box {
  background: var(--navy);
  color: #fff;
  text-align: left;
  margin-top: 5vh;
  padding: 20px 40px;
  animation: fadeSlideUp 1.2s ease forwards;
}
.header-box h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-left: -2%;
  letter-spacing: 0.5px;
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   MEDIA QUERIES - RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .footer {
    margin-top: -12%;
  }
}
@media (max-width: 768px) {
  .footer {
    margin-top: -15%;
    padding: 35px 0 25px;
  }
  .footer-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 0;
  }
  .footer-card {
    width: 100vw;
    max-width: none;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    gap: 15px;
    text-align: left;
    position: relative;
  }
  .footer-card:first-child {
    transform: translateX(-4vw);
    flex-direction: row;
    justify-content: flex-start;
  }
  .footer-card:last-child {
    transform: translateX(4vw);
    flex-direction: row-reverse;
    justify-content: space-between;
  }
  .slide-left {
    transform: translateX(-60px);
  }
  .slide-right {
    transform: translateX(60px);
  }
  .slide-left.show,
  .slide-right.show {
    opacity: 1;
    transform: translateX(0);
  }
  .footer-card img.footer-logo {
    width: auto;
    height: auto;
    max-width: 75px;
    aspect-ratio: 1/1;
    align-self: center;
  }
  .footer-info {
    text-align: left !important;
    width: 100%;
  }
  .footer-info h3 {
    font-size: 15px;
    margin-bottom: 3px;
  }
  .footer-info p {
    font-size: 13px;
    line-height: 1.4;
    justify-content: flex-start;
  }
  .footer-social-desktop {
    display: none;
  }
  .footer-social-mobile {
    display: flex;
  }
  .footer-bottom {
    width: 100%;
    padding-top: 15px;
  }
  .copyright {
    font-size: 14px;
  }
}
