/* ==========================================================================
   INSTITUTO GEM - Design System Premium
   ========================================================================== */

:root {
  --green-dark: #1a472a;
  --green-medium: #2d6a4f;
  --green-light: #52b788;
  --petroleum-blue: #004e89;
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --beige-soft: #f7f5f2;
  --text-dark: #212529;
  --text-muted: #6c757d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  overflow: hidden;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.01em;
}

.font-primary {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-secondary {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Buttons */
.btn-primary-gem {
  background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
  border: none;
  color: var(--white);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(26, 71, 42, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary-gem:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(26, 71, 42, 0.35);
  color: var(--white);
}

.btn-donate {
  background: linear-gradient(135deg, #d62828, #f77f00);
  box-shadow: 0 4px 18px rgba(214, 40, 40, 0.32);
  font-size: 0.88rem;
  padding: 9px 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-donate i {
  font-size: 0.78rem;
}

.btn-donate:hover {
  box-shadow: 0 8px 26px rgba(214, 40, 40, 0.42);
}

.btn-outline-gem {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 9px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-gem:hover {
  background: var(--white);
  color: var(--green-dark);
}

/* Navbar */
.navbar-gem {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px 0;
  background: white;
  position: relative;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
}

.navbar-gem.scrolled {
  background: white;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
  padding: 12px 0;
}

.navbar-gem .navbar-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.05em;
}

.navbar-gem.scrolled .navbar-brand {
  color: var(--green-dark);
}

.navbar-gem .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  margin: 0 12px;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-gem.scrolled .nav-link {
  color: var(--text-dark);
}

.navbar-gem .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-light);
  transition: width 0.3s ease;
}

.navbar-gem .nav-link:hover::after {
  width: 100%;
}

.navbar-gem .nav-link:hover {
  color: var(--green-light);
}

.navbar-gem.scrolled .nav-link:hover {
  color: var(--green-dark);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section .carousel {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-section .carousel-inner {
  height: 100%;
}

.hero-section .carousel-item {
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 71, 42, 0.85) 0%, rgba(0, 78, 137, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-section h1 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.15;
}

.hero-section .lead {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.badge-hero {
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 24px;
  border-radius: 50px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  max-width: 100%;
  word-wrap: break-word;
}

.counter-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

/* Who We Are */
.section-padding {
  padding: 120px 0;
}

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

.card-overlay {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: var(--white);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Impact Section */
.section-dark-green {
  background: var(--green-dark);
}

.impact-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 30px;
  transition: all 0.35s ease;
}

.impact-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.12);
}

/* Project Cards */
.project-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.project-card-img {
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-img {
  transform: scale(1.08);
}

/* Course Cards */
.course-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
  border: 1px solid #e9ecef;
}

.course-card:hover {
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.gallery-item img {
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 71, 42, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

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

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 50px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-light);
  border: 4px solid var(--white);
  box-shadow: 0 4px 15px rgba(82, 183, 136, 0.4);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 28px;
  width: 2px;
  height: calc(100% - 28px);
  background: var(--green-light);
  opacity: 0.3;
}

.timeline-item:last-child::after {
  display: none;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--green-light);
}

/* Partners */
.partner-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.35s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Donate Section */
.donate-section {
  position: relative;
  padding: 120px 0;
}

.donate-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.donate-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 71, 42, 0.92), rgba(0, 78, 137, 0.88));
}

/* Newsletter */
.newsletter-input {
  border: 2px solid rgba(26, 71, 42, 0.1);
  border-radius: 50px;
  padding: 14px 24px;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 0.25rem rgba(82, 183, 136, 0.15);
}

/* Footer */
.footer-gem {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 80px 0 30px;
}

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

.footer-gem a:hover {
  color: var(--green-light);
}

/* Dropdown Menu */
.nav-item-dropdown {
  position: relative;
}

.dropdown-toggle-gem {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.dropdown-menu-gem {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 280px;
  background: white;
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1000;
  list-style: none;
  margin: 0;
}

.nav-item-dropdown:hover .dropdown-menu-gem,
.nav-item-dropdown.show .dropdown-menu-gem {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-item-dropdown:hover .dropdown-toggle-gem i.fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu-gem::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 3px;
}

.dropdown-item-gem {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  border-radius: 10px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.25s ease;
  width: 100%;
  box-sizing: border-box;
}

.dropdown-item-gem:hover {
  background: linear-gradient(135deg, rgba(82, 183, 136, 0.1), rgba(0, 78, 137, 0.06));
  color: var(--green-dark);
  transform: translateX(4px);
}

.dropdown-item-gem i {
  color: var(--green-medium);
  transition: color 0.25s ease;
}

.dropdown-item-gem:hover i {
  color: var(--green-dark);
}

.dropdown-divider-gem {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
  margin: 8px 4px;
  border: none;
}

/* Pages - Internal Pages */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--petroleum-blue) 100%);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(82, 183, 136, 0.15) 0%, transparent 70%);
  transform: translate(30%, -30%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .breadcrumb {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: inline-block;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.85rem;
}

.page-hero .breadcrumb-item a:hover {
  color: white !important;
}

.page-hero .breadcrumb-item.active {
  color: white !important;
  font-weight: 600;
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

.page-title {
  font-size: 3rem;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  max-width: 600px;
}

.page-content {
  padding: 80px 0;
  background: var(--beige-soft);
}

.page-body {
  background: white;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.page-body p {
  line-height: 1.8;
}

/* Page Sidebar */
.page-sidebar {
  background: white;
  border-radius: 20px;
  padding: 28px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 100px;
}

.sidebar-header {
  padding: 0 8px 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--beige-soft);
}

.sidebar-header h5 {
  color: var(--green-dark);
  letter-spacing: -0.01em;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.sidebar-link i {
  color: var(--green-medium);
  font-size: 0.88rem;
  min-width: 20px;
  text-align: center;
  transition: color 0.25s ease;
}

.sidebar-link:hover {
  background: var(--beige-soft);
  color: var(--green-dark);
  transform: translateX(4px);
}

.sidebar-link:hover i {
  color: var(--green-dark);
}

.sidebar-link.active {
  background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
  color: white;
  box-shadow: 0 4px 15px rgba(26, 71, 42, 0.25);
}

.sidebar-link.active i {
  color: white;
}

/* Internal Timeline */
.timeline-internal {
  position: relative;
  padding-left: 32px;
  border-left: 3px solid var(--green-light);
  margin-left: 12px;
}

.timeline-internal .timeline-item {
  position: relative;
  padding-bottom: 32px;
  padding-left: 16px;
}

.timeline-internal .timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-internal .timeline-item::before {
  content: '';
  position: absolute;
  left: -42px;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--green-light);
  box-shadow: 0 0 0 4px rgba(82, 183, 136, 0.15);
}

.timeline-internal .timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.timeline-internal .timeline-item h5 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

/* Cards */
.highlight-card {
  background: linear-gradient(135deg, rgba(82, 183, 136, 0.08), rgba(0, 78, 137, 0.04));
  border: 1px solid rgba(82, 183, 136, 0.2);
  padding: 36px;
  border-radius: 20px;
}

.highlight-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(26, 71, 42, 0.2);
}

.highlight-card h3 {
  color: var(--green-dark);
  line-height: 1.4;
  font-size: 1.35rem;
}

.pillar-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.35s ease;
  height: 100%;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.pillar-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(82, 183, 136, 0.15), rgba(0, 78, 137, 0.08));
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.goal-card {
  background: linear-gradient(135deg, var(--beige-soft), white);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(82, 183, 136, 0.1);
}

.goal-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.value-card {
  background: white;
  border-radius: 18px;
  padding: 28px 24px;
  height: 100%;
  border: 1px solid #e9ecef;
  transition: all 0.35s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(26, 71, 42, 0.2);
}

.member-card {
  background: white;
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  border: 1px solid #e9ecef;
  transition: all 0.35s ease;
  height: 100%;
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.member-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  padding: 0;
  border: 4px solid var(--green-light);
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-role {
  font-size: 0.82rem;
  color: var(--green-medium);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cert-card {
  background: white;
  border-radius: 18px;
  padding: 28px 24px;
  border: 1px solid #e9ecef;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--green-dark), var(--green-light));
}

.cert-card:hover {
  transform: translateX(4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.cert-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.25);
}

.cert-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Statute */
.pdf-preview-card {
  background: linear-gradient(135deg, var(--beige-soft), white);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 32px;
}

.pdf-icon {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto;
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.25);
}

.statute-section {
  background: var(--beige-soft);
  border-radius: 16px;
  padding: 24px 28px;
  border-left: 4px solid var(--green-medium);
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--green-dark), var(--petroleum-blue));
  border-radius: 20px;
  padding: 32px 40px;
  color: white;
}

.cta-box h4 {
  color: white;
}

.cta-box .text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

.cta-box .btn-primary-gem {
  background: white;
  color: var(--green-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-box .btn-primary-gem:hover {
  background: var(--beige-soft);
  color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.cta-box .btn-primary-gem.btn-donate {
  background: linear-gradient(135deg, #d62828, #f77f00);
  color: white;
}

.cta-box .btn-primary-gem.btn-donate:hover {
  transform: translateY(-2px);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Responsive */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 80px 0;
  }

  .counter-number {
    font-size: 2.5rem;
  }

  .card-overlay {
    position: relative;
    bottom: 0;
    left: 0;
    margin-top: 20px;
  }

  .hero-section {
    height: auto;
    min-height: 520px;
    padding: 100px 0 80px;
  }

  .hero-section h1.display-3 {
    font-size: 2.2rem;
  }

  .navbar-gem .navbar-collapse {
    background: var(--white);
    border-radius: 12px;
    margin-top: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .navbar-gem .nav-link {
    color: var(--text-dark) !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    border-radius: 10px;
  }

  .navbar-gem .nav-link:hover {
    background: var(--beige-soft);
  }

  .dropdown-menu-gem {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: var(--beige-soft);
    margin-top: 8px;
    padding: 8px;
    min-width: auto;
    pointer-events: auto;
    display: none;
  }

  .nav-item-dropdown.show .dropdown-menu-gem {
    display: block;
  }

  .dropdown-menu-gem::before {
    display: none;
  }

  .page-hero {
    padding: 130px 0 60px;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .page-content {
    padding: 50px 0;
  }

  .page-body {
    padding: 32px 24px;
  }

  .page-sidebar {
    position: static;
    margin-bottom: 32px;
  }

  .highlight-card {
    padding: 28px 24px;
  }

  .highlight-card .d-flex {
    flex-direction: column;
  }

  .cta-box {
    padding: 28px 24px;
  }
}

@media (max-width: 767.98px) {
  .navbar-gem .btn-donate {
    padding: 9px 22px !important;
    font-size: 0.82rem !important;
    margin-top: 12px;
    width: 100%;
    min-width: auto;
    justify-content: center;
  }

  .navbar-gem .nav-item.ms-3 {
    margin-left: 0 !important;
  }

  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 90px 0 60px;
  }

  .hero-bg {
    background-position: 65% center;
    transform: scale(1.05);
  }

  .hero-content {
    height: auto;
    padding: 0;
  }

  .hero-section .hero-content > .row {
    margin: 0;
    width: 100%;
  }

  .hero-section .hero-content .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-section h1.display-3 {
    font-size: 1.85rem;
    margin-bottom: 1.2rem !important;
  }

  .hero-section p.lead {
    font-size: 1rem;
    margin-bottom: 2rem !important;
  }

  .badge-hero {
    font-size: 0.7rem;
    padding: 6px 16px;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem !important;
  }

  .hero-section .btn {
    padding: 10px 26px;
    font-size: 0.9rem;
  }

  .hero-section .d-flex.gap-3 {
    gap: 0.75rem !important;
  }

  .hero-section .col-lg-8 {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .page-hero {
    padding: 120px 0 50px;
  }

  .page-title {
    font-size: 1.9rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .page-body {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .member-avatar {
    width: 80px;
    height: 80px;
  }

  .pdf-icon {
    width: 80px;
    height: 80px;
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 90vh;
    padding: 80px 0 50px;
  }

  .hero-bg {
    background-position: 70% center;
  }

  .hero-section h1.display-3 {
    font-size: 1.55rem;
  }

  .hero-section p.lead {
    font-size: 0.92rem;
  }

  .badge-hero {
    font-size: 0.65rem;
    padding: 5px 14px;
  }

  .hero-section .btn {
    padding: 9px 22px;
    font-size: 0.85rem;
    width: 100%;
    min-width: auto;
    justify-content: center;
  }

  .page-title {
    font-size: 1.6rem;
  }

  .cta-box .btn,
  .pdf-preview-card .btn {
    width: 100%;
    justify-content: center;
  }

  .page-hero .breadcrumb {
    font-size: 0.75rem;
  }
}

/* ================================================================
   Settings Pages (Configurações)
   ================================================================ */

.setting-card {
  background: var(--white);
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 24px 28px;
  transition: all 0.3s ease;
}

.setting-card:hover {
  border-color: var(--green-light);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.setting-card.border-danger {
  border-color: rgba(220, 38, 38, 0.3);
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.setting-item > div:first-child {
  flex: 1;
  min-width: 260px;
}

.setting-item h5 {
  color: var(--text-dark);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.page-body .setting-card .btn-outline-gem,
.page-body .setting-card .btn-outline-gem:hover,
.page-body .btn-outline-gem {
  background: transparent;
  border: 2px solid var(--green-medium);
  color: var(--green-dark);
  padding: 9px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.page-body .btn-outline-gem:hover {
  background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
  border-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 71, 42, 0.2);
}

.form-switch-lg .form-check-input {
  width: 3.2rem;
  height: 1.8rem;
  cursor: pointer;
}

.form-switch-lg .form-check-input:checked {
  background-color: var(--green-medium);
  border-color: var(--green-medium);
}

.badge-gem {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
  color: white;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(26, 71, 42, 0.2);
  white-space: nowrap;
}

.benefit-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  height: 100%;
  transition: all 0.35s ease;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.benefit-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
  box-shadow: 0 6px 18px rgba(26, 71, 42, 0.2);
}

.benefit-card h5 {
  color: var(--green-dark);
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.screen-time-card {
  background: linear-gradient(135deg, rgba(82, 183, 136, 0.08), rgba(0, 78, 137, 0.05));
  border: 1px solid rgba(82, 183, 136, 0.2);
  border-radius: 20px;
  padding: 36px 24px;
}

.screen-time-stat {
  padding: 12px 8px;
}

.screen-time-number {
  font-size: 2.5rem;
  color: var(--green-dark);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.screen-time-number.text-primary {
  color: var(--petroleum-blue) !important;
}

.screen-time-number.text-success {
  color: var(--green-light) !important;
}

.interest-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 14px;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.interest-tag i {
  color: var(--green-medium);
}

.interest-tag:hover {
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.interest-tag.active {
  background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
  border-color: var(--green-dark);
  color: white;
  box-shadow: 0 6px 20px rgba(26, 71, 42, 0.22);
}

.interest-tag.active i {
  color: white;
}

.setting-card .form-select-lg {
  border-radius: 50px;
  border: 2px solid rgba(26, 71, 42, 0.15);
  padding: 10px 44px 10px 20px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  min-width: 180px;
}

.setting-card .form-select-lg:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 0.25rem rgba(82, 183, 136, 0.15);
}

@media (max-width: 767.98px) {
  .setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .setting-item > div:first-child {
    min-width: auto;
    width: 100%;
  }

  .screen-time-number {
    font-size: 2rem;
  }
}

/* ================================================================
   Projects Sections (Submenu pages)
   ================================================================ */

.project-icon-badge {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 6px 18px rgba(26, 71, 42, 0.18);
}

.project-content-box {
  background: linear-gradient(180deg, rgba(82, 183, 136, 0.05), transparent);
  border-left: 4px solid var(--green-light);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  color: var(--text-dark);
  line-height: 1.7;
}

.project-content-box p:last-child { margin-bottom: 0; }

.btn-link-gem {
  display: inline-flex;
  align-items: center;
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
  padding: 6px 0;
  transition: all 0.25s ease;
  border-bottom: 2px solid transparent;
}

.btn-link-gem:hover {
  color: var(--petroleum-blue);
  border-bottom-color: var(--green-medium);
  transform: translateX(2px);
}

.btn-link-gem i { transition: transform 0.25s ease; }
.btn-link-gem:hover i { transform: translateX(3px); }

.sidebar-section-title {
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  opacity: 0.8;
}

.empty-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  background: repeating-linear-gradient(45deg, rgba(0, 78, 137, 0.03), rgba(0, 78, 137, 0.03) 10px, transparent 10px, transparent 20px);
  border-radius: 14px;
  border: 2px dashed #dee2e6;
}

.empty-gallery i { font-size: 1.1rem; }

.photo-card {
  display: block;
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  background: white;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  color: inherit;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.photo-frame {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f8f9fa;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.photo-card:hover .photo-frame img { transform: scale(1.06); }

.photo-caption {
  display: block;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 500;
  background: white;
}

.video-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 10px;
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}

.partner-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  transition: all 0.3s ease;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--green-light);
}

.partner-logo {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
  filter: grayscale(0.2);
  transition: filter 0.3s ease;
}

.partner-card:hover .partner-logo img { filter: none; }

.partner-logo-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(82, 183, 136, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.partner-name {
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.doc-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(124, 58, 237, 0.04));
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.docs-list a {
  border-bottom: 1px solid #f1f5f9 !important;
}

.docs-list a:last-child { border-bottom: none !important; }
.docs-list a:hover .doc-icon { transform: scale(1.08); }

.news-list .news-item {
  border-bottom: 1px solid #f1f5f9;
}

.news-list .news-item:last-child { border-bottom: none; }

.news-date-badge {
  width: 58px;
  min-width: 58px;
  height: 64px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(26, 71, 42, 0.06));
  border: 2px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 4px;
}

.news-date-badge .day {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-dark);
  font-family: 'Inter', sans-serif;
}

.news-date-badge .month {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #b45309;
  font-weight: 700;
  margin-top: 2px;
}

.news-title-link {
  color: var(--green-dark);
  transition: color 0.2s ease;
}

.news-title-link:hover {
  color: var(--petroleum-blue);
  text-decoration: underline;
}

.news-source {
  color: #64748b;
  display: inline-flex;
  align-items: center;
}

.news-item a:hover .news-date-badge {
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.18);
}

@media (max-width: 767.98px) {
  .project-icon-badge {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 1.1rem;
    border-radius: 14px;
  }

  .setting-card {
    padding: 20px;
  }

  .news-date-badge {
    width: 52px;
    min-width: 52px;
    height: 58px;
  }
}