/*
Theme Name: SSEWT Theme Redesign
Theme URI: https://ssewt.org
Author: SSEWT Team
Author URI: https://ssewt.org
Description: Custom, lightweight, and responsive WordPress theme for Sir Syed Educational and Welfare Trust matching the new brand identity.
Version: 2.0.0
Text Domain: ssewt
*/

/* -----------------------------------------------------------------------------
 * 1. Variables & Reset
 * -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #D32F2F; /* Red */
    --secondary-color: #1B5E20; /* Dark Green */
    --accent-color: #2E7D32; /* Lighter Green */
    --bg-white: #ffffff;
    --bg-light: #F9FAFB; /* Off-white for sections */
    --text-color: #374151;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --font-family: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Standardize slightly rounded images */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

ul {
    list-style: none;
}

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

/* -----------------------------------------------------------------------------
 * 2. Header & Navigation
 * -------------------------------------------------------------------------- */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.logo-main {
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1.2;
}

.logo-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--primary-color);
}

.header-cta .btn {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 12px 28px;
    border-radius: 30px; /* Pill shape from mockup */
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
}

.header-cta .btn:hover {
    background: #B71C1C;
    color: var(--bg-white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--secondary-color);
    cursor: pointer;
}

/* -----------------------------------------------------------------------------
 * 3. Buttons & Utilities
 * -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

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

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

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

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

/* -----------------------------------------------------------------------------
 * 4. Hero Section (Home)
 * -------------------------------------------------------------------------- */
.hero-section {
    padding: 80px 0;
    background: var(--bg-light);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content .subtitle {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
}

.hero-image-inner {
    border-radius: 20px 20px 20px 100px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    background: #E8F5E9; /* Light Green Tint */
    border-radius: 20px 20px 20px 100px;
    z-index: 1;
}

.hero-image img {
    border-radius: 0;
    width: 100%;
}

/* -----------------------------------------------------------------------------
 * 5. Stats Section
 * -------------------------------------------------------------------------- */
.stats-section {
    padding: 60px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 30px;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--text-color);
    font-weight: 500;
}

/* -----------------------------------------------------------------------------
 * 6. Cards Grid (Home & Impact)
 * -------------------------------------------------------------------------- */
.activities-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.activity-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.activity-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 30px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-tag {
    background: #FFEBEE;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-title {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-footer::before {
    content: '•';
    color: var(--primary-color);
}

.view-all-btn {
    text-align: center;
    margin-top: 50px;
}

/* -----------------------------------------------------------------------------
 * 7. Page Headers (About, Impact, Donation)
 * -------------------------------------------------------------------------- */
.page-banner {
    background: var(--secondary-color);
    padding: 80px 0;
    text-align: center;
    color: var(--bg-white);
}

.page-banner h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-banner p {
    font-size: 1.1rem;
    color: #A5D6A7;
    max-width: 800px;
    margin: 0 auto;
}

/* -----------------------------------------------------------------------------
 * 8. About Us
 * -------------------------------------------------------------------------- */
.about-mission {
    padding: 100px 0;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-content .subtitle {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.mission-content h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 800;
}

.mission-content > p {
    margin-bottom: 25px;
    color: var(--text-color);
    font-size: 1.05rem;
}

.mission-list {
    margin-top: 30px;
}

.mission-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.mission-list .check {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.mission-list strong {
    color: var(--secondary-color);
}

.mission-image {
    background: #E8F5E9;
    border-radius: 12px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-weight: 600;
    overflow: hidden;
}

.team-section {
    padding: 100px 0;
    background: var(--bg-light);
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    background: var(--bg-white);
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.member-avatar {
    width: 90px;
    height: 90px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

.member-name {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.member-role {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

/* -----------------------------------------------------------------------------
 * 9. Donation Page Widget
 * -------------------------------------------------------------------------- */
.donation-page-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.donation-widget {
    max-width: 650px;
    margin: -140px auto 0; /* Pull up into the banner */
    background: var(--bg-white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}

.widget-title {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 1.2rem;
    font-weight: 700;
}

.donation-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.amount-btn {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 18px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.amount-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.amount-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #FFEBEE;
}

.bank-details-box {
    background: #F9FAFB;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
}

.bank-details-box h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.detail-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.detail-row:last-of-type {
    border-bottom: none;
}

.detail-label {
    width: 40%;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    width: 60%;
    color: var(--secondary-color);
    font-weight: 700;
    text-align: right;
}

.bank-note {
    margin-top: 25px;
    padding: 15px;
    background: #FFEBEE;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* -----------------------------------------------------------------------------
 * 10. Footer
 * -------------------------------------------------------------------------- */
.site-footer {
    background: var(--secondary-color);
    color: var(--bg-white);
    padding: 80px 0 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    background: var(--primary-color);
}

.footer-desc {
    color: #A5D6A7;
    font-size: 0.95rem;
    max-width: 400px;
}

.footer-widget-title {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #A5D6A7;
    font-weight: 500;
}

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

.footer-contact p {
    color: #A5D6A7;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.site-info {
    background: #144317; /* Even darker green */
    padding: 25px 0;
    text-align: center;
    color: #81C784;
    font-size: 0.9rem;
}

/* -----------------------------------------------------------------------------
 * 11. Responsive
 * -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-grid, .mission-grid { grid-template-columns: 1fr; gap: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-widgets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-navigation, .header-cta { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .cards-grid, .team-grid, .footer-widgets { grid-template-columns: 1fr; }
    .donation-amounts { grid-template-columns: repeat(2, 1fr); }
    .donation-widget { padding: 30px; margin-top: 30px; }
    .detail-row { flex-direction: column; }
    .detail-label, .detail-value { width: 100%; text-align: left; }
    .detail-value { margin-top: 5px; }
}
