/* Custom styles for PACES Masterclass */

/* Force CSS to load with higher specificity */
body {
    font-family: 'Lato', sans-serif !important;
    color: var(--text-body) !important;
}

/* Container centering fix */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Custom Color Palette */
:root {
    /* Primary (Trust & Authority): Deep Navy */
    --primary-navy: #0A1A2F;
    --primary-navy-dark: #071421;
    --primary-navy-light: #0D1F3A;
    
    /* Accent (Fresh & Modern): Teal */
    --accent-teal: #1ABC9C;
    --accent-teal-dark: #16A085;
    --accent-teal-light: #2ECC71;
    
    /* Background Colors */
    --bg-white: #FFFFFF;
    --bg-light-gray: #F5F7FA;
    
    /* Text Colors */
    --text-dark-slate: #2C3E50;
    --text-body: #34495E;
    --text-light: #7F8C8D;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    color: var(--text-dark-slate);
}

/* Ensure color variables are applied to key elements */
.bg-primary-navy {
    background-color: var(--primary-navy) !important;
}

.bg-accent-teal {
    background-color: var(--accent-teal) !important;
}

.text-primary-navy {
    color: var(--primary-navy) !important;
}

.text-accent-teal {
    color: var(--accent-teal) !important;
}

/* Override any conflicting styles */
* {
    box-sizing: border-box;
}

/* Alert styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: rgba(220, 60, 34, 0.1);
    border: 1px solid #DC3C22;
    color: #b8321c;
}

.alert-success {
    background-color: rgba(26, 188, 156, 0.1);
    border: 1px solid var(--accent-teal);
    color: var(--accent-teal-dark);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    color: #856404;
}

.alert-info {
    background-color: rgba(10, 26, 47, 0.1);
    border: 1px solid var(--primary-navy);
    color: var(--primary-navy-dark);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom button hover effects */
.btn-primary {
    background-color: var(--primary-navy);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary:hover {
    background-color: var(--primary-navy-dark);
}

.btn-secondary {
    background-color: var(--bg-light-gray);
    color: var(--text-dark-slate);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-secondary:hover {
    background-color: #E8ECF0;
}

.btn-accent {
    background-color: var(--accent-teal);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-accent:hover {
    background-color: var(--accent-teal-dark);
}

/* Card hover effects */
.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Form styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark-slate);
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive text sizes */
@media (max-width: 640px) {
    .text-responsive-xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .text-responsive-2xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    .text-responsive-3xl {
        font-size: 3rem;
        line-height: 1;
    }
}

@media (min-width: 641px) {
    .text-responsive-xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    .text-responsive-2xl {
        font-size: 3rem;
        line-height: 1;
    }
    
    .text-responsive-3xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background-color: white !important;
    }
    
    .shadow-lg {
        box-shadow: none !important;
    }
}
