/*
Theme Name: Informatika UNLIP Theme
Theme URI: https://inf.fkt.unlip.ac.id
Author: M Hasbi Hasbullah
Author URI: https://hasbihasbullh.my.id
Description: Professional responsive WordPress theme for UNLIP Informatika program study website
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 7.2
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: unlip-informatika
Domain Path: /languages
*/

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand palette (centralized) */
  --primary: #7a3d02;
  --primary-2: #9b5210;
  --primary-dark: #5c2d01;
  --gold: #f5c97a;

  /* Neutral / utility */
  --gray: #f2f2f5;
  --text: #000000;
  --text-light: #555;
  --bg-white: #ffffff;
  --bg-muted: #c8d8c8;
  --bg-green-1: #b8cbb8;
  --bg-green-2: #7da87d;
  --muted-green: #4a7a5a;
  --blue: #2c7be5;
  --purple: #6f42c1;
  --teal: #20c997;
  --pink: #e83e8c;
  --orange: #fd7e14;
  --divider: #e8e8e8;

  /* Backwards compatibility variables used across CSS */
  --green: var(--primary);
  --green-light: var(--primary-2);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--bg-white);
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
}

.nav-logo {
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo i {
  color: var(--gold);
}

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin: 0 20px;
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  max-width: 180px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  align-items: center;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  transition:
    color 0.2s,
    background 0.2s,
    all 0.2s ease;
}

.nav-links > li > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Only active link should have this styling */
.nav-links > li > a.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.nav-links > li > a .fa-chevron-down {
  font-size: 0.6rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-links > li.has-dropdown:hover > a .fa-chevron-down {
  transform: rotate(180deg);
}

/* ===== DROPDOWN ===== */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border-radius: 8px;
  min-width: 220px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  pointer-events: none;
  z-index: 2000;
  transform: translateY(-8px);
}

.nav-links > li.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 11px 18px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.dropdown-menu a:hover {
  background: rgba(26, 71, 49, 0.06);
  color: var(--green);
  padding-left: 22px;
}

/* ===== NAV BTN & HAMBURGER ===== */
.nav-btn {
  background: #fff;
  color: #7a3d02;
  border: none;
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-btn:hover {
  opacity: 0.85;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 6px 8px;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Show hamburger on mobile */
@media (max-width: 1024px) {
  .hamburger {
    display: block;
  }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--green);
  z-index: 999;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-nav-list {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
}

.mobile-nav-list > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
}

.mobile-nav-list > li:last-child {
  border-bottom: none;
}

.mobile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 16px 20px;
  transition: all 0.2s ease;
}

.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  padding-left: 24px;
}

.mobile-link.active {
  color: var(--gold);
  font-weight: 600;
}

.mobile-link i {
  width: 20px;
  font-size: 0.85rem;
  color: var(--gold);
}

.mobile-dropdown {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
  text-align: left;
}

.mobile-toggle:hover {
  color: #fff;
  padding-left: 24px;
}

.mobile-toggle i {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-left: auto;
}

.mobile-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 8px 0 12px 20px;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  margin-left: 0;
  margin-bottom: 0;
  list-style: none;
  animation: slideDown 0.25s ease;
}

.mobile-submenu:not([hidden]) {
  display: flex;
}

.mobile-submenu li {
  margin: 0;
  border: none;
}

.mobile-submenu .mobile-link {
  padding: 10px 0 10px 20px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.mobile-submenu .mobile-link:hover {
  color: #fff;
  padding-left: 26px;
}

.mobile-submenu .mobile-link i {
  font-size: 0.75rem;
  color: var(--gold);
}

/* Mobile PMB Button at Bottom */
.mobile-pmb {
  flex-shrink: 0;
  margin: 12px 20px 20px;
  width: calc(100% - 40px);
  justify-content: center;
  text-align: center;
  padding: 13px 28px !important;
}

/* ===== PAGE HEADER (digunakan di semua inner page) ===== */
.page-header {
  margin-top: 60px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  padding: 60px 80px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: attr(data-title);
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Playfair Display", serif;
  font-size: 8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

.breadcrumb .current {
  color: var(--gold);
  font-size: 0.8rem;
}

.page-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  max-width: 520px;
  line-height: 1.7;
}

/* ===== SHARED COMPONENTS ===== */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26, 71, 49, 0.08);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  width: fit-content;
}

.section-center {
  text-align: center;
  margin-bottom: 50px;
}

.section-center .section-tag {
  margin: 0 auto 16px;
}

.section-center h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 14px;
  line-height: 1.3;
}

.section-center p {
  color: var(--text-light);
  font-size: 0.9rem;
  max-width: 520px;
  margin: 0 auto;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--green-light);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  padding: 11px 24px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--green);
  color: #fff;
}

/* ===== FOOTER ===== */
footer {
  background: #1a0a00;
  padding: 60px 80px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
}

/* ===== FOOTER LOGOS SECTION (NEW) ===== */
.footer-logos {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
}

.footer-logos .logo {
  flex-shrink: 0;
}

.footer-logos .university-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logos .university-logo .footer-logo-img {
  height: 52px;
  width: auto;
}

.footer-logos .prodi-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logos .prodi-logo .footer-logo-img {
  height: 48px;
  width: auto;
}

/* ===== END FOOTER LOGOS SECTION ===== */

.footer-brand p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  line-height: 1.7;
  max-width: 340px;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.social-link:hover {
  background: var(--gold);
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-col ul li a i {
  font-size: 0.6rem;
  color: var(--gold);
}

/* Footer Map Column */
.footer-map {
  position: relative;
}

.footer-map iframe {
  margin-top: 8px;
}

.footer-bottom {
  grid-column: 1/-1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== ANIMATION ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  nav {
    padding: 0 24px;
  }
  .nav-center {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .page-header {
    padding: 50px 40px;
  }
  .page-header::before {
    display: none;
  }
  .page-header h1 {
    font-size: 2.2rem;
  }
  footer {
    grid-template-columns: 1fr 1fr;
    padding: 48px 40px 28px;
    gap: 32px;
  }
  .footer-bottom {
    grid-column: 1/-1;
  }

  /* Footer logos responsive */
  .footer-logos {
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-logos .university-logo .footer-logo-img {
    height: 45px;
  }

  .logo-separator {
    height: 45px;
    margin: 0 4px;
  }

  .footer-logos .prodi-logo .footer-logo-img {
    height: 42px;
  }

  .cta-banner {
    padding: 60px 40px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 16px;
  }

  .mobile-menu {
    top: 60px;
  }

  .page-header {
    padding: 40px 20px;
  }
  .page-header h1 {
    font-size: 1.8rem;
  }
  footer {
    grid-template-columns: 1fr;
    padding: 40px 20px 24px;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-bottom-links {
    justify-content: center;
  }

  /* Footer logos responsive mobile */
  .footer-logos {
    gap: 10px;
  }

  .footer-logos .university-logo .footer-logo-img {
    height: 40px;
  }

  .logo-separator {
    height: 40px;
    margin: 0 4px;
  }

  .footer-logos .prodi-logo .footer-logo-img {
    height: 37px;
  }

  .cta-banner {
    padding: 48px 20px;
  }
  .cta-banner h2 {
    font-size: 1.8rem;
  }
  .section-center h2 {
    font-size: 1.8rem;
  }
}
