/* F.I.T Africa Custom Styles */
/* Brand Colors: #031384, #FFDB15, #004AAC */

:root {
    --primary-blue: #031384;
    --secondary-blue: #004AAC;
    --accent-yellow: #FFDB15;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    height: 50px;
    width: auto;
    max-width: none;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(3, 19, 132, 0.3);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-warning {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #e6c613;
    border-color: #e6c613;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 219, 21, 0.3);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 650px;
}

.hero-content {
    height: 650px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-content > .container {
    position: relative;
    z-index: 2;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.hero-text-lower {
    align-items: flex-end;
    padding-bottom: 230px;
}

.hero-mask::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 18, 55, 0.2) 0%, rgba(7, 18, 55, 0.55) 55%, rgba(7, 18, 55, 0.75) 100%);
    z-index: 1;
}

.hero-content .display-4 {
    font-size: 3rem;
}

.hero-content .lead {
    font-size: 1.15rem;
}

.hero-text-lower .hero-copy {
    transform: translateY(130px);
}

.hero-alt {
    background: linear-gradient(135deg, #1a237e 0%, var(--primary-blue) 100%);
}

.hero-bg-1 {
    background-image: url('../images/bg-1.jpg');
}

.hero-bg-2 {
    background-image: url('../images/1W5A9757.jpg');
}

.hero-report {
    background:
        linear-gradient(135deg, rgba(3, 19, 132, 0.7) 0%, rgba(0, 74, 172, 0.7) 70%),
        url('../images/FAB00488.jpg');
    background-size: cover;
    background-position: center;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 3;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Cards */
.card {
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-img-top {
    width: 100%;
    height: auto;
    display: block;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.icon-box i {
    color: var(--primary-blue);
}

/* Impact Section */
.impact-section {
    position: relative;
    background: radial-gradient(circle at 10% 10%, rgba(255, 219, 21, 0.12) 0%, rgba(255, 255, 255, 0) 40%),
                radial-gradient(circle at 90% 20%, rgba(0, 74, 172, 0.12) 0%, rgba(255, 255, 255, 0) 45%),
                #f8fafc;
}

.impact-kicker {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(3, 19, 132, 0.1);
    color: #031384;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.impact-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(3, 19, 132, 0.08);
    border: 1px solid rgba(3, 19, 132, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(3, 19, 132, 0.18);
    border-color: rgba(3, 19, 132, 0.2);
}

.impact-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, #031384 0%, #004AAC 70%, #FFDB15 100%);
    opacity: 0.9;
}

.impact-card .card-body {
    padding-top: 2.25rem;
}

.impact-media {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    display: block;
}

.impact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #031384;
    font-size: 2rem;
}

.impact-list li {
    margin-bottom: 0.5rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.stat-item {
    position: relative;
    z-index: 1;
}

/* TIPSY Cards */
.tipsy-card {
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.tipsy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tipsy-icon-img {
    width: 72px;
    height: auto;
    display: inline-block;
}

/* Impact Report Section */
.report-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #031384 0%, #004AAC 70%);
    color: white;
    min-height: 320px;
}

.report-section .container {
    position: relative;
    min-height: 320px;
}

.report-cloud {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.report-cta {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.cloud-word {
    position: absolute;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.22);
    text-transform: none;
    white-space: nowrap;
    animation: floaty 2.8s ease-in-out infinite;
}

.cloud-word.w1 { top: 12%; left: 6%; font-size: 1.6rem; animation-delay: 0s; }
.cloud-word.w2 { top: 18%; left: 58%; font-size: 1.5rem; animation-delay: 1s; }
.cloud-word.w3 { top: 30%; left: 18%; font-size: 1.35rem; animation-delay: 2s; }
.cloud-word.w4 { top: 38%; left: 70%; font-size: 1.4rem; animation-delay: 1.5s; }
.cloud-word.w5 { top: 52%; left: 8%; font-size: 1.35rem; animation-delay: 2.6s; }
.cloud-word.w6 { top: 60%; left: 62%; font-size: 1.3rem; animation-delay: 0.8s; }
.cloud-word.w7 { top: 68%; left: 20%; font-size: 1.28rem; animation-delay: 1.8s; }
.cloud-word.w8 { top: 72%; left: 52%; font-size: 1.25rem; animation-delay: 3s; }
.cloud-word.w9 { top: 84%; left: 10%; font-size: 1.2rem; animation-delay: 2.2s; }
.cloud-word.w10 { top: 86%; left: 64%; font-size: 1.25rem; animation-delay: 1.2s; }
.cloud-word.w11 { top: 24%; left: 36%; font-size: 1.25rem; animation-delay: 2.9s; }
.cloud-word.w12 { top: 48%; left: 36%; font-size: 1.35rem; animation-delay: 0.4s; }
.cloud-word.w13 { top: 8%; left: 30%; font-size: 1.25rem; animation-delay: 1.6s; }
.cloud-word.w14 { top: 40%; left: 2%; font-size: 1.2rem; animation-delay: 2.4s; }
.cloud-word.w15 { top: 58%; left: 76%; font-size: 1.25rem; animation-delay: 3.2s; }
.cloud-word.w16 { top: 76%; left: 32%; font-size: 1.2rem; animation-delay: 0.9s; }
.cloud-word.w17 { top: 16%; left: 78%; font-size: 1.2rem; animation-delay: 2.1s; }

@keyframes floaty {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -10px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.testimonial-card:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.quote-icon {
    color: var(--accent-yellow);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.author strong {
    color: var(--primary-blue);
}

.testimonial-media {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.section-blue-soft {
    background: linear-gradient(135deg, rgba(3, 19, 132, 0.08) 0%, rgba(0, 74, 172, 0.12) 100%);
}

/* Program Cards */
.program-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.program-image {
    height: auto;
    overflow: hidden;
    background: transparent;
}

.program-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.program-card:hover .program-image img {
    transform: none;
}

.programs-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
}

.programs-scroll::-webkit-scrollbar {
    height: 8px;
}

.programs-scroll::-webkit-scrollbar-thumb {
    background: rgba(3, 19, 132, 0.25);
    border-radius: 999px;
}

.program-scroll-item {
    flex: 0 0 40%;
    scroll-snap-align: start;
}

@media (max-width: 992px) {
    .program-scroll-item {
        flex-basis: 70%;
    }
}

@media (max-width: 576px) {
    .program-scroll-item {
        flex-basis: 85%;
    }
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.partner-logo {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo.partner-logo-large img {
    max-height: 110px;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Partners Marquee */
.partners-marquee {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
}

.partners-marquee:hover .partners-track {
    animation-play-state: paused;
}

.partners-marquee-row {
    display: flex;
    overflow: hidden;
    gap: 2rem;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 0 0 auto;
    min-width: max-content;
    animation: marquee-left 60s linear infinite;
}

.marquee-right .partners-track {
    animation-name: marquee-right;
}

.partners-marquee .partner-logo {
    flex: 0 0 auto;
    padding: 0.5rem 0.75rem;
    background: transparent;
    box-shadow: none;
}

.partners-marquee .partner-logo:hover {
    transform: none;
    box-shadow: none;
}

@keyframes marquee-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes marquee-right {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

/* Footer */
footer {
    background-color: #031384 !important;
    border-top: 4px solid #FFDB15;
    font-size: 0.9rem;
}

footer.bg-dark {
    background-color: #031384 !important;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-yellow) !important;
}

footer .text-white-50 {
    font-size: 0.85rem;
}

.newsletter-sidebar {
    position: fixed;
    right: 18px;
    bottom: 24px;
    z-index: 1050;
    display: none;
}

.newsletter-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(3, 19, 132, 0.2);
    padding: 1rem;
    width: 220px;
    border: 1px solid rgba(3, 19, 132, 0.1);
    position: relative;
}

.newsletter-card h6 {
    color: var(--primary-blue);
    margin-bottom: 0.35rem;
}

.newsletter-card p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.newsletter-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 768px) {
    .newsletter-sidebar {
        right: 12px;
        bottom: 12px;
    }

    .newsletter-card {
        width: 200px;
    }
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-yellow) !important;
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content,
    .carousel-item {
        height: 500px;
    }

    .hero-text-lower {
        padding-bottom: 200px;
    }

    .hero-text-lower .hero-copy {
        transform: translateY(110px);
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 1.85rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }
}

/* Page Specific Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--accent-yellow);
}

.team-member h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Forms */
.form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(3, 19, 132, 0.15);
}

textarea.form-control {
    min-height: 150px;
}

/* Alert Messages */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Loading Spinner */
.spinner-border {
    color: var(--primary-blue);
}

/* Section Dividers */
.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent-yellow);
    margin: 1rem auto;
}

/* Utility Classes */
.text-primary-blue {
    color: var(--primary-blue) !important;
}

.text-accent-yellow {
    color: var(--accent-yellow) !important;
}

.bg-primary-blue {
    background-color: var(--primary-blue) !important;
}

.bg-accent-yellow {
    background-color: var(--accent-yellow) !important;
}
