/* ===================================================================
   GNIET Section Flow & Balance CSS
   Premium section transitions and visual flow improvements
   ================================================================= */

/* ===== SECTION FLOW SYSTEM ===== */
section:nth-child(odd) {
  background: var(--bg-white);
}

section:nth-child(even) {
  background: var(--bg-light);
}

.hero-section,
.hero-fullscreen {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--accent-blue) 100%) !important;
}

.stats-section {
  background: var(--bg-light) !important;
}

/* ===== IMPROVED SECTION SPACING ===== */
.magazine-layout {
  padding: var(--space-18) 0;
  background: var(--bg-light);
}

section .row.g-3 {
  margin: 0 -var(--space-2);
}

section .row.g-3 > * {
  padding: 0 var(--space-2);
  margin-bottom: var(--space-4);
}

section .row.g-4 {
  margin: 0 -var(--space-3);
}

section .row.g-4 > * {
  padding: 0 var(--space-3);
  margin-bottom: var(--space-6);
}

/* ===== ENHANCED CARD CONSISTENCY ===== */
/* Modern Card Improvements */
.modern-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  height: 100%;
}

.modern-card .card-header {
  background: var(--primary-navy);
  color: var(--bg-white);
  padding: var(--space-5) var(--space-6);
  border-bottom: none;
}

.modern-card .card-body {
  padding: var(--space-6);
}

/* ===== IMPROVED TYPOGRAPHY FLOW ===== */
/* Better heading spacing in cards */
.card h6 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.card .text-primary {
  color: var(--primary-navy) !important;
  font-weight: 600;
}

.card .text-muted {
  color: var(--text-gray) !important;
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* ===== BADGE SYSTEM ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-xl);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge.bg-primary {
  background: var(--primary-navy) !important;
  color: var(--bg-white);
}

/* ===== IMAGE CONSISTENCY ===== */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.card-img-top {
  width: 100%;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

/* ===== ENHANCED SPACING UTILITIES ===== */
.py-5 { padding-top: var(--space-18) !important; padding-bottom: var(--space-18) !important; }
.py-4 { padding-top: var(--space-16) !important; padding-bottom: var(--space-16) !important; }
.py-3 { padding-top: var(--space-12) !important; padding-bottom: var(--space-12) !important; }

.my-5 { margin-top: var(--space-18) !important; margin-bottom: var(--space-18) !important; }
.my-4 { margin-top: var(--space-16) !important; margin-bottom: var(--space-16) !important; }
.my-3 { margin-top: var(--space-12) !important; margin-bottom: var(--space-12) !important; }

/* ===== RESPONSIVE GRID IMPROVEMENTS ===== */
@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }

/* ===== SECTION CONTENT BALANCE ===== */
section .container {
  max-width: 1200px;
}

section .text-center {
  text-align: center !important;
}

section .text-md-end {
  text-align: right !important;
}

@media (max-width: 768px) {
  section .text-md-end {
    text-align: center !important;
  }
}

/* ===== ENHANCED VISUAL HIERARCHY ===== */
/* Small text consistency */
.small {
  font-size: var(--text-sm) !important;
  line-height: 1.5;
}

/* Link consistency */
a:not(.btn):not(.nav-link) {
  color: var(--primary-navy);
  text-decoration: none;
}

a:not(.btn):not(.nav-link):hover {
  color: var(--primary-maroon);
  text-decoration: underline;
}

/* List improvements */
ul, ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-5);
}

li {
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

/* ===== MOBILE REFINEMENTS ===== */
@media (max-width: 768px) {
  .magazine-layout {
    padding: var(--space-14) 0;
  }
  
  .row.g-3 {
    margin: 0 -var(--space-2);
  }
  
  .row.g-4 {
    margin: 0 -var(--space-2);
  }
  
  .row.g-3 > *,
  .row.g-4 > * {
    padding: 0 var(--space-2);
  }
}