/*
Theme Name: Karuna Charity
Theme URI: http://yourwebsite.com
Author: Your Name
Author URI: http://yourwebsite.com
Description: A charity theme for Karuna organization
Version: 1.0.0
Text Domain: karuna
*/

/* Import the main styles from assets */
/*@import url('assets/css/style.css');*/

:root {
    --primary: #2c7873;
    --secondary: #6fb98f;
    --accent: #ff9a3c;
    --light: #f8f9fa;
    --dark: #343a40;
    --text: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ... rest of your CSS from the style.css file ... */

/* PDF Reports Page Template Styles */
.pdf-reports-article {
    max-width: 1200px;
    margin: 0 auto;
}

.pdf-reports-header {
    margin: 50px auto 10px auto !important;
    text-align: center;
    background-color: transparent;
    padding: 10px 0;
    box-shadow: none !important;
    position: static !important;
}

.pdf-reports-title {
    text-align: center;
    width: 100%;
    margin: 0 !important;
    color: #2c5aa0 !important;
    font-weight: 600 !important;
    font-size: 2.5rem;
}

.pdf-reports-content {
    margin-top: 30px;
    padding: 0 20px;
}

/* Responsive styles */
@media (max-width: 1240px) {
    .pdf-reports-article {
        max-width: 95%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .pdf-reports-header {
        margin: 30px auto 10px auto !important;
        padding: 5px 0;
    }

    .pdf-reports-title {
        font-size: 2rem;
        padding: 0 15px;
    }

    .pdf-reports-content {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .pdf-reports-title {
        font-size: 1.7rem;
    }
}

.btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://source.unsplash.com/random/1200x600/?charity') no-repeat center center/cover;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* About Section */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* Programs Section */
.programs {
    background-color: var(--light);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-image {
    height: 200px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-content {
    padding: 1.5rem;
}

.program-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.program-content p {
    color: #666;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--secondary);
    border-radius: 4px;
}

.program-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

/* Donation Section */
.donation {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.donation h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.donation p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.donation-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.donation-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

.amount-option {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.amount-option:hover, .amount-option.active {
    background-color: var(--accent);
}

/* Events Section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.event-date {
    background-color: var(--primary);
    color: white;
    padding: 1rem;
    text-align: center;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
}

.event-content {
    padding: 1.5rem;
}

.event-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.event-content p {
    color: #666;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    background-color: var(--light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-item i {
    margin-right: 10px;
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--accent);
}

/* Newsletter form styling */
.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.newsletter-form button {
    padding: 10px 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #005a87;
}

.newsletter-form button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#newsletter-message {
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

#newsletter-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#newsletter-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }

    nav ul {
        margin: 1rem 0;
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .about-content, .contact-container {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 200px;
    }
    
    /* ============================================
   NAVBAR HEIGHT FIX FOR NON-HOMEPAGE PAGES
   ============================================ */

    /* Fix header/navbar height on non-homepage pages */
    body:not(.home) header,
    body.page:not(.home) header,
    body.single:not(.home) header,
    body.archive:not(.home) header,
    body.blog:not(.home) header {
        height: auto !important;
        min-height: 80px !important;
        padding: 0.8rem 0 !important;
    }
    
    /* Ensure header container maintains proper height */
    body:not(.home) .header-container {
        min-height: 60px !important;
        padding: 10px 0 !important;
    }
    
    /* Fix logo sizing on non-homepage */
    body:not(.home) .logo img {
        max-height: 45px !important;
    }
    
    /* Fix navigation alignment */
    body:not(.home) nav ul {
        align-items: center;
    }
    
    /* If homepage has special styling, preserve it */
    .home header {
        /* Keep homepage header styling as is */
        padding: 1rem 0;
    }
    
    /* Fix for admin bar compatibility */
    .admin-bar header {
        top: 32px;
    }
    
    /* Mobile responsive adjustments */
    @media (max-width: 768px) {
        body:not(.home) header {
            min-height: 70px !important;
            padding: 0.5rem 0 !important;
        }
        
        body:not(.home) .header-container {
            flex-direction: row !important;
            min-height: 50px !important;
        }
        
        body:not(.home) .logo img {
            max-height: 40px !important;
        }
    }
    
    /* ============================================
       FIX HEADER HEIGHT: HOME vs OTHER PAGES
       ============================================ */
    
    /* Pages WITHOUT .home class (all non-homepage pages) */
    body:not(.home) header {
        padding: 8px 0 !important;
        min-height: 70px !important;
        height: auto !important;
    }
    
    /* Reduce header container height on non-homepage */
    body:not(.home) .header-container {
        min-height: 55px !important;
        padding: 5px 0 !important;
    }
    
    /* Reduce logo size on non-homepage pages */
    body:not(.home) .logo img {
        max-height: 45px !important;
        width: auto !important;
    }
    
    /* Adjust navigation spacing on non-homepage */
    body:not(.home) nav ul li {
        margin-left: 1.2rem !important;
    }
    
    /* Fix for specific page types */
    body.page:not(.home) header,
    body.single:not(.home) header,
    body.archive:not(.home) header {
        padding: 8px 0 !important;
    }
    
    /* Homepage keeps original styling */
    .home header {
        padding: 1rem 0; /* Original homepage padding */
    }
    
    /* Mobile responsive fixes */
    @media (max-width: 768px) {
        /* Non-homepage mobile */
        body:not(.home) header {
            padding: 5px 0 !important;
            min-height: 60px !important;
        }
        
        body:not(.home) .header-container {
            min-height: 50px !important;
            padding: 3px 0 !important;
        }
        
        body:not(.home) .logo img {
            max-height: 40px !important;
        }
        
        /* Homepage mobile */
        .home header {
            padding: 0.8rem 0 !important;
        }
    }
    
}