/*
Theme Name: FuturaCampus
Theme URI: https://adeusweb.com/
Author: Anindityo
Description: Tema kampus modern futuristik berbasis Bootstrap dengan color scheme Poltekkes Kemenkes Surakarta
Version: 1.2
License: GNU General Public License v2 or later
Text Domain: futuracampus
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* ==========================================================
   RESET & BASE STYLES
   ========================================================== */
:root {
  --futura-primary: #00A7A0;
  --futura-hover: #00B7E5;
  --futura-text: #0B2C3A;
  --futura-teal: #007f7a;
}

body {
  background: #ffffff;
  color: var(--futura-text);
  font-family: "Roboto", sans-serif;
  margin: 0;
}

.text-primary {
  font-weight: 700 !important;
  color: var(--futura-primary) !important;
}

/* ===== NAVBAR GLASS STYLE ===== */
.glass-nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.glass-nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  backdrop-filter: blur(18px);
}

.glass-nav .navbar-brand {
  color: var(--futura-teal);
  font-weight: 600;
  text-decoration: none;
}

.glass-nav .navbar-brand,
.glass-nav .menu > li > a {
  transition: color 0.3s ease, background 0.3s ease;
  font-size: 0.8rem;
  font-weight: 400;
}

.glass-nav .main-nav {
  display: flex;
  align-items: center;
}

.glass-nav .menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.glass-nav .menu li {
  position: relative;
}

.glass-nav .menu > li > a {
  color: #004f4c;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.8rem;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.glass-nav .menu > li > a:hover {
  color: #00a79d;
}

/* ===== SUBMENU (2 Level) ===== */
.glass-nav .menu li ul {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid #eee;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  z-index: 999;
}

.glass-nav .menu li:hover > ul {
  display: block;
  animation: slideDown 0.25s ease forwards;
}

.glass-nav .menu li ul li {
  width: 100%;
}

.glass-nav .menu li ul li a {
  display: block;
  padding: 0.6rem 1rem;
  color: #004f4c;
  text-decoration: none;
  font-size: 0.8rem;
}

.glass-nav .menu li ul li a:hover {
  background: #00a79d;
  color: #fff;
}

/* Level ke-2 */
.glass-nav .menu li ul li ul {
  top: 0;
  left: 100%;
  margin-left: 1px;
}

/* Animasi */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== HAMBURGER TOGGLER ===== */
.navbar-toggler {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.toggler-line {
  height: 3px;
  width: 100%;
  background-color: var(--futura-teal);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggler.active .toggler-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.navbar-toggler.active .toggler-line:nth-child(2) {
  opacity: 0;
}
.navbar-toggler.active .toggler-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== MOBILE MENU ===== */
@media (max-width: 992px) {
  .glass-nav .main-nav {
    position: fixed;
    top: 70px;
    right: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  }

  .glass-nav .main-nav.active {
    max-height: 500px;
    padding: 1rem 0;
  }

  .glass-nav .menu {
    flex-direction: column;
    gap: 0.5rem;
  }

  .glass-nav .menu li ul {
    position: static;
    box-shadow: none;
    border: none;
  }

  .glass-nav .menu li ul li a {
    padding-left: 2rem;
  }

  .navbar-toggler {
    display: flex;
  }
}


/* ===============================================
   FUTURISTIC CAROUSEL STYLE
   =============================================== */
.carousel-item img {
  height: 80vh;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.05);
  border-radius: 0;
}

.carousel-caption {
  background: linear-gradient(90deg, rgba(0,167,160,0.85), rgba(0,183,229,0.65));
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  box-shadow: 0 0 25px rgba(0,183,229,0.4);
  animation: fadeUp 1s ease forwards;
}

.carousel-caption h2 {
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 15px rgba(0,183,229,0.9);
}
.carousel-caption h2 span {
  color: #8BC53F;
}
.carousel-caption p {
  color: #f0f0f0;
  font-size: 1.1rem;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== ABOUT US SECTION (MINIMALIST WITH DIVIDER) ===== */
.about-us-section {
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.about-us-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #00897b;
}

.about-us-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
}

.about-image img {
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.btn-futura {
  background-color: var(--futura-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-futura:hover {
  background-color: #00897b;
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Wave Divider ===== */
.custom-shape-divider-bottom-172944 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.custom-shape-divider-bottom-172944 svg {
  position: relative;
  display: block;
  width: calc(133% + 1px);
  height: 50px;
}

.custom-shape-divider-bottom-172944 path {
  transform-origin: center;
}

/* Responsif */
@media (max-width: 768px) {
  .about-us-section {
    text-align: center;
  }
  .about-image {
    margin-bottom: 1.5rem;
  }
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  background: url('https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1920&q=80')
    no-repeat center center/cover;
  overflow: hidden;
}

.cta-section .cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 167, 160, 0.9) 0%,
    rgba(11, 44, 58, 0.85) 100%
  );
  z-index: 1;
}

.cta-section .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.btn-cta {
  background-color: var(--futura-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background-color: var(--futura-teal);
  transform: translateY(-3px);
}

/* Responsif */
@media (max-width: 768px) {
  .cta-section h2 {
    font-size: 1.6rem;
  }
  .cta-section p {
    font-size: 1rem;
  }
}

/* ==========================================================
   LINK STYLING
   ========================================================== */
a {
  color: var(--futura-primary);
  text-decoration: underline;
  transition: all 0.3s ease;
}
a:hover {
  color: var(--futura-hover);
  text-decoration: none;
  /* text-shadow: 0 0 8px var(--futura-hover), 0 0 20px var(--futura-primary); */
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn-primary {
  background-color: var(--futura-primary);
  border-color: var(--futura-primary);
  color: #fff;
  /* border-radius: 50px; */
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: linear-gradient(90deg, var(--futura-primary), var(--futura-teal));
  transform: translateY(-3px);
}

/* ==========================================================
   CAROUSEL DASHBOARD
   ========================================================== */
.carousel-inner img {
  /* border-radius: 16px; */
  box-shadow: 0 8px 30px rgba(0, 167, 160, 0.35);
}
.carousel-caption {
  background: rgba(0, 167, 160, 0.6);
  padding: 20px;
  /* border-radius: 16px; */
  color: #fff;
}

/* ===== NEWS SECTION ===== */
.news-section {
  background-color: #f8f9fa;
  position: relative;
}

.news-section h2 {
  font-size: 2rem;
  color: #00897b;
}

.news-card {
  transition: all 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

.news-thumbnail img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-thumbnail img:hover {
  transform: scale(1.05);
}

.news-card .card-body {
  padding: 1.2rem;
}

.news-card .card-title a:hover {
  color: var(--futura-primary);
}

.btn-futura-sm {
  background-color: var(--futura-primary);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-futura-sm:hover {
  background-color: #00897b;
  color: #fff;
}

@media (max-width: 768px) {
  .news-card img {
    height: 180px;
  }
  .news-section h2 {
    font-size: 1.6rem;
  }
}

/* ===== POST NAVIGATION ===== */
.post-navigation {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  font-weight: 500;
}

.post-navigation a {
  color: var(--futura-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.post-navigation a:hover {
  color: var(--futura-text);
  text-decoration: underline;
}

.post-navigation i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.post-navigation a:hover i {
  transform: translateX(3px);
}

.prev-post i {
  transform: translateX(0);
}

.next-post i {
  transform: translateX(0);
}

/* ===== FOOTER SECTION ===== */
.footer-section {
  background: linear-gradient(135deg, var(--futura-primary), var(--futura-teal));
  color: #ffffff;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.footer-section h5 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.85);
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.social-icons a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.15);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsif */
@media (max-width: 768px) {
  .footer-section {
    text-align: center;
  }
  .social-icons a {
    margin-right: 1rem;
  }
}

/* ===== CATEGORY PAGE ===== */
.category-header {
  background: linear-gradient(135deg, var(--futura-primary), var(--futura-teal));
  color: #fff;
}

.category-header h1 {
  font-size: 2rem;
  color: #fff;
}

.category-posts {
  background-color: #f8f9fa;
}

.post-card {
  border-radius: 10px;
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.post-thumbnail img {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  height: 220px;
  object-fit: cover;
}

.btn-futura-sm {
  background-color: var(--futura-primary);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-futura-sm:hover {
  background-color: #00897b;
  color: #fff;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--futura-primary);
  border-radius: 6px;
  color: var(--futura-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background-color: var(--futura-primary);
  color: #fff;
}

/* ===== SINGLE POST PAGE ===== */
.single-hero {
  background: linear-gradient(135deg, var(--futura-primary), var(--futura-teal));
  color: #fff;
}

.single-hero h1 {
  font-size: 2rem;
}

.post-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
}

.post-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1rem 0;
}

.post-content h2, 
.post-content h3 {
  color: var(--futura-teal);
  margin-top: 2rem;
}

.post-pagination a {
  color: var(--futura-primary);
  text-decoration: none;
  font-weight: 600;
}

.post-pagination a:hover {
  color: #00897b;
}

/* ===== SIDEBAR STYLE (Revised Compact Version) ===== */
.sidebar {
  background: #fff;
  padding: 1.5rem 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Judul Widget - elegan dengan aksen garis dan warna */
.sidebar .widget-title,
.sidebar h5 {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--futura-teal);
  position: relative;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 167, 160, 0.25);
}

.sidebar .widget-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 45px;
  height: 3px;
  background: var(--futura-primary);
  border-radius: 2px;
}

/* Widget container spacing */
.sidebar .sidebar-widget {
  margin-bottom: 1.5rem;
}

/* ===== COMPACT LIST STYLE ===== */
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar ul li {
  display: flex;
  align-items: center;
  margin-bottom: 0.7rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease;
}

.sidebar a {
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar a:hover {
  color: var(--futura-primary);
}

/* ===== RECENT POSTS STYLE (Custom Widget Default) ===== */
.sidebar-thumb {
  width: 60px;
  height: 50px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sidebar-post-item:hover .sidebar-thumb {
  transform: scale(1.05);
}

.sidebar-post-info {
  line-height: 1.3;
}

.sidebar-post-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.15rem;
}

.sidebar-post-title:hover {
  color: var(--futura-primary);
}

.sidebar-post-date {
  font-size: 0.75rem;
  color: #888;
}

/* Responsif */
@media (max-width: 992px) {
  .sidebar {
    margin-top: 2rem;
  }
}

.sidebar select,
.sidebar input,
.sidebar textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
}

.sidebar select:focus,
.sidebar input:focus,
.sidebar textarea:focus {
  border-color: var(--futura-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 167, 160, 0.15);
}

/* ===== SIDEBAR REVEAL ANIMATION ===== */
.reveal-sidebar {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal-sidebar.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-sidebar .sidebar-widget {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.reveal-sidebar.revealed .sidebar-widget {
  opacity: 1;
  transform: translateY(0);
}

.reveal-sidebar.revealed .sidebar-widget:nth-child(1) { transition-delay: 0.1s; }
.reveal-sidebar.revealed .sidebar-widget:nth-child(2) { transition-delay: 0.2s; }
.reveal-sidebar.revealed .sidebar-widget:nth-child(3) { transition-delay: 0.3s; }
.reveal-sidebar.revealed .sidebar-widget:nth-child(4) { transition-delay: 0.4s; }



/* ===== TAG PAGE ===== */
.tag-header {
  background: linear-gradient(135deg, var(--futura-primary), var(--futura-teal));
  color: #fff;
}

.tag-header h1 {
  font-size: 2rem;
  color: #fff;
}

.tag-posts {
  background-color: #f8f9fa;
}

.tag-posts .post-card {
  border-radius: 10px;
  transition: all 0.3s ease;
}

.tag-posts .post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.tag-posts .post-thumbnail img {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  height: 220px;
  object-fit: cover;
}

/* ===== ARCHIVE PAGE ===== */
.archive-header {
  background: linear-gradient(135deg, var(--futura-primary), var(--futura-teal));
  color: #fff;
}

.archive-header h1 {
  font-size: 2rem;
  color: #fff;
}

.archive-posts {
  background-color: #f8f9fa;
}

.archive-posts .post-card {
  border-radius: 10px;
  transition: all 0.3s ease;
}

.archive-posts .post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.archive-posts .post-thumbnail img {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  height: 220px;
  object-fit: cover;
}

/* ===== PAGE STYLE ===== */
.page-hero {
  background: linear-gradient(135deg, var(--futura-primary), var(--futura-teal));
  color: #fff;
}

.page-hero h1 {
  font-size: 2rem;
  color: #fff;
}

.page-content {
  background-color: #f8f9fa;
}

.page-article {
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
}

.page-article h2,
.page-article h3 {
  color: var(--futura-teal);
  margin-top: 2rem;
  font-weight: 600;
}

.page-article p {
  margin-bottom: 1rem;
}

.page-featured-image img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-links {
  margin-top: 2rem;
  font-weight: 600;
}

.page-links a {
  color: var(--futura-primary);
  margin: 0 0.3rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.page-links a:hover {
  border-bottom: 2px solid var(--futura-primary);
}

@media (max-width: 992px) {
  .page-hero h1 {
    font-size: 1.6rem;
  }
  .page-article {
    font-size: 0.95rem;
  }
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  background-color: #f8f9fa;
}

.contact-info ul {
  margin: 0;
  padding: 0;
}

.contact-info li {
  font-size: 0.95rem;
  color: #444;
}

.contact-info i {
  flex-shrink: 0;
}

.contact-form label {
  font-weight: 600;
  color: #333;
}

.contact-form .form-control {
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--futura-primary);
  box-shadow: 0 0 0 3px rgba(0, 167, 160, 0.2);
}

.contact-map iframe {
  border: none;
  width: 100%;
  height: 400px;
}

@media (max-width: 768px) {
  .contact-info, .contact-form {
    padding: 1rem;
  }
}

/* ===== 404 PAGE STYLE ===== */
.error-404-section {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.error-illustration {
  max-width: 400px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.error-404-section h1 {
  font-size: 1.8rem;
}

.error-404-section p {
  max-width: 500px;
  margin: 0 auto;
}

.btn-futura {
  background-color: var(--futura-primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-futura:hover {
  background-color: #00897b;
  transform: translateY(-2px);
}

/* ===== SEARCH PAGE ===== */
.search-header {
  background: linear-gradient(135deg, #00a7a0, var(--futura-teal));
  color: #fff;
}

.search-header h1 {
  font-size: 2rem;
}

.search-header .lead {
  font-size: 1.1rem;
}

.search-results {
  background-color: #f8f9fa;
}

.search-results .card {
  border-radius: 10px;
  transition: all 0.3s ease;
}

.search-results .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.search-results .card-img-top {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  height: 200px;
  object-fit: cover;
}

.btn-futura-sm {
  background-color: #00a7a0;
  color: #fff;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-futura-sm:hover {
  background-color: #00897b;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .search-header h1 {
    font-size: 1.6rem;
  }
}

mark.search-term {
  background: rgba(0, 167, 160, 0.2);
  color: var(--futura-teal);
  font-weight: 600;
  border-radius: 3px;
  padding: 0 2px;
}
