/*
Theme Name: Youth Club Theme
Description: A WordPress theme focused on charity and healthcare organisations with clean, compassionate design elements, specifically designed for youth clubs and community organisations.
Version: 1.1.0
Author: Technoliga
Text Domain: youth-club-theme
*/

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
    color: #555555;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

/* Header Styles */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e74c3c;
}

.site-logo a {
    color: inherit;
    text-decoration: none;
}

/* Navigation Styles */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-left: 2rem;
}

.main-navigation a {
    color: #333333;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #e74c3c;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e74c3c;
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    flex-direction: column;
}

.main-navigation ul ul ul {
    top: 0;
    left: 100%;
    margin-left: 5px;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li {
    margin: 0;
    width: 100%;
}

.main-navigation ul ul a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333333;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.main-navigation ul ul a:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
    padding-left: 2rem;
}

.main-navigation ul ul a::after {
    display: none;
}

.main-navigation ul ul li:last-child a {
    border-bottom: none;
}

/* Dropdown Arrow Indicator */
.main-navigation .menu-item-has-children > a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #666666;
    margin-left: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.main-navigation .menu-item-has-children:hover > a::before {
    transform: rotate(180deg);
}

/* Sub-menu Arrow Indicator */
.main-navigation ul ul .menu-item-has-children > a::before {
    border-left: 4px solid #666666;
    border-right: none;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    float: right;
    margin-left: 0;
    margin-top: 2px;
    transform: none;
}

.main-navigation ul ul .menu-item-has-children:hover > a::before {
    transform: none;
}

/* Focus and Keyboard Navigation States */
.main-navigation .menu-item-has-children.focus-within > ul,
.main-navigation .menu-item-has-children:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .focus > a,
.main-navigation a:focus {
    color: #e74c3c;
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

/* Mobile Dropdown States */
.main-navigation .menu-item-has-children.mobile-open > ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: #f8f9fa;
    border-radius: 0;
    padding: 0;
    margin-top: 0.5rem;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333333;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-color, #e74c3c) !important;
    background-image: none !important;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: #ffffff;
    color: #e74c3c;
    border-color: #ffffff;
}

.btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #e74c3c;
}

.btn-donate {
    background-color: #f39c12;
    color: #ffffff;
    border-color: #f39c12;
}

.btn-donate:hover {
    background-color: #e67e22;
    border-color: #e67e22;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-icon {
    width: 60px;
    height: 60px;
    background-color: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.card-content {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

/* Impact Statistics */
.stats-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #e74c3c;
    display: block;
}

.stat-label {
    font-size: 1.125rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

/* Testimonials */
.testimonial {
    text-align: center;
    padding: 2rem;
}

.testimonial-content {
    font-size: 1.125rem;
    font-style: italic;
    color: #555555;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    color: #2c3e50;
}

.testimonial-role {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg-color, #2c3e50);
    color: var(--footer-text-color, #ecf0f1);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--footer-heading-color, #ecf0f1);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--footer-text-color, #ecf0f1);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--footer-link-color, #bdc3c7);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--footer-link-hover-color, #e74c3c);
}

/* Contact Info Specific Styles */
.contact-info p {
    color: var(--footer-text-color, #ecf0f1);
    margin-bottom: 0.75rem;
}

.contact-info strong {
    color: var(--footer-heading-color, #ecf0f1);
    font-weight: 600;
}

.contact-info a {
    color: var(--footer-link-color, #bdc3c7);
}

.contact-info a:hover {
    color: var(--footer-link-hover-color, #e74c3c);
}

/* Registration Numbers */
.registration-numbers {
    margin: 1rem 0;
    font-size: 0.9rem;
}

.registration-numbers p {
    margin: 0.25rem 0;
    color: var(--footer-text-color, #bdc3c7);
    font-weight: 500;
}

.registration-numbers .charity-number,
.registration-numbers .company-number {
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid var(--footer-border-color, #34495e);
    padding-top: 1rem;
    text-align: center;
    color: var(--footer-text-color, #bdc3c7);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.footer-bottom-links a {
    color: var(--footer-link-color, #bdc3c7);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--footer-link-hover-color, #e74c3c);
}

/* Separate footer bottom section */
.site-footer-bottom {
    background-color: var(--footer-bg-color, #2c3e50);
    color: var(--footer-text-color, #ecf0f1);
    width: 100%;
}

.site-footer-bottom .footer-bottom {
    border-top: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 1rem;
    }
    
    .main-navigation.active ul {
        display: flex;
    }
    
    .main-navigation li {
        margin: 0.5rem 0;
    }
    
    /* Mobile Dropdown Menus */
    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        background-color: #f8f9fa;
        border-radius: 0;
        padding: 0;
        margin: 0.5rem 0 0 1rem;
        min-width: auto;
        opacity: 0;
        visibility: hidden;
        transform: none;
        transition: all 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }
    
    .main-navigation .menu-item-has-children.mobile-open > ul {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
    }
    
    .main-navigation ul ul li {
        margin: 0.25rem 0;
    }
    
    .main-navigation ul ul a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .main-navigation ul ul a:hover {
        padding-left: 1.5rem;
    }
    
    /* Arrow indicators for mobile */
    .main-navigation .menu-item-has-children > a::before {
        float: right;
        margin-left: auto;
        margin-top: 0;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 4px solid #666666;
        border-bottom: none;
        transition: transform 0.3s ease;
    }
    
    .main-navigation .menu-item-has-children.mobile-open > a::before {
        transform: rotate(180deg);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links ul {
        justify-content: center;
        gap: 1rem;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .hero-cta {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Funding Partners Section */
.funding-partners-section {
    padding: 3rem 0 2rem;
    border-top: 1px solid #e0e0e0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.funding-partners-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.funding-partners-title {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.funding-partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.funding-partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    transition: all 0.3s ease;
    opacity: 0.85;
}

.funding-partner-logo:hover {
    opacity: 1;
    transform: translateY(-3px);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.funding-partner-logo img {
    max-height: 90px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.funding-partner-logo a {
    display: block;
    line-height: 0;
}

/* Automatic grid sizing based on number of logos */
.funding-partners-grid[data-count="1"] .funding-partner-logo img {
    max-height: 120px;
    max-width: 300px;
}

.funding-partners-grid[data-count="2"] .funding-partner-logo {
    flex: 0 1 calc(50% - 0.75rem);
}

.funding-partners-grid[data-count="2"] .funding-partner-logo img {
    max-height: 100px;
    max-width: 250px;
}

.funding-partners-grid[data-count="3"] .funding-partner-logo {
    flex: 0 1 calc(33.333% - 1rem);
}

.funding-partners-grid[data-count="4"] .funding-partner-logo {
    flex: 0 1 calc(25% - 1.125rem);
}

.funding-partners-grid[data-count="5"] .funding-partner-logo,
.funding-partners-grid[data-count="6"] .funding-partner-logo {
    flex: 0 1 calc(20% - 1.2rem);
}

.funding-partners-grid[data-count="5"] .funding-partner-logo img,
.funding-partners-grid[data-count="6"] .funding-partner-logo img {
    max-height: 70px;
    max-width: 160px;
}

.funding-partners-grid[data-count="7"] .funding-partner-logo,
.funding-partners-grid[data-count="8"] .funding-partner-logo,
.funding-partners-grid[data-count="9"] .funding-partner-logo {
    flex: 0 1 calc(16.666% - 1.25rem);
}

.funding-partners-grid[data-count="7"] .funding-partner-logo img,
.funding-partners-grid[data-count="8"] .funding-partner-logo img,
.funding-partners-grid[data-count="9"] .funding-partner-logo img {
    max-height: 60px;
    max-width: 140px;
}

.funding-partners-grid[data-count="10"] .funding-partner-logo,
.funding-partners-grid[data-count="11"] .funding-partner-logo,
.funding-partners-grid[data-count="12"] .funding-partner-logo {
    flex: 0 1 calc(14.285% - 1.29rem);
}

.funding-partners-grid[data-count="10"] .funding-partner-logo img,
.funding-partners-grid[data-count="11"] .funding-partner-logo img,
.funding-partners-grid[data-count="12"] .funding-partner-logo img {
    max-height: 55px;
    max-width: 120px;
}

/* Responsive adjustments for funding partners */
@media (max-width: 768px) {
    .funding-partners-section .container {
        padding: 0 20px;
    }
    
    .funding-partners-grid {
        gap: 1.5rem;
    }
    
    .funding-partners-grid[data-count="2"] .funding-partner-logo,
    .funding-partners-grid[data-count="3"] .funding-partner-logo,
    .funding-partners-grid[data-count="4"] .funding-partner-logo {
        flex: 0 1 calc(50% - 0.75rem);
    }
    
    .funding-partners-grid[data-count="5"] .funding-partner-logo,
    .funding-partners-grid[data-count="6"] .funding-partner-logo,
    .funding-partners-grid[data-count="7"] .funding-partner-logo,
    .funding-partners-grid[data-count="8"] .funding-partner-logo,
    .funding-partners-grid[data-count="9"] .funding-partner-logo,
    .funding-partners-grid[data-count="10"] .funding-partner-logo,
    .funding-partners-grid[data-count="11"] .funding-partner-logo,
    .funding-partners-grid[data-count="12"] .funding-partner-logo {
        flex: 0 1 calc(33.333% - 1rem);
    }
}

@media (max-width: 480px) {
    .funding-partners-section {
        padding: 2rem 0 1.5rem;
    }
    
    .funding-partners-section .container {
        padding: 0 15px;
    }
    
    .funding-partners-title {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .funding-partners-grid {
        gap: 1rem;
    }
    
    .funding-partners-grid .funding-partner-logo {
        flex: 0 1 calc(50% - 0.5rem);
    }
    
    .funding-partners-grid .funding-partner-logo img {
        max-height: 50px;
        max-width: 120px;
    }
}