/*
TemplateMo 590 topic listing
https://templatemo.com/tm-590-topic-listing
(Modified for Rich Black & Gold Gradient Theme)
*/

/*---------------------------------------
  CUSTOM PROPERTIES ( VARIABLES )             
-----------------------------------------*/
:root {
  --white-color:                  #ffffff;
  --primary-color:                #d4af37; /* Elegant Metallic Gold */
  --secondary-color:              #1c140a; /* Warm Dark Brown/Black for contrast panels */
  --section-bg-color:             #0a0805; /* Very dark, warm background */
  --custom-btn-bg-color:          #d4af37; 
  --dark-color:                   #000000;
  --p-color:                      #dcd0c0; /* Warmer light grey/beige for readability */
  --border-color:                 #d4af37; 
  --link-hover-color:             #fcf6ba; /* Luminous gold */

  /* New Gradient Variables based on the poster */
  --gold-gradient:                linear-gradient(135deg, #bf953f 0%, #fcf6ba 40%, #b38728 60%, #fbf5b7 80%, #aa771c 100%);
  --dark-gold-gradient:           linear-gradient(15deg, #050402 0%, #23190a 50%, #634a11 100%);
  --subtle-gold-gradient:         linear-gradient(180deg, #1c140a 0%, #2b2010 100%);

  --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(--section-bg-color);
  font-family: var(--body-font-family); 
  color: var(--p-color); 
}


/*---------------------------------------
  TYPOGRAPHY               
-----------------------------------------*/

h2, h3, h4, h5, h6 {
  color: var(--primary-color); 
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8); 
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--title-font-family); 
  font-weight: var(--font-weight-semibold);
}

h1 {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-bold);
  text-shadow: none; /* Removed shadow to let gradient shine */
}

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, 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);
  color: var(--white-color);
}


/*---------------------------------------
  SECTION               
-----------------------------------------*/
.section-padding { padding-top: 100px; padding-bottom: 100px; }

.section-bg { background-color: var(--section-bg-color); }

.section-overlay {
  background-image: var(--dark-gold-gradient); 
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  opacity: 0.85; 
}

.section-overlay + .container { position: relative; }

.tab-content {
  background-image: var(--subtle-gold-gradient);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--border-radius-medium);
}

.nav-tabs {
  border-bottom: 1px solid rgba(212, 175, 55, 0.2); 
  margin-bottom: 40px;
  justify-content: center;
}

.nav-tabs .nav-link {
  border-radius: 0;
  border: none;
  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: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: rgba(212, 175, 55, 0.05); /* Slight gold tint on active */
}


/*---------------------------------------
  CUSTOM ICON COLOR               
-----------------------------------------*/
.custom-icon { color: var(--primary-color); }


/*---------------------------------------
  CUSTOM BUTTON (Now uses Metallic Gradient)               
-----------------------------------------*/
.custom-btn {
  background: var(--gold-gradient);
  border: none;
  border-radius: var(--border-radius-large);
  color: var(--dark-color) !important; 
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-bold);
  line-height: normal;
  transition: all 0.3s;
  padding: 12px 24px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.custom-btn:hover {
  background: linear-gradient(135deg, #fcf6ba 0%, #bf953f 50%, #fcf6ba 100%);
  color: var(--dark-color);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

.custom-border-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color) !important;
  box-shadow: none;
}

.custom-border-btn:hover {
  background: var(--gold-gradient);
  border-color: transparent;
  color: var(--dark-color) !important;
}


/*---------------------------------------
  SITE HEADER              
-----------------------------------------*/
.site-header {
  background-image: var(--dark-gold-gradient); 
  padding-top: 150px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.site-header .container { height: 100%; }

.breadcrumb-item+.breadcrumb-item::before,
.breadcrumb-item a:hover,
.breadcrumb-item.active {
  color: var(--primary-color); 
}

.site-header .custom-icon {
  color: var(--primary-color);
  font-size: var(--h4-font-size);
}

.site-header .custom-icon:hover { color: var(--white-color); }


/*---------------------------------------
  NAVIGATION              
-----------------------------------------*/
.sticky-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}

.sticky-wrapper.is-sticky .navbar {
  background-color: rgba(10, 8, 5, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.navbar {
  background: transparent;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15); 
  z-index: 9;
}

.navbar-brand,
.navbar-brand:hover {
  font-size: var(--h3-font-size);
  font-weight: var(--font-weight-bold);
  display: block;
}

.navbar-brand span {
  font-family: var(--title-font-family);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-expand-lg .navbar-nav .nav-link {
  border-radius: var(--border-radius-large);
  margin: 10px;
  padding: 10px;
}

.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(--secondary-color);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: inherit;
  opacity: 0;
  min-width: 9rem;
  margin-top: 20px;
  padding: 13px 0 10px 0;
  transition: all 0.3s;
  pointer-events: none;
}

.navbar .dropdown-item {
  display: inline-block;
  color: var(--p-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;
}

.navbar .dropdown-item.active, 
.navbar .dropdown-item:active,
.navbar .dropdown-item:focus, 
.navbar .dropdown-item:hover {
  background: transparent;
  color: var(--primary-color);
}

@media screen and (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    opacity: 1;
    margin-top: 0;
    pointer-events: auto;
  }
}

.navbar-icon {
  background: var(--gold-gradient);
  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;
  color: var(--dark-color);
}

.navbar-icon:hover {
  transform: scale(1.1);
}

.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 .navbar-toggler-icon { background: var(--primary-color); width: 30px; height: 2px; position: relative; display: block; }
.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after { position: absolute; right: 0; left: 0; background: var(--primary-color); width: 30px; height: 2px; content: ''; }
.navbar-toggler .navbar-toggler-icon::before { top: -8px; }
.navbar-toggler .navbar-toggler-icon::after { top: 8px; }


/*---------------------------------------
  HERO        
-----------------------------------------*/
.hero-section {
  background-image: var(--dark-gold-gradient); 
  position: relative;
  overflow: hidden;
  padding-top: 150px;
  padding-bottom: 150px;
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.hero-section .input-group {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius-large);
  padding: 10px 15px;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.hero-section .input-group-text { background-color: transparent; border: 0; color: var(--primary-color); }
.hero-section input[type="search"] { background: transparent; border: 0; box-shadow: none; margin-bottom: 0; padding-left: 0; color: var(--white-color); }
.hero-section button[type="submit"] {
  background: var(--gold-gradient);
  border: 0;
  border-radius: var(--border-radius-large) !important;
  color: var(--dark-color);
  max-width: 150px;
  font-weight: bold;
}


/*---------------------------------------
  TOPICS              
-----------------------------------------*/
.featured-section {
  background-image: var(--subtle-gold-gradient);
  border-radius: 0 0 100px 100px;
  padding-bottom: 100px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.featured-section .row { position: relative; bottom: 100px; margin-bottom: -100px; }

.custom-block {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius-medium);
  border: 1px solid rgba(212, 175, 55, 0.15);
  position: relative;
  overflow: hidden;
  padding: 30px;
  transition: all 0.3s ease;
  height: 100%;
}

.custom-block:hover {
  background-image: var(--dark-gold-gradient);
  transform: translateY(-5px);
  border: 1px solid var(--primary-color);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.custom-block > a { width: 100%; }

.custom-block-image { display: block; width: 100%; height: 200px; object-fit: cover; margin-top: 35px; }

.custom-block .rounded-pill {
  border-radius: 5px !important;
  display: flex;
  justify-content: center;
  text-align: center;
  width: 30px;
  height: 30px;
  line-height: 20px;
  background: var(--gold-gradient) !important;
  color: var(--dark-color) !important;
  font-weight: bold;
}

.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(--primary-color); }

/* Kept dark elegant background blocks for diversity */
.bg-design { background-color: #1a130a; }
.bg-graphic { background-color: #120e06; }
.bg-advertising { background-color: #1c150a; }
.bg-finance { background-color: #0f0a05; }
.bg-music { background-color: #21180b; } 
.bg-education { background-color: #171107; }


/*---------------------------------------
  TOPICS DETAIL               
-----------------------------------------*/
.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-image: var(--subtle-gold-gradient);
  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;
  color: var(--primary-color);
  border-left: 5px solid var(--primary-color);
  border-right: 5px solid var(--primary-color);
}


/*---------------------------------------
  PAGINATION              
-----------------------------------------*/
.pagination { margin-top: 40px; }

.page-link {
  background-color: var(--secondary-color);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--border-radius-small);
  color: var(--primary-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,
.active>.page-link, .page-link.active {
  background: var(--gold-gradient);
  color: var(--dark-color);
  border-color: transparent;
}


/*---------------------------------------
  TIMELINE              
-----------------------------------------*/
.timeline-section { background-color: var(--section-bg-color); 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: var(--gold-gradient); /* Rich gold progress line */
  position: absolute;
  left: 52px;
  top: 0;
  overflow: hidden;
  border-radius: 4px;
}

.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 .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: 3px solid var(--primary-color); 
  position: absolute; background-color: var(--section-bg-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(--primary-color); }

.timeline-container .vertical-scrollable-timeline li.active .icon-holder { background: var(--gold-gradient); }
.timeline-container .vertical-scrollable-timeline li.active .icon-holder::before { background: var(--gold-gradient); border-color: transparent; }
.timeline-container .vertical-scrollable-timeline li.active .icon-holder i { color: var(--dark-color); }


/*---------------------------------------
  FAQs              
-----------------------------------------*/
.faq-section .accordion-item {
  border: 1px solid rgba(212, 175, 55, 0.2);
  background-image: var(--subtle-gold-gradient);
  margin-bottom: 10px;
  border-radius: var(--border-radius-large);
}

.faq-section .accordion-button {
  font-size: var(--h6-font-size);
  font-weight: var(--font-weight-semibold);
  background-color: transparent;
  color: var(--white-color);
}

.faq-section .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: var(--primary-color);
  background: rgba(212, 175, 55, 0.05);
}

.faq-section .accordion-body {
  color: var(--p-color);
  font-size: var(--btn-font-size);
  line-height: 40px;
  background-color: transparent;
}


/*---------------------------------------
  CUSTOM FORM               
-----------------------------------------*/
.custom-form .form-control {
  background-color: var(--secondary-color);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--border-radius-large);
  color: var(--white-color); 
  margin-bottom: 24px;
  padding-top: 13px;
  padding-bottom: 13px;
  padding-left: 20px;
  outline: none;
}

.custom-form .form-control:focus {
  background-color: var(--section-bg-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-floating>label { padding-left: 20px; color: #aaa; }


/*---------------------------------------
  SITE FOOTER              
-----------------------------------------*/
.site-footer {
  background-image: var(--dark-gold-gradient); 
  border-bottom: 8px solid transparent;
  border-image: var(--gold-gradient) 1; /* Gold gradient trim at the very bottom */
  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 rgba(212, 175, 55, 0.05) transparent;
  pointer-events: none;
}

.site-footer-title { color: var(--primary-color); }
.site-footer-link { color: var(--p-color); }
.site-footer-link:hover { color: var(--primary-color); }

/*---------------------------------------
  SOCIAL ICON               
-----------------------------------------*/
.social-icon-link {
  background: var(--secondary-color);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--border-radius-large);
  color: var(--primary-color);
  font-size: var(--copyright-font-size);
  display: block;
  margin-right: 10px;
  text-align: center;
  width: 35px;
  height: 35px;
  line-height: 36px;
  transition: all 0.2s;
}

.social-icon-link:hover {
  background: var(--gold-gradient);
  color: var(--dark-color);
  border-color: transparent;
}


/*---------------------------------------
  RESPONSIVE STYLES               
-----------------------------------------*/
@media screen and (max-width: 991px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  .navbar { background-color: rgba(10, 8, 5, 0.98); }
  .navbar-nav .dropdown-menu { position: relative; left: 10px; opacity: 1; pointer-events: auto; max-width: 155px; }
  .timeline-container .vertical-scrollable-timeline .list-progress { height: 75%; }
  .timeline-container .vertical-scrollable-timeline li { padding-left: 135px; }
}

@media screen and (max-width: 480px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}