/*
  templatemo-topic-listing.css
  Base estructural del sitio NOA Tecnología
  Complementa a noa-modern.css (efectos, animaciones, glassmorphism)
  Basado en TemplateMo 590 — adaptado completamente para NOA Tecnología
*/

/* =============================================
   BASE — HTML / BODY
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: #1a2d22;
  background-color: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #f5f0e8;
}

a {
  color: var(--primary-color, #10b981);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color, #e8a84a);
}

img {
  max-width: 100%;
  height: auto;
}

/* =============================================
   NAVBAR — Base dark navy
   ============================================= */
.navbar {
  background: linear-gradient(135deg, #f5f0e8 0%, #059669 100%);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid rgba(232, 168, 74, 0.15);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: white !important;
  text-decoration: none;
}

.navbar-brand i {
  font-size: 1.5rem;
  color: #e8a84a;
}

.navbar-brand span {
  color: white;
}

.navbar-nav .nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #2d4a3e !important;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #e8a84a !important;
  background: rgba(232, 168, 74, 0.08);
}

.navbar-toggler {
  border-color: rgba(232, 168, 74, 0.4);
  padding: 6px 10px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 184, 168, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-icon {
  font-size: 1.4rem;
  color: #e8a84a;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-icon:hover {
  color: white;
  transform: scale(1.1);
}

/* Dropdown */
.dropdown-menu {
  border-radius: 12px;
  border: 1px solid rgba(232, 168, 74, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  padding: 8px;
}

.dropdown-item {
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  transition: all 0.2s ease;
  color: #1a2d22;
}

.dropdown-item:hover,
.dropdown-item.active {
  background: rgba(232, 168, 74, 0.1);
  color: var(--primary-color, #10b981);
}

/* =============================================
   SECTION UTILITIES
   ============================================= */
.section-padding {
  padding-top: 52px;
  padding-bottom: 52px;
}

.section-bg {
  background: linear-gradient(135deg, #f0f8ff 0%, #e8f7f5 100%);
}

/* =============================================
   HERO — Subpages (shorter version)
   ============================================= */
.topics-listing-hero-section,
.contact-hero-section {
  min-height: 280px !important;
  padding-top: 52px;
  padding-bottom: 52px;
}

/* =============================================
   CUSTOM BLOCKS (Cards)
   ============================================= */
.custom-block {
  padding: 24px;
  border-radius: 20px;
  background: white;
  height: 100%;
}

.custom-block a {
  text-decoration: none;
  color: inherit;
}

.custom-block a:hover h5 {
  color: var(--secondary-color, #e8a84a);
}

.custom-block h5 {
  font-size: 18px;
  font-weight: 700;
  color: #f5f0e8;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.custom-block p {
  font-size: 14px;
  color: #717275;
  margin-bottom: 0;
  line-height: 1.6;
}

.custom-block-image {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin-top: 16px;
  border-radius: 12px;
}

/* Overlay card (dark card with photo bg) */
.custom-block-overlay {
  min-height: 380px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #059669;
}

.custom-block-overlay .custom-block-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: none;
  border-radius: 0;
  margin: 0;
  opacity: 0.5;
}

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

.section-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 20%,
    rgba(255,255,255,0.97) 60%,
    rgba(255,255,255,0.97) 100%
  );
  border-radius: 20px;
  z-index: 1;
}

/* =============================================
   SOCIAL SHARE
   ============================================= */
.social-share {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

.social-share p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.social-icon {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
}

.social-icon-item {
  display: flex;
  align-items: center;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon-link:hover {
  background: #e8a84a;
  color: white;
  transform: translateY(-2px);
}

.custom-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.custom-icon:hover {
  background: #e8a84a;
  color: white;
}

/* =============================================
   BADGE COLORS (course category pills)
   ============================================= */
.badge.bg-design {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: white;
}

.badge.bg-music {
  background: linear-gradient(135deg, #f093fb, #f5576c) !important;
  color: white;
}

.badge.bg-finance {
  background: linear-gradient(135deg, #4facfe, #00f2fe) !important;
  color: white;
}

.badge.bg-advertising {
  background: linear-gradient(135deg, #43e97b, #38f9d7) !important;
  color: #f5f0e8;
}

.badge.bg-education {
  background: linear-gradient(135deg, #fa709a, #fee140) !important;
  color: #f5f0e8;
}

/* =============================================
   VERTICAL SCROLLABLE TIMELINE
   ============================================= */
.timeline-container {
  position: relative;
}

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

.vertical-scrollable-timeline .list-progress {
  position: absolute;
  left: 34px;
  top: 0;
  width: 6px;
  bottom: 0;
  border-radius: 10px;
  overflow: hidden;
}

.vertical-scrollable-timeline .list-progress .inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  min-height: 40px;
  border-radius: 10px;
  transition: height 0.3s ease;
}

.vertical-scrollable-timeline li {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 40px 90px;
  position: relative;
  min-height: 120px;
}

.vertical-scrollable-timeline li:last-child {
  padding-bottom: 20px;
}

.icon-holder {
  position: absolute;
  left: 12px;
  top: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #e8a84a;
  z-index: 2;
}

.icon-holder::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(232, 168, 74, 0.2);
}

/* =============================================
   CONTACT — Google Map
   ============================================= */
.google-map {
  border-radius: 16px;
  border: none;
  width: 100%;
  min-height: 280px;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* =============================================
   FOOTER LINKS
   ============================================= */
.site-footer-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #e8a84a !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.site-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer-link-item {
  margin-bottom: 10px;
}

.site-footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-footer-link:hover {
  color: #e8a84a !important;
  transform: translateX(4px);
}

.copyright-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

.copyright-text a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}

.copyright-text a:hover {
  color: #e8a84a;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
  .navbar-collapse {
    background: #059669;
    border-radius: 12px;
    margin-top: 12px;
    padding: 16px;
    border: 1px solid rgba(232, 168, 74, 0.15);
  }

  .section-padding {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .custom-block-overlay {
    min-height: 280px;
  }

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

  .icon-holder {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    left: 8px;
  }

  .topics-listing-hero-section,
  .contact-hero-section {
    min-height: 220px !important;
    padding-top: 40px;
    padding-bottom: 40px;
  }
}
