/* ============================================
   AFA Website - Main Stylesheet
   ============================================ */

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
    /* Brand Colors */
    --color-primary: #8BB94D;
    --color-secondary: #F01778;
    --color-white: #FFFFFF;

    /* Neutral Colors */
    --color-gray-100: #f8f9fa;
    --color-gray-200: #e9ecef;
    --color-gray-300: #dee2e6;
    --color-gray-400: #ced4da;
    --color-gray-500: #adb5bd;
    --color-gray-600: #6c757d;
    --color-gray-700: #495057;
    --color-gray-800: #343a40;
    --color-gray-900: #212529;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    padding-top: 80px;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

.goog-te-gadget {
    display: none !important;
}

body {
    top: 0px !important;
}

iframe.skiptranslate {
    display: none !important;
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--color-gray-900);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

/* ========== LAYOUT UTILITIES ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #7aa642;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    margin: 4px;
    padding: 0.75rem 3rem;
    min-width: 120px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: #d0146a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

.btn-outline.btn-lg {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ========== CARD COMPONENT ========== */
.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    height: 100%;
    border: 1px solid var(--color-gray-200);
    margin-bottom: var(--space-md);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--color-gray-900);
    line-height: 1.3;
}

.card-text {
    color: var(--color-gray-600);
    margin-bottom: var(--space-md);
    line-height: 1.5;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    max-height: 4.5em;
}

.card-date,
.card-location {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-location i {
    color: var(--color-secondary);
}

.read-more {
    font-weight: 600;
    color: var(--color-primary);
    display: inline-block;
    margin-top: var(--space-sm);
    align-self: flex-start;
}

/* ========== GRID SYSTEM ========== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
    padding: 0 15px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

/* ========== RESPONSIVE UTILITIES ========== */
@media (max-width: 992px) {

    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: var(--space-md);
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section {
        padding: var(--space-lg) 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ========== HEADER & NAVIGATION ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-gray-900);
    gap: var(--space-sm);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-gray-900);
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.9rem;
    color: var(--color-gray-700);
    line-height: 1.2;
    font-weight: 700;
}

.navbar-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.navbar-menu li {
    margin-left: var(--space-lg);
}

.navbar-menu a {
    color: var(--color-gray-700);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.navbar-menu a.active {
    color: var(--color-primary);
}

.navbar-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-gray-700);
    cursor: pointer;
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }

    .logo-main {
        font-size: 1rem;
    }

    .logo-sub {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .logo-text {
        display: none;
    }
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--color-white);
    margin-top: -80px;
    overflow: hidden;
}

/* Slideshow Container */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Individual Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.185), rgba(0, 0, 0, 0.189));
}

.slide.active {
    opacity: 1;
}

/* Slide Indicators/Dots */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-white);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator.active {
    background-color: var(--color-white);
    transform: scale(1.2);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Navigation Arrows */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.slide-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slide-nav.prev {
    left: 20px;
}

.slide-nav.next {
    right: 20px;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 185, 77, 0.1), rgba(240, 23, 120, 0.1));
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--space-xl);
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
}

/* Hero Responsive */
@media (max-width: 992px) {
    .slide-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slide-nav.prev {
        left: 10px;
    }

    .slide-nav.next {
        right: 10px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 500px;
        margin-top: -70px;
    }

    .slide-nav {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
}

/* ========== MISSION SECTION ========== */
.mission-section {
    background-color: var(--color-gray-100);
    padding: var(--space-xl) 0;
}

.mission-section .section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.mission-section .section-title::after {

    transform: translateX(0);
    position: center;
}

.mission-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray-700);
    margin-bottom: var(--space-lg);
    text-align: justify;
    text-justify: inter-word;
}

/* Mission Image Wrapper */
.mission-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.mission-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.mission-image-wrapper:hover .mission-main-image {
    transform: scale(1.05);
}

/* Mission Icons Overlay */
.mission-icons-overlay {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    z-index: 2;
}

.mission-icon {
    width: 70px;
    height: 70px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mission-icon.animate-icon {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.mission-icon:hover {
    transform: scale(1.1);
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Mission Responsive */
@media (max-width: 992px) {
    .mission-section .row {
        flex-direction: column;
    }

    .mission-section .col-md-6 {
        width: 100%;
        margin-bottom: var(--space-xl);
    }

    .mission-image-wrapper {
        height: 350px;
        margin-top: var(--space-lg);
    }

    .mission-icons-overlay {
        gap: var(--space-md);
    }

    .mission-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .mission-image-wrapper {
        height: 300px;
    }

    .mission-icons-overlay {
        gap: var(--space-sm);
        bottom: 15px;
    }

    .mission-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .mission-text {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* ========== PREVIEW SECTIONS ========== */
.preview-section {
    background-color: var(--color-white);
}

/* Headers Row */
.preview-headers-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.preview-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--color-primary);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.preview-header:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.preview-header h3 {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-gray-800);
    font-size: 1.5rem;
}

.preview-header h3 i {
    color: var(--color-primary);
    font-size: 1.8rem;
}

.view-all {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.view-all:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Cards Layout */
.preview-section .col-md-4 {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.preview-section .card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.preview-section .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.preview-section .card-text {
    flex-grow: 1;
    min-height: 72px;
    line-height: 1.5;
}

.preview-section .card-body>a:last-child {
    margin-top: auto;
    align-self: flex-start;
}

/* Preview Responsive */
@media (max-width: 992px) {
    .preview-headers-row {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        margin-bottom: var(--space-md);
    }

    .preview-header {
        padding: var(--space-sm);
    }

    .preview-header h3 {
        font-size: 1.25rem;
    }

    .preview-header h3 i {
        font-size: 1.5rem;
    }

    .preview-section .col-md-4 {
        margin-bottom: var(--space-md);
    }
}

@media (max-width: 768px) {
    .preview-headers-row {
        gap: var(--space-xs);
    }

    .preview-header {
        padding: var(--space-sm) var(--space-xs);
    }

    .preview-header h3 {
        font-size: 1.1rem;
        gap: var(--space-xs);
    }

    .preview-header h3 i {
        font-size: 1.3rem;
    }
}

/* ========== CALL TO ACTION ========== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary), #7aa642);
    color: var(--color-white);
    text-align: center;
    padding: var(--space-xl) 0;
}

.cta-content h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--color-gray-900);
    color: var(--color-gray-300);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
    gap: var(--space-sm);
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo .logo-main {
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.footer-logo .logo-sub {
    color: var(--color-gray-400);
    font-size: 0.9rem;
    line-height: 1.2;
}

.footer-about {
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

/* Social Media Icons - FIXED */
.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-gray-800);
    color: var(--color-white);
    border-radius: 50%;
    transition: all var(--transition-base);
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-links i {
    font-size: 1.2rem;
}

.footer h5 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-contact {
    list-style: none;
    padding-left: 0;
}

.footer-contact li {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.footer-contact i {
    color: var(--color-primary);
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-800);
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    text-align: center;
    color: var(--color-white);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-credits {
    font-style: italic;
    margin-top: 0.25rem;
    color: var(--color-gray-400);
    font-size: 0.85rem;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-logo {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xs);
    }

    .footer-logo-img {
        height: 50px;
        margin-bottom: var(--space-xs);
    }

    .footer-logo-text {
        align-items: center;
    }

    .footer-bottom {
        margin-top: var(--space-lg);
        padding-top: var(--space-sm);
    }
}

/* ========== RESPONSIVE NAVIGATION ========== */
@media (max-width: 992px) {
    .navbar-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-md);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-menu li {
        margin: 0 0 var(--space-md) 0;
        width: 100%;
    }

    .navbar-menu a {
        display: block;
        padding: var(--space-sm);
        border-bottom: 1px solid var(--color-gray-200);
    }

    .navbar-toggle {
        display: block;
    }

    .footer .row>div {
        margin-bottom: var(--space-lg);
    }
}