/*

TemplateMo 590 topic listing

https://templatemo.com/tm-590-topic-listing

*/

/*---------------------------------------
  CUSTOM PROPERTIES ( VARIABLES )             
-----------------------------------------*/
:root {
  --white-color:                  #ffffff;
  --primary-color:                #6fb8ff; /* light blue (dominant) */
  --secondary-color:              #2f49b7; /* deep blue accent */
  --accent-color:                 #a58cff; /* softer lavender accent */
  --section-bg-color:             #ffffff; /* keep sections mostly white */
  --custom-btn-bg-color:          var(--primary-color);
  --custom-btn-bg-hover-color:    var(--secondary-color);
  --dark-color:                   #000000;
  --p-color:                      #717275;
  --border-color:                 #7fffd4;
  --link-hover-color:             #13547a;

  --body-font-family:             'Open Sans', sans-serif;
  --title-font-family:            'Montserrat', sans-serif;

  --h1-font-size:                 58px;
  --h2-font-size:                 46px;
  --h3-font-size:                 32px;
  --h4-font-size:                 28px;
  --h5-font-size:                 24px;
  --h6-font-size:                 22px;
  --p-font-size:                  20px;
  --menu-font-size:               14px;
  --btn-font-size:                18px;
  --copyright-font-size:          16px;

  --border-radius-large:          100px;
  --border-radius-medium:         20px;
  --border-radius-small:          10px;

  --font-weight-normal:           400;
  --font-weight-medium:           500;
  --font-weight-semibold:         600;
  --font-weight-bold:             700;
}

body {
  background-color: var(--white-color);
  font-family: var(--body-font-family);
  position: relative;
  z-index: 10;
}

main {
  position: relative;
  z-index: 10;
}

/*---------------------------------------
  ANIMATIONS & KEYFRAMES            
-----------------------------------------*/

/* Floating Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Slide In From Top */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide In From Left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In Pulse */
@keyframes fadeInPulse {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Bounce Animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Glow Animation */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(111, 184, 255, 0.28);
  }
  50% {
    box-shadow: 0 0 20px rgba(128, 208, 199, 0.6);
  }
}

/* Rotate Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Gradient Animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


/*---------------------------------------
  TYPOGRAPHY               
-----------------------------------------*/

h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--title-font-family); 
  font-weight: var(--font-weight-semibold);
}

h1 {
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: var(--h2-font-size);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  font-size: var(--h5-font-size);
}

h6 {
  color: var(--primary-color);
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

ul li {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

a, 
button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover-color);
}

b,
strong {
  font-weight: var(--font-weight-bold);
}


/*---------------------------------------
  SECTION               
-----------------------------------------*/
.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
}

.section-bg {
  background-color: var(--section-bg-color);
}

.section-overlay {
  background-image: linear-gradient(15deg, var(--primary-color) 0%, var(--accent-color) 30%, var(--secondary-color) 100%);
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.section-overlay + .container {
  position: relative;
}

.tab-content {
  background-color: var(--white-color);
  border-radius: var(--border-radius-medium);
}

.nav-tabs {
  border-bottom: 1px solid #ecf3f2;
  margin-bottom: 40px;
  justify-content: center;
}

.nav-tabs .nav-link {
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  color: var(--p-color);
  font-family: var(--title-font-family);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-medium);
  padding: 15px 25px;
  transition: all 0.3s;
}

.nav-tabs .nav-link:first-child {
  margin-right: 20px;
}

.nav-tabs .nav-item.show .nav-link, 
.nav-tabs .nav-link.active,
.nav-tabs .nav-link:focus, 
.nav-tabs .nav-link:hover {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
}


/*---------------------------------------
  CUSTOM ICON COLOR               
-----------------------------------------*/
.custom-icon {
  color: var(--secondary-color);
}


/*---------------------------------------
  CUSTOM BUTTON               
-----------------------------------------*/
.custom-btn {
  background: var(--custom-btn-bg-color);
  border: 2px solid transparent;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-semibold);
  line-height: normal;
  transition: all 0.3s;
  padding: 10px 20px;
}

.custom-btn:hover {
  background: var(--custom-btn-bg-hover-color);
  color: var(--white-color);
}

.custom-border-btn {
  background: transparent;
  border: 2px solid var(--custom-btn-bg-color);
  color: var(--custom-btn-bg-color);
}

.custom-border-btn:hover {
  background: var(--custom-btn-bg-color);
  border-color: transparent;
  color: var(--white-color);
}

.custom-btn-bg-white {
  border-color: var(--white-color);
  color: var(--white-color);
}


/*---------------------------------------
  SITE HEADER              
-----------------------------------------*/
.site-header {
  background-image: linear-gradient(15deg, var(--primary-color) 0%, var(--accent-color) 30%, var(--secondary-color) 100%);
  padding-top: 150px;
  padding-bottom: 80px;
}

.site-header .container {
  height: 100%;
}

.breadcrumb-item+.breadcrumb-item::before,
.breadcrumb-item a:hover,
.breadcrumb-item.active {
  color: var(--white-color);
}

.site-header .custom-icon {
  color: var(--white-color);
  font-size: var(--h4-font-size);
}

.site-header .custom-icon:hover {
  color: var(--secondary-color);
}


/*---------------------------------------
  NAVIGATION              
-----------------------------------------*/
.sticky-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}

.sticky-wrapper.is-sticky .navbar {
  background-color: var(--secondary-color);
}

.navbar {
  background: linear-gradient(90deg, rgba(111,184,255,0.95), rgba(165,140,255,0.85));
  border-bottom: 1px solid rgba(111,184,255,0.18);
  z-index: 9;
  animation: slideInDown 0.8s ease-out;
}

.navbar-brand,
.navbar-brand:hover {
  font-size: var(--h3-font-size);
  font-weight: var(--font-weight-bold);
  display: block;
  animation: fadeInPulse 1s ease-out;
}

.navbar-brand img {
  animation: float 3s ease-in-out infinite;
}

.navbar-brand span {
  font-family: var(--title-font-family);
  animation: slideInLeft 0.8s ease-out 0.1s backwards;
}

.navbar-expand-lg .navbar-nav .nav-link {
  border-radius: var(--border-radius-large);
  margin: 10px;
  padding: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-expand-lg .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-expand-lg .navbar-nav .nav-link:hover::after,
.navbar-expand-lg .navbar-nav .nav-link.active::after {
  width: 60%;
}

.navbar-nav .nav-link {
  display: inline-block;
  color: var(--white-color);
  font-family: var(--title-font-family); 
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-top: 15px;
  padding-bottom: 15px;
}

.navbar-nav .nav-link.active, 
.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar .dropdown-menu {
  background: var(--white-color);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
  border: 0;
  display: inherit;
  opacity: 0;
  min-width: 9rem;
  margin-top: 20px;
  padding: 13px 0 10px 0;
  transition: all 0.3s;
  pointer-events: none;
}

.navbar .dropdown-menu::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 15px solid var(--white-color);
  position: absolute;
  top: -10px;
  left: 10px;
}

.navbar .dropdown-item {
  display: inline-block;
  color: var(--p-bg-color);
  font-family: var(--title-font-family); 
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.navbar .dropdown-item.active, 
.navbar .dropdown-item:active,
.navbar .dropdown-item:focus, 
.navbar .dropdown-item:hover {
  background: transparent;
  color: var(--primary-color);
}

.navbar .dropdown-toggle::after {
  content: "\f282";
  display: inline-block;
  font-family: bootstrap-icons !important;
  font-size: var(--copyright-font-size);
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -.125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  left: 2px;
  border: 0;
}

@media screen and (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    opacity: 1;
    margin-top: 0;
    pointer-events: auto;
  }
}

.navbar-icon {
  background: var(--white-color);
  border-radius: var(--border-radius-large);
  display: inline-block;
  font-size: var(--h5-font-size);
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.navbar-icon:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

.navbar-toggler {
  border: 0;
  padding: 0;
  cursor: pointer;
  margin: 0;
  width: 30px;
  height: 35px;
  outline: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease, -webkit-transform 300ms 350ms ease;
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transform: rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
  background: var(--white-color);
  transition: background 10ms 300ms ease;
  display: block;
  width: 30px;
  height: 2px;
  position: relative;
}

.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after {
  transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
  position: absolute;
  right: 0;
  left: 0;
  background: var(--white-color);
  width: 30px;
  height: 2px;
  content: '';
}

.navbar-toggler .navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler .navbar-toggler-icon::after {
  top: 8px;
}

/* Mobile: stacked vertical pills inside collapsed navbar */
@media screen and (max-width: 991px) {
  .navbar-collapse {
    background: rgba(255,255,255,0.98);
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    margin-top: 8px;
  }

  .navbar-collapse .nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .navbar-collapse .nav .nav-link {
    display: block;
    color: var(--secondary-color);
    background: transparent;
    padding: 10px 14px;
    margin: 0;
    border-radius: 12px;
    text-transform: none;
    font-weight: var(--font-weight-medium);
  }

  .navbar-collapse .nav .nav-link.active {
    background: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 12px rgba(111,184,255,0.18);
  }

  /* reduce pill outer padding on small screens */
  .nav-pills.p-1 {
    padding: 6px !important;
  }
}


/*---------------------------------------
  HERO        
-----------------------------------------*/
.hero-section {
  background: linear-gradient(180deg, rgba(111,184,255,0.72), rgba(165,140,255,0.10)), url('../images/school_profile/banner-01.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  padding-top: 150px;
  padding-bottom: 150px;
}

.hero-section h1 {
  animation: slideInDown 1s ease-out;
  letter-spacing: 1px;
}

.hero-section p {
  animation: fadeInPulse 1.2s ease-out 0.2s backwards;
  font-size: 18px;
  line-height: 1.8;
}

.hero-section .d-flex {
  animation: slideInDown 1.4s ease-out 0.4s backwards;
}

.hero-section .custom-btn {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.hero-section .custom-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.hero-section .custom-btn:hover::before {
  width: 300px;
  height: 300px;
}

.hero-section .custom-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Ripple Effect for Buttons */
.custom-btn {
  position: relative;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.hero-section .input-group {
  background-color: var(--white-color);
  border-radius: var(--border-radius-large);
  padding: 10px 15px;
}

.hero-section .input-group-text {
  background-color: transparent;
  border: 0;
}

.hero-section input[type="search"] {
  border: 0;
  box-shadow: none;
  margin-bottom: 0;
  padding-left: 0;
}

.hero-section button[type="submit"] {
  background-color: var(--primary-color);
  border: 0;
  border-radius: var(--border-radius-large) !important;
  color: var(--white-color);
  max-width: 150px;
}


/*---------------------------------------
  TOPICS              
-----------------------------------------*/
.featured-section {
  background-color: var(--secondary-color);
  border-radius: 0 0 100px 100px;
  padding-bottom: 100px;
}

.featured-section .row {
  position: relative;
  bottom: 100px;
  margin-bottom: -100px;
}

.custom-block {
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
  padding: 30px;
  transition: all 0.3s ease;
  height: 100%;
}

.custom-block:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
}

.custom-block > a {
  width: 100%;
}

/* Program Card Styling */
.program-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #f0f0f0;
  transition: all 0.4s ease;
  animation: fadeInPulse 0.8s ease-out backwards;
  opacity: 0;
}

.program-card.reveal {
  animation: fadeInPulse 0.8s ease-out forwards;
}

.program-card:nth-child(1) { animation-delay: 0s; }
.program-card:nth-child(2) { animation-delay: 0.2s; }
.program-card:nth-child(3) { animation-delay: 0.4s; }
.program-card:nth-child(4) { animation-delay: 0.6s; }

.program-card:hover {
  border-color: var(--secondary-color);
  background: linear-gradient(135deg, #ffffff 0%, #f5f9fa 100%);
  transform: translateY(-8px) scale(1.02);
}

.program-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #80d0c7 100%);
  border-radius: 50%;
  padding: 10px;
  margin: 0 auto;
  animation: bounce 2s ease-in-out infinite;
  position: relative;
}

.program-icon img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.program-card:hover .program-icon {
  box-shadow: 0 8px 20px rgba(128, 208, 199, 0.3);
  animation: spin 1s linear infinite;
}

.custom-block-image {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-top: 35px;
}

/* Gallery Item Styling */
.gallery-section {
  background-color: #f9fafb;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-medium);
  height: 200px;
  cursor: pointer;
  animation: fadeInPulse 0.8s ease-out backwards;
  opacity: 0;
}

.gallery-item.reveal {
  animation: fadeInPulse 0.8s ease-out forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.45s; }

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  display: block;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1) rotate(2deg);
  filter: brightness(0.7) saturate(1.2);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(19, 84, 122, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: var(--border-radius-medium);
  backdrop-filter: blur(5px);
}

.gallery-overlay span {
  color: var(--white-color);
  font-weight: var(--font-weight-semibold);
  font-size: var(--menu-font-size);
  text-align: center;
  padding: 15px;
  animation: slideInDown 0.5s ease-out;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.custom-block .rounded-pill {
  border-radius: 5px !important;
  display: flex;
  justify-content: center;
  text-align: center;
  width: 30px;
  height: 30px;
  line-height: 20px;
}

.custom-block-overlay {
  height: 100%;
  min-height: 350px;
  padding: 0;
}

.custom-block-overlay > a {
  height: 100%;
}

.custom-block-overlay .custom-block-image {
  border-radius: var(--border-radius-medium);
  display: block;
  height: 100%;
  margin-top: 0;
}

.custom-block-overlay-text {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  padding: 30px;
}

.social-share {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 2;
  padding: 20px 35px;
}

.social-share .bi-bookmark {
  color: var(--white-color);
  font-size: var(--h5-font-size);
}

.social-share .bi-bookmark:hover {
  color: var(--secondary-color);
}

.bg-design {
  background-color: #00B0FF;
}

.bg-graphic {
  background-color: #00BFA6;
}

.bg-advertising {
  background-color: #F50057;
}

.bg-finance {
  background-color: #536DFE;
}

.bg-music {
  background-color: #F9A826;
}

.bg-education {
  background-color: #00BFA6;
}


/*---------------------------------------
  TOPICS               
-----------------------------------------*/
.topics-detail-block {
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
}

.topics-detail-block-image {
  display: block;
  border-radius: var(--border-radius-medium);
}

blockquote {
  background-color: var(--section-bg-color);
  border-radius: var(--border-radius-small);
  font-family: var(--title-font-family);
  font-size: var(--h4-font-size);
  font-weight: var(--font-weight-bold);
  display: inline-block;
  text-align: center;
  margin: 30px;
  padding: 40px;
}

.topics-listing-page .site-header {
  padding-bottom: 65px;
}

.custom-block-topics-listing-info {
  margin: 30px 20px 20px 30px;
}

.custom-block-topics-listing {
  height: inherit;
}

.custom-block-topics-listing .custom-block-image {
  width: 200px;
}


/*---------------------------------------
  PAGINATION              
-----------------------------------------*/
.pagination {
  margin-top: 40px;
}

.page-link {
  border: 0;
  border-radius: var(--border-radius-small);
  color: var(--p-color);
  font-family: var(--title-font-family);
  margin: 0 5px;
  padding: 10px 20px;
}

.page-link:hover,
.page-item:first-child .page-link:hover,
.page-item:last-child .page-link:hover {
  background-color: var(--secondary-color);
  color: var(--white-color);
}

.page-item:first-child .page-link {
  margin-right: 10px;
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
  background-color: var(--section-bg-color);
  border-radius: var(--border-radius-small);
}

.active>.page-link, .page-link.active {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}


/*---------------------------------------
  TIMELINE              
-----------------------------------------*/
.timeline-section {
  background-image: url('../images//school_profile/pict-01.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}

.timeline-container .vertical-scrollable-timeline {
  list-style-type: none;
  position: relative;
  padding-left: 0;
}

.timeline-container .vertical-scrollable-timeline .list-progress {
  width: 8px;
  height: 87%;
  background-color: var(--primary-color);
  position: absolute;
  left: 52px;
  top: 0;
  overflow: hidden;
}

.timeline-container .vertical-scrollable-timeline .list-progress .inner {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  background-color: var(--secondary-color);
  width: 100%;
}

.timeline-container .vertical-scrollable-timeline li {
  position: relative;
  padding: 20px 0px 65px 145px;
}

.timeline-container .vertical-scrollable-timeline li:last-child {
  padding-bottom: 0;
}

.timeline-container .vertical-scrollable-timeline li p {
  line-height: 40px;
}

.timeline-container .vertical-scrollable-timeline li p:last-child {
  margin-bottom: 0;
}

.timeline-container .vertical-scrollable-timeline li .icon-holder {
  position: absolute;
  left: 0;
  top: 0;
  width: 104px;
  height: 104px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--secondary-color);
  border-radius: 50%;
  z-index: 1;
  transition: 0.4s all;
}

.timeline-container .vertical-scrollable-timeline li .icon-holder::before {
  content: "";
  width: 80px;
  height: 80px;
  border: 4px solid #fff;
  position: absolute;
  background-color: var(--secondary-color);
  border-radius: 50%;
  z-index: -1;
  transition: 0.4s all;
}

.timeline-container .vertical-scrollable-timeline li .icon-holder i {
  font-size: 25px;
  color: var(--white-color);
}

.timeline-container .vertical-scrollable-timeline li::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 8px;
  background-color: transparent;
  left: 52px;
  z-index: 0;
}

.timeline-container .vertical-scrollable-timeline li.active .icon-holder {
  background-color: var(--primary-color);
}

.timeline-container .vertical-scrollable-timeline li.active .icon-holder::before {
  background-color: var(--primary-color);
}

/* Horizontal gallery (draggable, auto-scroll, click-to-show description) */
.horizontal-gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 12px 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.horizontal-gallery::-webkit-scrollbar { height: 10px; }
.horizontal-gallery::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 6px; }
.hg-item {
  min-width: 320px;
  flex: 0 0 auto;
  position: relative;
  scroll-snap-align: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: transform 0.6s ease;
}
.hg-item img { display:block; width:100%; height:220px; object-fit:cover; }
.hg-item:hover { transform: translateY(-6px); }
.hg-desc {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.hg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease;
}
.hg-overlay.visible { opacity: 1; visibility: visible; }
.hg-controls .btn { background: rgba(0,0,0,0.45); color: #fff; border: 1px solid rgba(255,255,255,0.08); }

@media (min-width: 992px) {
  .hg-item { min-width: 420px; height: 260px; }
  .hg-item img { height:100%; }
}

/* Static gallery grid styles (pict-01..pict-17) */
.gallery-grid { margin-left: -12px; margin-right: -12px; }
.centered-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center; /* center the whole grid */
  gap: 18px;
}
.centered-grid .gallery-item { display:flex; align-items:center; justify-content:center; }
.centered-grid .gallery-item img { display:block; max-width:100%; height:auto; border-radius:8px; }
/* ensure items align neatly in each cell */
.centered-grid { justify-items: center; }

@media (max-width: 767.98px) {
  .centered-grid { grid-template-columns: repeat(1, auto); }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .centered-grid { grid-template-columns: repeat(3, auto); }
}
@media (min-width: 1200px) {
  .centered-grid { grid-template-columns: repeat(3, auto); }
}

/* Lightbox overlay for full-size images */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
}
.lightbox-overlay.visible { opacity: 1; visibility: visible; }
.lightbox-overlay img {
  max-width: 95%;
  max-height: 92%;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
  border-radius: 6px;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 0;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
  z-index: 2300;
}


/*---------------------------------------
  FAQs              
-----------------------------------------*/
.faq-section .accordion-item {
  border: 0;
}

.faq-section .accordion-button {
  font-size: var(--h6-font-size);
  font-weight: var(--font-weight-semibold);
}

.faq-section .accordion-item:first-of-type .accordion-button {
  border-radius: var(--border-radius-large);
}

.faq-section .accordion-button:not(.collapsed) {
  border-radius: var(--border-radius-large);
  box-shadow: none;
  color: var(--primary-color);
}

.faq-section .accordion-body {
  color: var(--p-color);
  font-size: var(--btn-font-size);
  line-height: 40px;
}

/*---------------------------------------
  NEWSLETTER               
-----------------------------------------*/
.newsletter-image {
  border-radius: var(--border-radius-medium);
}


/*---------------------------------------
  CONTACT               
-----------------------------------------*/
.google-map {
  border-radius: var(--border-radius-medium);
}

.contact-form .form-floating>textarea {
  border-radius: var(--border-radius-medium);
  height: 150px;
}


/*---------------------------------------
  SUBSCRIBE FORM               
-----------------------------------------*/
.subscribe-form-wrap {
  padding: 50px;
}

.subscribe-form {
  width: 95%;
}


/*---------------------------------------
  CUSTOM FORM               
-----------------------------------------*/
.custom-form .form-control {
  border-radius: var(--border-radius-large);
  color: var(--p-color);
  margin-bottom: 24px;
  padding-top: 13px;
  padding-bottom: 13px;
  padding-left: 20px;
  outline: none;
}

.form-floating>label {
  padding-left: 20px;
}

.custom-form button[type="submit"] {
  background: var(--custom-btn-bg-color);
  border: none;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-family: var(--title-font-family);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-semibold);
  transition: all 0.3s;
  margin-bottom: 0;
}

.custom-form button[type="submit"]:hover,
.custom-form button[type="submit"]:focus {
  background: var(--custom-btn-bg-hover-color);
  border-color: transparent;
}


/*---------------------------------------
  SITE FOOTER              
-----------------------------------------*/
.site-footer {
  border-bottom: 10px solid var(--secondary-color);
  position: relative;
}

.site-footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 200px 200px;
  border-color: transparent transparent var(--secondary-color) transparent;
  pointer-events: none;
}

.site-footer-title {
  color: var(--primary-color); 
}

.site-footer .dropdown-menu {
  padding: 0;
}

.site-footer .dropdown-item {
  color: var(--p-color);
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-medium);
  padding: 4px 18px;
}

.site-footer .dropdown-item:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.site-footer .dropdown-menu li:first-child .dropdown-item {
  padding-top: 10px;
}

.site-footer .dropdown-menu li:last-child .dropdown-item {
  padding-bottom: 12px;
}

.site-footer .dropdown-toggle {
  background-color: var(--secondary-color);
  border-color: var(--white-color);
}

.site-footer .dropdown-toggle:hover {
  background-color: var(--primary-color);
  border-color: transparent;
}

.site-footer-links {
  padding-left: 0;
}

.site-footer-link-item {
  display: block;
  list-style: none;
  line-height: normal;
}

.site-footer-link {
  color: var(--secondary-color);
  font-size: var(--copyright-font-size);
  font-weight: var(--font-weight-medium);
  line-height: normal;
}

/* Unified navbar appearance across pages
   - Default (at top): subtle white -> light-blue gradient, brand text dark
   - Scrolled: blue -> purple gradient, brand text white
   - Menu tabs stay blue with white text (pill style)
*/
.navbar {
  background: linear-gradient(90deg, #ffffff 0%, rgba(111,184,255,0.15) 100%);
  transition: background 0.28s ease, box-shadow 0.28s ease;
}
.navbar .navbar-brand span {
  color: #111827; /* dark text at top */
  transition: color 0.28s ease;
}
/* Leave nav-pills to Bootstrap/default template styles so tab menu looks original */

/* Scrolled state */
.navbar.navbar-scrolled {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
  box-shadow: 0 8px 22px rgba(17,24,39,0.12);
}
.navbar.navbar-scrolled .navbar-brand span {
  color: #ffffff !important;
}
.navbar.navbar-scrolled .nav-link {
  /* keep default behavior (no forced pill background) */
}
.navbar-toggler-icon { filter: none; }
.navbar.navbar-scrolled .navbar-toggler-icon { filter: invert(1) brightness(2); }

/* Page-specific pill bar for Profile & Contact nav (matches design in attachment) */
.contact-nav {
  background: linear-gradient(90deg, rgba(111,184,255,0.95) 0%, rgba(95,150,255,0.95) 100%);
  padding: 6px;
  border-radius: 999px;
}
.contact-nav .nav-link {
  color: #ffffff !important;
  background: transparent !important;
  border-radius: 999px !important;
  padding: 0.45rem 0.9rem !important;
  transition: all 0.18s ease;
}
.contact-nav .nav-link.active {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  box-shadow: 0 6px 16px rgba(17,24,39,0.12) !important;
}
.contact-nav .nav-link:focus, .contact-nav .nav-link:hover {
  color: #ffffff !important;
}

/* Mobile scaling: reduce overall sizes on small devices without changing layout structure */
@media (max-width: 768px) {
  html { font-size: 14px; }
  :root { --h2-font-size: 34px; --h3-font-size: 24px; --p-font-size: 18px; --menu-font-size: 13px; }
  .custom-btn { padding: 0.5rem 0.8rem; font-size: 0.95rem; }
  .program-icon i { font-size: 30px !important; }
  .custom-block { padding: 1rem; }
}

@media (max-width: 576px) {
  /* further compact on very small devices */
  html { font-size: 13px; }
  :root { --h2-font-size: 30px; --h3-font-size: 20px; --p-font-size: 16px; --menu-font-size: 12px; }
  .hero-section .container { padding-left: 1rem; padding-right: 1rem; }
  .custom-block { padding: 0.85rem; }
  .program-icon i { font-size: 28px !important; }

  /* Program Unggulan: show two columns per row on small screens */
  #programs .col-12.col-md-4 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  /* adjust spacing so last single item centers when odd count */
  #programs .row { display: flex; flex-wrap: wrap; }
  #programs .col-12.col-md-4:nth-last-child(1):first-child { margin-left: 25%; }
}

/* Normalize collapsed/mobile navbar so all pages match index appearance */
@media (max-width: 991px) {
  /* stronger override to remove the white rounded panel on collapsed navbars */
  nav.navbar .navbar-collapse {
    background: transparent !important;
    padding: 0.25rem 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-top: 0 !important;
  }

  /* Make contact-nav render as a compact vertical pill list inside collapse */
  .navbar .contact-nav {
    display: block;
    background: linear-gradient(90deg, rgba(111,184,255,0.95) 0%, rgba(95,150,255,0.95) 100%);
    padding: 8px;
    margin: 0.25rem 0 0 0;
    border-radius: 12px;
  }

  /* ensure the pill container itself does not render a white background when collapsed */
  nav.navbar .contact-nav {
    background: linear-gradient(90deg, rgba(111,184,255,0.95) 0%, rgba(95,150,255,0.95) 100%) !important;
    box-shadow: none !important;
  }

  .navbar .contact-nav .nav-link {
    display: block;
    width: auto;
    margin: 6px 8px;
    padding: 0.6rem 0.9rem !important;
    color: #ffffff !important;
    background: transparent !important;
    border-radius: 8px !important;
  }

  .navbar .contact-nav .nav-link.active {
    background: #ffffff !important;
    color: var(--primary-color) !important;
    box-shadow: 0 6px 16px rgba(17,24,39,0.12) !important;
  }

  /* remove outer large white rounded border if present */
  .navbar .contact-nav + .navbar-toggler { margin-top: 0; }
}

/* Footer contact icons: use primary blue */
.site-footer .bi {
  color: var(--primary-color) !important;
}

/* Disable floating elements and logo animation */
.floating-elements-container,
.floating-circle {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.navbar-brand img,
.site-footer .navbar-brand img {
  -webkit-animation: none !important;
  animation: none !important;
  transform: none !important;
}


.copyright-text {
  font-size: var(--copyright-font-size);
}


/*---------------------------------------
  SOCIAL ICON               
-----------------------------------------*/
.social-icon {
  margin: 0;
  padding: 0;
}

.social-icon-item {
  list-style: none;
  display: inline-block;
  vertical-align: top;
}

.social-icon-link {
  background: var(--secondary-color);
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--copyright-font-size);
  display: block;
  margin-right: 10px;
  text-align: center;
  width: 35px;
  height: 35px;
  line-height: 36px;
  transition: background 0.2s, color 0.2s;
}

.social-icon-link:hover {
  background: var(--primary-color);
  color: var(--white-color);
}


/*---------------------------------------
  RESPONSIVE STYLES               
-----------------------------------------*/
@media screen and (max-width: 991px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 32px;
  }

  h4 {
    font-size: 28px;
  }

  h5 {
    font-size: 20px;
  }

  h6 {
    font-size: 18px;
  }

  .section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  .navbar {
    background-color: var(--secondary-color);
  }

  .navbar-nav .dropdown-menu {
    position: relative;
    left: 10px;
    opacity: 1;
    pointer-events: auto;
    max-width: 155px;
    margin-top: 10px;
    margin-bottom: 15px;
  }

  .navbar-expand-lg .navbar-nav {
    padding-bottom: 20px;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding: 0;
  }

  .nav-tabs .nav-link:first-child {
    margin-right: 5px;
  }

  .nav-tabs .nav-link {
    font-size: var(--copyright-font-size);
    padding: 10px;
  }

  .featured-section {
    border-radius: 0 0 80px 80px;
    padding-bottom: 50px;
  }

  .custom-block-topics-listing .custom-block-image {
    width: auto;
  }

  .custom-block-topics-listing > .d-flex,
  .custom-block-topics-listing-info,
  .custom-block-topics-listing a {
    flex-direction: column;
  }

  .timeline-container .vertical-scrollable-timeline .list-progress {
    height: 75%;
  }

  .timeline-container .vertical-scrollable-timeline li {
    padding-left: 135px;
  }

  .subscribe-form-wrap {
    padding-top: 30px;
    padding-bottom: 0;
  }

  .program-icon {
    width: 70px;
    height: 70px;
  }

  .gallery-item {
    height: 180px;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 26px;
  }

  h4 {
    font-size: 22px;
  }

  h5 {
    font-size: 20px;
  }
}

