/*
 * CMPG - Centre for Mineral Policy and Governance
 * Main Stylesheet - Mobile-First Responsive Design
 * Version: 2.1
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors - Refined Premium Palette */
    --primary: #0F4C5C;
    --primary-dark: #08323D;
    --primary-light: #1A7A91;
    --secondary: #E39774;
    --secondary-dark: #C27656;
    --accent: #D4AF37;
    --accent-glow: rgba(212, 175, 55, 0.4);
    --neutral: #F9F9F9;
    --text: #2F3E46;
    --text-light: #6c757d;
    --border: rgba(15, 76, 92, 0.1);
    --white: #ffffff;
    --black: #1A1A1A;
    
    /* Advanced Overlays */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --overlay-dark: rgba(15, 76, 92, 0.85);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-hero: linear-gradient(rgba(15, 76, 92, 0.9), rgba(15, 76, 92, 0.7)), url('../images/mineral-texture.jpg');
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1.25rem;
    --radius-full: 9999px;
    
    /* Shadows - Refined Depth */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* Transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 700ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Container */
    --container-max: 1240px;
    --container-padding: 1.5rem;
}

/* ============================================
   GLOBAL ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.reveal-up {
    animation: fadeInUp var(--transition-base) forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
h4 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h5 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h6 { font-size: clamp(1rem, 2vw, 1.25rem); }

p {
    margin-bottom: var(--space-sm);
    font-size: clamp(0.95rem, 1.5vw, 1.125rem);
}

.lead {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 400;
    line-height: 1.7;
}

.small {
    font-size: 0.875rem;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

@media (min-width: 768px) {
    .container {
        --container-padding: 2rem;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-inline: calc(var(--space-sm) * -1);
}

[class*="col-"] {
    width: 100%;
    padding-inline: var(--space-sm);
    margin-bottom: var(--space-md);
}

/* Grid Columns */
@media (min-width: 576px) {
    .col-sm-6 { width: 50%; }
    .col-sm-12 { width: 100%; }
}

@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.333%; }
    .col-md-6 { width: 50%; }
    .col-md-8 { width: 66.666%; }
    .col-md-12 { width: 100%; }
}

@media (min-width: 992px) {
    .col-lg-2 { width: 16.666%; }
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.333%; }
    .col-lg-6 { width: 50%; }
    .col-lg-8 { width: 66.666%; }
    .col-lg-10 { width: 83.333%; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-link {
    color: var(--primary);
    padding: 0;
    border: none;
    background: none;
}

.btn-link:hover {
    color: var(--secondary);
    transform: none;
    box-shadow: none;
}

.btn-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    z-index: 100;
    display: none; /* Hidden by default, shown via JS */
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    display: none;
    z-index: 100;
    transition: all var(--transition-base);
}

.back-to-top:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
    HEADER & NAVIGATION
    ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.navbar {
    padding-block: var(--space-sm);
}

.navbar-brand .logo {
    height: 40px;
    width: auto;
}

@media (min-width: 768px) {
    .navbar-brand .logo {
        height: 50px;
    }
}

.navbar-nav {
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

@media (min-width: 992px) {
    .navbar-nav {
        margin-top: 0;
        gap: var(--space-md);
    }
}

/* Search and contact alignment */
.navbar-form-group {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.navbar-search {
    flex: 1;
    min-width: 250px;
}

.navbar-contact {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text);
}

.navbar-contact i {
    font-size: 1.1rem;
}

.nav-link {
    position: relative;
    padding: var(--space-xs) var(--space-sm);
    font-weight: 500;
    color: var(--text);
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--space-sm);
    right: var(--space-sm);
    height: 3px;
    background-color: var(--secondary);
    border-radius: var(--radius-full);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: var(--space-sm);
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: var(--space-xs) var(--space-sm);
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--neutral);
    color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-block: var(--space-3xl);
    background: var(--gradient-hero);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(15, 76, 92, 0.4) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}30


.hero-title {
  font-size: 20px;     /* desktop size – reduce/increase as you like */
  line-height: 1.2;
  font-weight: 400;     /* optional: adjust weight */
}

.hero-title {
   
     font-size: clamp(2.1875rem, 8vw, 4.1875rem);
    line-height: 1.1;
    color: var(--white);
    margin-bottom: var(--space-md);
    animation: fadeInUp var(--transition-base) forwards;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin-bottom: var(--space-xl);
    animation: fadeInUp var(--transition-base) 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    animation: fadeInUp var(--transition-base) 0.4s forwards;
    opacity: 0;
}

.hero-dynamic {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.hero-dynamic::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.hero-counter {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

@media (min-width: 992px) {
    .hero-counter {
        margin-top: 0;
    }
}

.counter-item {
    padding: var(--space-lg);
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    border-left: 5px solid var(--secondary);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-base);
}

.counter-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.counter-number {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.counter-label {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    position: relative;
    padding-block: var(--space-2xl);
    background: var(--gradient-primary);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        url('../images/mineral-texture.jpg');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--white), transparent);
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--secondary-light);
    max-width: 700px;
    margin-inline: auto;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@media (min-width: 768px) {
    .page-header {
        padding-block: var(--space-2xl);
    }
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(15, 76, 92, 0.05);
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.page-subtitle {
    font-family: var(--font-body);
    opacity: 0.9;
    max-width: 700px;
    margin-inline: auto;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding-block: var(--space-xl);
}

@media (min-width: 768px) {
    section {
        padding-block: var(--space-2xl);
    }
}

.section-title {
    position: relative;
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: var(--radius-full);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--text-light);
    max-width: 700px;
    margin-inline: auto;
    margin-bottom: var(--space-lg);
}

.mandate-box {
    border-left: 5px solid var(--primary);
    background-color: var(--white);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    height: 100%;
    padding: var(--space-lg);
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

.research-card,
.publication-card,
.insight-card,
.tool-card,
.team-card,
.hook-card {
    height: 100%;
    padding: var(--space-xl);
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.research-card::after,
.hook-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.research-card:hover,
.publication-card:hover,
.insight-card:hover,
.tool-card:hover,
.team-card:hover,
.hook-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(15, 76, 92, 0.1);
}

.research-card:hover::after,
.hook-card:hover::after {
    transform: scaleX(1);
}

.hook-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.card-header {
    margin-bottom: var(--space-md);
}

.card-body {
    flex: 1;
}

.card-footer {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

/* Research Card Specific */
.research-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 76, 92, 0.1);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.value-card {
    padding: var(--space-lg);
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Hook Cards */
.hook-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--transition-base);
}

.hook-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hook-card .card-footer-action {
    padding-top: var(--space-md);
    margin-top: auto;
}

.hook-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Community Voices */
.community-voices {
    background: radial-gradient(circle at top right, var(--neutral) 0%, #fff 100%);
}

.voice-card {
    border: none;
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.voice-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.voice-icon i {
    opacity: 0.2;
    font-size: 3rem;
}

.blockquote-footer {
    color: var(--primary);
    font-weight: 600;
    margin-top: var(--space-md);
    display: block;
}

/* Newsletter Section */
.newsletter-section {
    position: relative;
    padding-block: var(--space-3xl);
    background: var(--gradient-primary) !important;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(227, 151, 116, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.newsletter-section .container {
    position: relative;
    z-index: 1;
}

.newsletter-form .input-group {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form .form-control {
    background: transparent;
    border: none;
    color: var(--white);
    padding-left: var(--space-lg);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .btn {
    border-radius: var(--radius-full);
    padding-inline: var(--space-xl);
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    font-weight: 600;
}

.newsletter-form .btn:hover {
    background-color: var(--white);
    color: var(--primary);
}
.form-control {
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--text);
}

.input-group {
    display: flex;
    gap: var(--space-xs);
}

.input-group .form-control {
    flex: 1;
}

@media (max-width: 575px) {
    .input-group {
        flex-direction: column;
    }
}

/* Newsletter Form */
.newsletter-form {
    max-width: 500px;
    margin-inline: auto;
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}

/* MODALS */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    outline: 0;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.show {
    opacity: 0.5;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
    border-top-left-radius: calc(var(--radius-lg) - 1px);
    border-top-right-radius: calc(var(--radius-lg) - 1px);
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.25rem;
    font-weight: 500;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: var(--space-lg);
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: calc(var(--space-lg) - var(--space-sm)) var(--space-lg);
    border-top: 1px solid var(--border);
    border-bottom-right-radius: calc(var(--radius-lg) - 1px);
    border-bottom-left-radius: calc(var(--radius-lg) - 1px);
}

.modal-footer > * {
    margin: 0.25rem;
}

/* Specific for Paid Modal - Credits Required */
.paid-modal .modal-title {
    color: var(--primary);
    text-align: center;
}

.paid-modal .modal-body {
    text-align: center;
}

.paid-modal .balance {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
    margin: var(--space-md) 0;
}

.paid-modal .buy-credits-btn {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.paid-modal .buy-credits-btn:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.paid-modal .message {
    margin-bottom: var(--space-md);
    color: var(--text);
}

.paid-modal .credits-info {
    background-color: var(--neutral);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding-block: var(--space-2xl) var(--space-lg);
    background-color: var(--primary);
    color: var(--white);
}

.footer-heading {
    position: relative;
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
    color: var(--white);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links {
    display: grid;
    gap: var(--space-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: var(--space-xs);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--white);
    transition: all var(--transition-base);
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-bottom-links {
        justify-content: flex-end;
    }
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline-flex { display: inline-flex; }

/* Flexbox */
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.justify-content-between { justify-content: space-between; }
.gap-1 { gap: var(--space-xs); }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: var(--space-md); }

/* Spacing */
.m-0 { margin: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }
.mx-auto { margin-inline: auto; }

.p-0 { padding: 0; }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }
.py-5 { padding-block: var(--space-xl); }
.px-0 { padding-inline: 0; }

/* Text */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--text-light); }
.text-white { color: var(--white); }
.text-white-50 { color: rgba(255, 255, 255, 0.5); }
.text-success { color: var(--success); }
.text-dark { color: var(--text); }
.fw-bold { font-weight: 700; }
.fw-normal { font-weight: 400; }

/* Background */
.bg-light { background-color: var(--neutral); }
.bg-white { background-color: var(--white); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-success { background-color: var(--success); }
.bg-info { background-color: var(--info); }
.bg-warning { background-color: var(--warning); }

/* Border */
.rounded { border-radius: var(--radius-md); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }
.border { border: 1px solid var(--border); }
.border-start { border-left: 1px solid var(--border); }
.border-5 { border-width: 5px !important; }

/* Shadow */
.shadow { box-shadow: var(--shadow-md); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Sizing */
.h-100 { height: 100%; }
.w-100 { width: 100%; }
.w-auto { width: auto; }
.img-fluid { max-width: 100%; height: auto; }

/* Effects */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    border-radius: var(--radius-full);
}

.badge.bg-primary { background-color: var(--primary); color: var(--white); }
.badge.bg-secondary { background-color: var(--secondary); color: var(--white); }
.badge.bg-success { background-color: var(--success); color: var(--white); }
.badge.bg-info { background-color: var(--info); color: var(--white); }
.badge.bg-warning { background-color: var(--warning); color: var(--text); }

/* Responsive Utilities */
@media (min-width: 768px) {
    .text-md-start { text-align: left; }
    .text-md-end { text-align: right; }
}

@media (min-width: 992px) {
    .order-lg-1 { order: 1; }
    .order-lg-2 { order: 2; }
}

/* Mobile (< 768px) */
 .hero-title {
-    font-size: 2rem;
+    font-size: 1.6875rem;
 }
 /* Tablet (768px - 992px) */
 .hero-title {
-    font-size: 2.5rem;
+    font-size: 2.1875rem;
 }
 /* Large Desktop (> 1400px) */
 .hero-title {
-    font-size: 3.5rem;
+    font-size: 3.1875rem;
 }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .footer,
    .btn,
    .newsletter-section,
    .hero-cta {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    img {
        max-width: 100% !important;
    }
    
    @page {
        margin: 2cm;
    }
}
