/*
Theme Name: AAAG Website
Description: Custom WordPress theme for African-American Association of Ghana
Version: 1.0
Author: AAAG Development Team
*/

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Remove rounded corners only from slider images, not logos */
.hero-slider-section img {
    border-radius: 0 !important;
}

/* Preserve logo rounded corners */
.site-logo img,
.hero-logo img,
.footer-logo img {
    border-radius: 50% !important;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

/* Remove default margins from all sections */
/* Removed global section reset to prevent conflicts with custom CSS */

/* Ensure no spacing between hero and slider */
.hero + .hero-slider-section {
    margin-top: 0;
}

/* Remove any default margins from main content */
.site-main {
    margin: 0;
    padding: 0;
    flex: 1; /* This makes the main content expand to fill available space */
}

/* Ensure sections are flush */
.hero-slider-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure slider connects directly to CTA section */
.hero-slider-section + .cta-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Force slider to fill entire area */
.hero-slider-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure CTA section has no top margin */
.cta-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove any default spacing from Swiper */
.swiper {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.swiper-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.swiper-container {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Override any WordPress theme defaults */
.hero-slider-section,
.hero-slider-section * {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* Hero Slider Section - Clean styling */
.hero-slider-section {
    background: transparent;
}

/* Ensure no line-height or font-size issues */
.hero-slider-section,
.hero-slider-section * {
    line-height: 0 !important;
    font-size: 0 !important;
}

/* Force slider to fill entire container */
.hero-slider {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

.hero-slider .swiper-wrapper {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Header Styles - Match Next.js Design */
.site-header {
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
    position: relative; /* Added for mobile menu positioning */
}

.header-content {
    max-width: 1152px; /* max-w-6xl equivalent */
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #333;
}

.site-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.site-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
}

/* Navigation */
.main-navigation {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-navigation a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #ea580c;
}

/* Header Buttons */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: #f54a00; /* Orange - Join AAAG (Next.js exact color) */
    color: white;
}

.btn-primary:hover {
    background: #d43d00; /* Orange hover (darker shade of #f54a00) */
    color: white;
}

.btn-secondary {
    background: #16a34a; /* Green - Member Login (bg-green-600) */
    color: white;
}

.btn-secondary:hover {
    background: #15803d; /* Green hover (bg-green-700) */
    color: white;
}

/* Hero Section - Match Next.js Design */
.hero {
    background: linear-gradient(to right, #dc2626, #eab308, #16a34a);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    margin: 0;
}

.hero-content {
    max-width: 1152px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 1rem;
}

.hero-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #92400e;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(146, 64, 14, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 3rem; /* Increased to match Next.js */
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Slider Section */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border-radius: 0;
    display: block;
}

.hero-slider {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0; /* Remove any rounded edges */
}

.hero-slider .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-slider .swiper-pagination {
    bottom: 20px;
}

.hero-slider .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.hero-slider .swiper-pagination-bullet-active {
    background: #f97316;
}

/* Page Hero Section - For all pages except homepage */
.page-hero {
    background: linear-gradient(to right, #dc2626, #eab308, #16a34a);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.page-hero-content {
    max-width: 1152px;
    margin: 0 auto;
}

.page-hero-title {
    font-size: 2.25rem; /* text-4xl equivalent - reduced from 3rem */
    font-weight: 700; /* font-bold equivalent */
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-hero-subtitle {
    font-size: 1.25rem;
    font-style: italic;
    opacity: 0.9;
    margin: 0;
}

/* Responsive Page Hero */
@media (max-width: 768px) {
    .page-hero {
        padding: 1.5rem 1rem;
    }
    
    .page-hero-title {
        font-size: 1.875rem; /* text-3xl equivalent for mobile */
    }
    
    .page-hero-subtitle {
        font-size: 1.125rem;
    }
}

@media (min-width: 769px) {
    .page-hero {
        padding: 2.5rem 1rem;
    }
    
    .page-hero-title {
        font-size: 2.5rem; /* text-4xl equivalent for desktop */
    }
    
    .page-hero-subtitle {
        font-size: 1.5rem;
    }
}


/* Button Styles */

.btn-primary {
    background: #f54a00;
    color: white;
}

.btn-primary:hover {
    background: #d43d00;
    color: white;
}


/* Call to Action Section */
.cta-section {
    background: #000;
    color: white;
    padding: 0; /* Let content handle padding */
    margin: 0;
    border-radius: 0; /* Remove any rounded edges */
}

.cta-content {
    max-width: 1152px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1rem 1rem 1rem; /* More padding at top, less at bottom */
}

.cta-text {
    font-size: 1.125rem;
    margin-bottom: 2rem; /* Increased bottom margin to match Next.js */
    font-style: italic;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Increased gap to match Next.js */
    justify-content: center;
    align-items: center;
}

.cta-button {
    background: #ea580c;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background: #c2410c;
    color: white;
}

.cta-button.blue {
    background: #2563eb;
}

.cta-button.blue:hover {
    background: #1d4ed8;
}

/* Objectives Section */
.objectives-section {
    padding: 3rem 1rem;
    background: #f9fafb;
}

.objectives-content {
    max-width: 1152px;
    margin: 0 auto;
}

.objectives-title {
    font-size: 2.25rem;
    font-weight: bold;
    text-align: center;
    color: #1f2937;
    margin-bottom: 4rem;
}

/* Custom HTML content - remove default WordPress/theme spacing */
.objectives-custom-content .objectives-custom-html {
    margin: 0;
    padding: 0;
}

.objectives-custom-content .objectives-custom-html > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.objectives-custom-content .objectives-custom-html > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove default paragraph margins when custom HTML is used */
.objectives-custom-content .objectives-custom-html p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.objectives-custom-content .objectives-custom-html p:first-child {
    margin-top: 0 !important;
}

.objectives-custom-content .objectives-custom-html p:last-child {
    margin-bottom: 0 !important;
}

/* Ensure title spacing is consistent - reduce margin when custom HTML follows */
.objectives-custom-content .objectives-title {
    margin-bottom: 4rem;
}

/* Remove any extra spacing between title and custom content */
.objectives-custom-content .objectives-title + .objectives-custom-html {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.objective-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.objective-icon {
    width: 5rem;
    height: 5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.objective-icon img {
    width: 50px;
    height: 50px;
}

.objective-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.objective-description {
    color: #6b7280;
}

/* Join Section */
.join-section {
    padding: 3rem 1rem;
    background: #f9fafb;
}

.join-content {
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
}

.join-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.join-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 3rem;
}

.join-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.join-button {
    background: #ea580c;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.join-button:hover {
    background: #c2410c;
    color: white;
}

.join-button.blue {
    background: #2563eb;
}

.join-button.blue:hover {
    background: #1d4ed8;
}

/* Footer - Match Next.js Design */
.site-footer {
    background: #111827;
    color: white;
    padding: 1.5rem 0; /* Reduced padding to match Next.js */
}

.footer-content {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem; /* Reduced gap */
}

.footer-main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem; /* Reduced gap */
    width: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #92400e;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.footer-logo span {
    font-size: 1.125rem;
    font-weight: bold;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* WordPress Footer Menu Styling */
.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #d1d5db;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #f97316;
}

.footer-bottom {
    margin-top: 1rem; /* Reduced margin */
    padding-top: 1rem; /* Reduced padding */
    border-top: 1px solid #374151;
    text-align: center;
    width: 100%;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.75rem;
}

/* Responsive Design */
@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
    
    .join-buttons {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .footer-main {
        flex-direction: row;
    }
    
    .objectives-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Navigation */
.mobile-navigation {
    display: none; /* Hidden by default */
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
    position: fixed; /* Changed from absolute to fixed */
    top: 80px; /* Fixed position from top of viewport */
    left: 0;
    right: 0;
    z-index: 9999; /* Higher z-index */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ensure full width */
}

.mobile-navigation.active {
    display: block !important; /* Show when hamburger is clicked */
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    background: #fff !important;
    border-top: 1px solid #e5e7eb !important;
    padding: 1rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* Mobile navigation - now controlled by JavaScript */
.mobile-navigation {
    display: none; /* Hidden by default */
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    max-height: calc(100vh - 80px); /* Don't exceed viewport height */
    overflow-y: auto; /* Allow scrolling if content is too tall */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin: 0;
    padding: 0;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu a:hover {
    color: #f54a00;
}

.mobile-actions {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-social {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.mobile-social .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.mobile-social .social-links a {
    color: #6b7280;
    font-size: 1.25rem;
}

.mobile-social .social-links a:hover {
    color: #f54a00;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 3px;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    z-index: 1001;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Show mobile menu toggle on mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .main-navigation {
        display: none; /* Hide desktop navigation on mobile */
    }
    
    .header-actions {
        display: none; /* Hide desktop actions on mobile */
    }
}

/* Footer responsive adjustments */
@media (max-width: 768px) {
    .site-footer {
        padding: 0.5rem 0;
    }
    
    .footer-content {
        gap: 0;
        padding: 0;
    }
    
    .footer-main {
        gap: 0;
        padding: 0;
        margin: 0;
    }
    
    .footer-logo {
        margin: 0;
        padding: 0;
    }
    
    .footer-logo img {
        width: 28px;
        height: 28px;
    }
    
    .footer-logo span {
        font-size: 0.9rem;
    }
    
    .footer-links {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        margin: 0;
        padding: 0;
    }
    
    .footer-links a {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
        margin: 0;
    }
    
    .social-links {
        gap: 0.5rem;
        margin: 0;
        padding: 0;
    }
    
    .social-links a {
        font-size: 1rem;
    }
    
    /* Hide copyright on mobile */
    .footer-bottom {
        display: none;
    }
    
    .footer-copyright {
        display: none;
    }
}

@media (min-width: 1024px) {
    .objectives-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.875rem; /* Match Next.js mobile font size */
    }
    
    .hero-slider-section {
        height: 300px;
        border-radius: 0 !important;
    }
}

@media (min-width: 769px) {
    .hero-slider-section {
        height: 500px;
        border-radius: 0 !important;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.25rem; /* Match Next.js desktop font size */
    }
}
