/* Custom CSS Styles for AVA Website */

:root {
    --sa-blue: #003A70;
    --sa-gold: #FFB81C;
    --sa-green: #007749;
    --sa-red: #E03C31;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

/* Custom Colors */
.text-sa-blue { color: var(--sa-blue); }
.text-sa-gold { color: var(--sa-gold); }
.text-sa-green { color: var(--sa-green); }
.text-sa-red { color: var(--sa-red); }

.bg-sa-blue { background-color: var(--sa-blue); }
.bg-sa-gold { background-color: var(--sa-gold); }
.bg-sa-green { background-color: var(--sa-green); }
.bg-sa-red { background-color: var(--sa-red); }

.border-sa-blue { border-color: var(--sa-blue); }
.border-sa-gold { border-color: var(--sa-gold); }

/* Navigation Styles */
.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sa-blue);
    background-color: #f3f4f6;
}

/* Section Management */
.section {
    display: none;
}

.section.active {
    display: block;
}

/* Slide Styles */
.slide-container {
    width: 100%;
    max-width: 1280px;
    min-height: 720px;
    overflow: hidden;
    position: relative;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.title-banner {
    background-color: var(--sa-blue);
    height: 10px;
    width: 100%;
}

.flag-stripe {
    position: absolute;
    width: 280px;
    height: 6px;
}

.stripe-green {
    background-color: var(--sa-green);
    top: 10px;
    right: 0;
}

.stripe-gold {
    background-color: var(--sa-gold);
    top: 16px;
    right: 0;
}

.stripe-red {
    background-color: var(--sa-red);
    top: 22px;
    right: 0;
}

.main-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--sa-blue);
    font-weight: 700;
    font-size: 52px;
    line-height: 1.2;
}

.subtitle {
    font-family: 'Montserrat', sans-serif;
    color: #666;
    font-weight: 600;
    font-size: 28px;
    line-height: 1.3;
    margin-top: 10px;
}

.slide-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--sa-blue);
    font-weight: 700;
    font-size: 36px;
    margin-bottom: 20px;
}

.content-box {
    border-left: 4px solid var(--sa-gold);
    padding-left: 20px;
}

.content-text {
    font-size: 22px;
    line-height: 1.5;
    color: #333;
}

.bullet-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.bullet-icon {
    color: var(--sa-blue);
    margin-right: 12px;
    flex-shrink: 0;
}

.bullet-text {
    font-size: 20px;
    line-height: 1.4;
}

.principle-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--sa-gold);
}

.principle-icon {
    color: var(--sa-blue);
    margin-right: 16px;
    flex-shrink: 0;
    width: 48px;
    text-align: center;
}

.footer-accent {
    background-color: var(--sa-gold);
    height: 6px;
    width: 100%;
    position: absolute;
    bottom: 0;
}

.data-visual-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.challenge-box {
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    border-left: 4px solid transparent;
}

.challenge-box.bg-red-50 {
    border-left-color: #ef4444;
}

.challenge-box.bg-yellow-50 {
    border-left-color: #eab308;
}

.challenge-box.bg-blue-50 {
    border-left-color: #3b82f6;
}

.challenge-box.bg-green-50 {
    border-left-color: #10b981;
}

.challenge-box i {
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.stat-card {
    text-align: center;
    padding: 20px 10px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.stat-value {
    font-size: 40px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    font-size: 16px;
    color: #555;
    margin-top: 8px;
}

/* Slide Navigation */
.slide {
    display: none;
}

.slide.active {
    display: block;
}

.slide-nav-btn {
    padding: 8px 16px;
    background-color: #f3f4f6;
    color: #6b7280;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.slide-nav-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.slide-nav-btn.active {
    background-color: var(--sa-blue);
    color: white;
}

/* Form Styles */
input[type="text"],
input[type="email"],
textarea {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--sa-blue);
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(0, 58, 112, 0.2);
}

/* Button Styles */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 20px;
    }
    
    .slide-title {
        font-size: 28px;
    }
    
    .content-text {
        font-size: 18px;
    }
    
    .bullet-text {
        font-size: 16px;
    }
    
    .slide-container {
        min-height: 600px;
    }
    
    .flag-stripe {
        width: 200px;
    }
    
    .stat-value {
        font-size: 32px;
    }
    
    .principle-item {
        flex-direction: column;
        text-align: center;
    }
    
    .principle-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
}

@media (max-width: 640px) {
    .px-16 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-14 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .grid.grid-cols-5 {
        grid-template-columns: 1fr;
    }
    
    .grid.grid-cols-12 {
        grid-template-columns: 1fr;
    }
    
    .col-span-3,
    .col-span-2,
    .col-span-7,
    .col-span-5 {
        grid-column: span 1;
    }
}

/* Animation for smooth transitions */
.slide {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

/* Loading animation for charts */
.chart-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 220px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--sa-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--sa-blue);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--sa-gold);
    transform: translateY(-2px);
}

/* Success message styles */
.success-message {
    background-color: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    margin-top: 16px;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button-container {
    text-align: center; /* Centers the button on the page */
    margin-top: 30px;
}

.calculator-link {
    /* Removes the default hyperlink underline */
    text-decoration: none; 
}

.access-button {
    /* Core Button Styles */
    background-color: #2ecc71; /* A nice green color */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.access-button:hover {
    background-color: #27ae60; /* Darker green on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

.access-button:active {
    background-color: #1e8449; /* Darkest green on click */
    transform: translateY(0);
}