/*
Theme Name: campus-nice
Theme URI: https://alexandrapane.com/campus-nice/
Author: Alexandra Pane
Author URI: https://alexandrapane.com/
Description:  Wordpress tema untuk berbagai keperluan dalam publikasi.
Version: 1.0
Text Domain: campus-nice
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar, custom-background, e-commerce, theme-options, sticky-post, full-width-template
*/

/* Fonts */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
  --background-color: #f1f5f4; /* Background color for the entire website, including individual sections */
  --default-color: #212529; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #2d465e; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #08915e; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: rgba(255, 255, 255, 0.75); /* The default color of the main navmenu links */
  --nav-hover-color: #08915e; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #212529; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #08915e; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #ffffff;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 70px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 60px;
  text-align: center;
  position: relative;
  margin-bottom: 0px;
}

.page-title:before {
  content: "";
  background-color: color-mix(in srgb, var(--background-color), transparent 30%);
  position: absolute;
  inset: 0;
}

.page-title h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li + li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li + li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 1px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}

@media (max-width: 1199px) {
  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  position: relative;
}

.section-title h2:before,
.section-title h2:after {
  content: "";
  width: 50px;
  height: 2px;
  background: var(--accent-color);
  display: inline-block;
}

.section-title h2:before {
  margin: 0 15px 10px 0;
}

.section-title h2:after {
  margin: 0 0 10px 15px;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Pagination 2 Section
--------------------------------------------------------------*/
.pagination-2 {
  padding-top: 0;
}

.pagination-2 nav {
  position: relative;
}

.pagination-2 ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pagination-2 li {
  margin: 0;
  transition: all 0.3s ease-in-out;
}

.pagination-2 li.ellipsis {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 8px 16px;
  user-select: none;
}

.pagination-2 li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 16px;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 4px color-mix(in srgb, var(--default-color), transparent 90%);
}

.pagination-2 li a.active {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.pagination-2 li a:hover:not(.active) {
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px color-mix(in srgb, var(--default-color), transparent 85%);
}

.pagination-2 li a i {
  font-size: 14px;
}

.pagination-2 li a span {
  margin: 0 4px;
}

@media (max-width: 575px) {
  .pagination-2 ul {
    gap: 4px;
  }

  .pagination-2 li a {
    min-width: 36px;
    height: 36px;
    padding: 8px 12px;
    font-size: 14px;
  }
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
  margin-bottom: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  vertical-align: top;
  width: 100%;
}
.gallery-item .gallery-columns-2 {
  max-width: 50%;
}
.gallery-item .gallery-columns-3 {
  max-width: 33.33333%;
}
.gallery-item .gallery-columns-4 {
  max-width: 25%;
}
.gallery-item .gallery-columns-5 {
  max-width: 20%;
}
.gallery-item .gallery-columns-6 {
  max-width: 16.66667%;
}
.gallery-item .gallery-columns-7 {
  max-width: 14.28571%;
}
.gallery-item .gallery-columns-8 {
  max-width: 12.5%;
}
.gallery-item .gallery-columns-9 {
  max-width: 11.11111%;
}

.gallery-caption {
  display: block;
}
img {
    border-radius: 10px;
}
.wp-block-group {
    padding: 10px;
    background: #abff908c;
    margin-bottom: 20px;
    margin-top: 20px;
    border-radius: 15px;
}

/* ===============================
   Single Layout & Sidebar Fix
   =============================== */
/* Layout utama */
.artikel-container {
  display: flex;
  margin: 0 auto;
  padding: 20px;
  flex-direction: column;
}
.artikel-main {
  flex: 2;
  min-width: 0;
}

/* Featured Image */
.featured-image img {
  width: 100%;
  max-height: 600px;
  border-radius: 14px;
  object-fit: cover;
}
.no-image {
  background: #f1f1f1;
  height: 200px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  color: #999;
}

/* Layout Meta Post */
.meta-post-layout {
  background: #093b32;
  padding: 10px 30px 10px 30px;
  margin-top: -10px;
  margin-bottom: 20px;
}
.title-layout {
  margin-bottom: 7px;
}
.artikel-title {
  font-size: 24px;
  margin: 20px 0 5px;
  color: #ffffff;
  display: flex;
  font-family: "Poppins";
}
.artikel-meta {
  display: flex;
  gap: 7px;
  font-size: 14px;
  margin-bottom: 10px;
  color: #0c0c0c;
  flex-wrap: wrap;
}
.artikel-meta span {
  color: azure;
}
.artikel-meta span a {
  color: azure;
}

/* Contents */
.artikel-content {
  display: flex;
  gap: 20px;
  align-items: start;
}
.artikel-body {
  flex: 2;
  min-width: 70%;
  line-height: 1.5;
  font-size: 16px;
  color: #333;
}

/* sidebar layout */
aside.sidebar.sidebar-right {
  padding: 20px 10px 0px 20px;
  background: #e0e7e2a6;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
aside.sidebar.sidebar-right h2 {
  font-size: 24px;
}
aside.sidebar.sidebar-right h1 {
  font-size: 24px;
}
aside.sidebar.sidebar-right h3 {
  font-size: 24px;
}

/* Responsiveness */
@media (max-width: 992px) {
  .featured-image img {
    object-fit: cover;
    height: auto;
  }
  .artikel-container {
    flex-direction: column;
    padding: 20px;
  }

  .artikel-content {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .featured-image img {
    object-fit: cover;
    height: auto;
  }
  .artikel-title {
    font-size: 1.2rem;
  }
}
/* ===============================
   Share Bottom Post
   =============================== */
.share-buttons {
  font-size: 24px;
  padding: 10px;
}
.share-buttons a {
  font-size: 24px;
  margin-right: 10px;
}
.share-article {
  border-top: 1px solid #58ef79;
  padding-top: 0;
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.share-article h4 {
  font-size: 18px;
}
/* ===============================
   Related Post
   =============================== */
.layout-related {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 10px;
}
.card-img-left a img {
  width: 100%;
  height: 60px;
  object-fit: cover;
}
.card-title {
  font-size: 18px;
}
.card-title a {
  color: #000;
  font-weight: 500;
}
.layout-meta-related {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
}

.program-item {
  position: relative;
  border-radius: 12px;
  transition: box-shadow 0.3s ease;
  background: #fff;
}

.program-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.program-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #0d3a99;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  z-index: 10;
}
.program-content h3 {
  padding-top: 20px;
}
.program-content h3 a {
  color: #0f172a;
  font-weight: 600;
  font-size: 1rem;
}

.program-content h3 a:hover {
  color: #22c55e;
}
p.text-muted.mb-3 {
  font-size: 11px;
}
.program-highlights span {
  display: inline-block;
  margin-bottom: 2px;
  font-size: 13px;
}

.program-btn {
  color: #047857;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.program-btn:hover {
  text-decoration: underline;
}

.object-fit-cover {
  object-fit: cover;
}