:root {
    /* New Color Scheme */
    --color-primary: #3c3c50;          
    --color-primary-light: #4f4f68;    
    --color-primary-dark: #2a2a38;     
    --color-secondary: #788090;        
    --color-accent: #4fb377;           
    --color-accent-hover: #3d9460;     
    --color-text: #3c3c50;             
    --color-text-light: #788090;       
    
    /* Fonts */
    --font-logo: 'Bruno Ace SC', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

/* ========== BASE STYLES ========== */

body {
    font-family: var(--font-body);
    color: var(--color-text);
}

#featuresUL {
    list-style: none;
}

#featuresUL li {
    margin: 0 0 5px;
}

.home-page #pageHeading h1,
.home-page #pageHeading h3,
.home-page #pageHeading p {
    letter-spacing: 1px;
}

/* Logo uses Bruno Ace SC */
.navbar-brand, 
.logo {
    font-family: var(--font-logo) !important;
}

/* All headings use Montserrat */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
}

p {
    font-family: var(--font-body);
    color: var(--color-text);
    font-weight: 400;
}

/* ========== BUTTONS ========== */

.btn-primary {
    background: var(--color-accent);
    border: none;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 179, 119, 0.3);
}

.btn-outline-primary {
    color: var(--color-accent);
    border-color: var(--color-accent);
    border-width: 1.5px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.btn-outline-warning {
    border-width: 1.5px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-outline-warning:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.btn-outline-danger {
    border-width: 1.5px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-outline-danger:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

/* ========== ALERTS ========== */

.alert.alert-info {
    background-color: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
    border-radius: 8px !important;
}

/* ========== CARDS ========== */

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(60, 60, 80, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(60, 60, 80, 0.15);
}

/* Remove colored borders */
.border-start {
    border-left: none !important;
}

/* Stats Card Titles */
.card-title.text-muted {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light) !important;
    margin-bottom: 0.75rem;
}

/* Stats Numbers */
.card h2 {
    font-family: var(--font-body) !important;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--color-primary);
}

/* Create New Page Card */
.bg-primary {
    background: linear-gradient(135deg, #4fb377 0%, #3d9460 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(79, 179, 119, 0.3) !important;
}

.bg-primary:hover {
    box-shadow: 0 8px 25px rgba(79, 179, 119, 0.4) !important;
}

.bg-primary .btn-light {
    background: white;
    color: var(--color-primary);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bg-primary .btn-light:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Table Card Header */
.card-header {
    background: white;
    border-bottom: 1px solid #f3f4f6;
    padding: 1.25rem 1.5rem;
    border-radius: 12px 12px 0 0 !important;
}

.card-header h5 {
    font-weight: 600;
    font-size: 1.125rem;
}

/* ========== FORMS ========== */

.form-control, .form-select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(79, 179, 119, 0.1);
}

/* ========== TABLES ========== */

.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

/* ========== BADGES ========== */

.badge {
    padding: 0.375rem 0.75rem;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 6px;
}

.bg-success {
    background-color: #4fb377 !important;
}

/* ========== PAGINATION ========== */

.pagination .page-link {
    color: var(--color-primary);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin: 0 0.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--color-accent);
    border-color: var(--color-accent);
}


  /* === HOME PAGE STYLES (Scoped) === */
  /* Scoped to homepage only */
   .home-page section {
        scroll-margin-top: 80px;
        margin-top: 0px;
        margin-bottom: 3rem;
   }

    .home-page .hero-banner {
        margin-top: -30px !important;
    }
    

  .home-page .section-alt {
    background-color: #f9fafb;
    border-radius: 10px;
    padding: 4rem 0;
  }

  .home-page .section-divider {
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
  }

  .home-page .feature-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
  }

  .home-page .how-step {
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease;
  }

  .home-page .how-step:hover {
    transform: translateY(-5px);
  }

  .home-page .hero-section {
    margin-bottom: 0;
  }

  .home-page #seoContent {
    margin-top: 7rem !important;
  }

  .home-page #pageHeading h1 {
    font-size: 3rem;
    text-shadow: 3px 3px 3px black;
  }

  .home-page #pageHeading {
     background-color: #00000066;
  }   

  .home-page #pageHeading h3, 
  .home-page #pageHeading p {
    text-shadow: 3px 3px 3px black;
  }

  .home-page .feature-card p {
    margin-bottom: 0;
  }


/* ========== RESPONSIVE ========== */

@media (max-width: 767px) {
    .card h2 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }

    /* Hero Section */
    .home-page .hero-banner {
        height: 470px !important; /* Taller to accommodate text */
        padding: 2rem 0;
    }
    
    .home-page #pageHeading {
        padding: 0 1rem;
    }
    
    .home-page #pageHeading h1 {
        font-size: 1.75rem !important; /* Smaller on mobile */
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
        margin-bottom: 1rem !important;
    }
    
    .home-page #pageHeading h3 {
        font-size: 1.25rem !important;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
        margin-bottom: 1rem !important;
    }
    
    .home-page #pageHeading p {
        font-size: 0.95rem !important;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.8) !important;
        padding: 0 !important;
    }
    
    .home-page #pageHeading .btn {
        font-size: 0.9rem !important;
        padding: 0.75rem 2rem !important;
    }
    
    .home-page #pageHeading .small {
        font-size: 0.85rem !important;
    }

}

@media (max-width: 575px) {
    .home-page .hero-banner {
        height: 476px !important;
    }
    
    .home-page #pageHeading h1 {
        font-size: 2rem !important;
    }
    
    .home-page #pageHeading h3 {
        font-size: 1.1rem !important;
    }
}