/* Additional Modern Page Styles for NAMS EDC */

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--forest-green) 0%, #033526 100%);
    padding: 7rem 0 4rem;
    /* Reduced padding from 10rem 0 6rem */
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-green);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: fadeUp 0.6s ease forwards;
}

.hero-badge i {
    font-size: 1.1rem;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(5, 150, 105, 0.2) 0%, transparent 60%),
        url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    z-index: -1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}


.page-hero h1 {
    color: var(--white);
    font-size: 2.8rem;
    /* Reduced from 3.5rem */
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    animation: fadeUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.page-hero h1 .highlight {
    color: var(--light-green);
}

.page-hero p {
    font-size: 1.25rem;
    color: var(--gray-300);
    max-width: 800px;
    margin: 0 auto;
    animation: fadeUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

/* Content Section Layouts */
section:not(.page-hero) {
    padding: 6rem 0;
    background: var(--white);
}

section:not(.page-hero):nth-of-type(even) {
    background: var(--gray-50);
}

/* Generalized Internal Page Typography */
section h2:not(.page-hero h2, .club-detail h2) {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--forest-green);
}

section h2:not(.page-hero h2, .club-detail h2)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--gray-500);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-inline: auto;
    line-height: 1.8;
}

.content-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

.content-text p {
    margin-bottom: 2rem;
    color: var(--gray-600);
}

.content-text p:first-of-type {
    font-size: 1.3rem;
    color: var(--gray-800);
    font-weight: 500;
    line-height: 1.7;
}

/* Vision & Mission Detail */
.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.vm-card {
    background: var(--white);
    padding: 4rem 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary-green);
}

.vm-card h3 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

/* Dynamic Cards / Grids */
.values-grid,
.features-grid,
.revenue-sources,
.revenue-grid,
.eligibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.5rem;
}

.value-item,
.feature-card,
.revenue-source,
.revenue-item,
.eligibility-item {
    background: var(--white);
    padding: 2rem 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--transition);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.value-item:hover,
.feature-card:hover,
.revenue-source:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-green);
}

.value-icon,
.feature-icon,
.source-icon,
.revenue-icon,
.check-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    color: var(--primary-green);
}

.eligibility-item .check-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.team-member {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s var(--transition);
}

.team-member:hover {
    transform: translateY(-8px);
}

.member-photo {
    width: 100%;
    height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

/* Steps Pathway */
.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    margin-top: 4rem;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--gray-200);
    z-index: 1;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.step:hover .step-number {
    background: var(--primary-green);
    color: var(--white);
    transform: scale(1.1);
}

.step h4 {
    color: var(--forest-green);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.step p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .steps-container {
        flex-direction: column;
        gap: 3rem;
    }

    .steps-container::before {
        display: none;
    }

    .step {
        text-align: left;
        display: flex;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .step-number {
        margin: 0;
        flex-shrink: 0;
    }
}

/* Forms & Inputs */
.application-form,
.donation-form {
    max-width: 850px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-top: 5px solid var(--primary-green);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gray-800);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-row-3 {
    display: flex;
    gap: 1.5rem;
}

.form-row-3 .form-group {
    flex: 1;
}

@media (max-width: 768px) {

    .form-row,
    .form-row-3 {
        flex-direction: column;
        gap: 0;
    }
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

/* Specific Club Design */
section.club-section {
    padding: 0;
}

.club-detail {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1150px;
    margin: 2.5rem auto;
    background: var(--white);
    padding: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    min-height: 220px;
}

.club-image-left {
    height: 100%;
    width: 220px;
    align-self: stretch;
}

.club-image-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.club-detail:hover .club-image-left img {
    transform: scale(1.05);
}

.club-content {
    padding: 1.5rem 2rem 1.5rem 0;
}

.club-content h2 {
    text-align: left;
    margin-bottom: 0.5rem;
    padding-bottom: 0;
}

.club-content h2::after {
    display: none;
}

.club-content h3 {
    color: var(--primary-green);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.club-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.club-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.info-item {
    font-size: 0.95rem;
    color: var(--gray-700);
}

.info-item strong {
    color: var(--forest-green);
    margin-right: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .club-detail {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }

    .club-media {
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .application-form,
    .donation-form {
        padding: 2rem;
    }

    .vm-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: all 0.3s var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.contact-icon {
    font-size: 2.2rem;
    color: var(--primary-green);
    margin-bottom: 1.25rem;
}

.contact-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--forest-green);
}

.contact-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-top: 5px solid var(--primary-green);
}

.contact-form-wrapper h2 {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.map-wrapper {
    height: 100%;
}

.map-wrapper h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--forest-green);
    display: none;
    /* Hide title to keep it cleaner as requested */
}

.map-placeholder {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
    min-height: 450px;
    border: 1px solid var(--gray-100);
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .map-placeholder {
        height: 350px;
    }
}

/* Donation Page Styles */
.amount-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.amount-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.8rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s var(--transition);
}

.amount-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.amount-btn.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.donation-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.bank-details-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.bank-details-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--primary-green));
}

.bank-table {
    width: 100%;
    border-collapse: collapse;
}

.bank-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-50);
}

.bank-table td:first-child {
    width: 40%;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.bank-table td:last-child {
    font-weight: 700;
    color: var(--forest-green);
}

.bank-note {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--light-green);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--forest-green);
}

.impact-list {
    margin-top: 3rem;
}

.impact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.impact-icon {
    width: 40px;
    height: 40px;
    background: var(--light-green);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.impact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--forest-green);
}

.impact-text p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
}

@media (max-width: 992px) {
    .donation-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Legal & Policy Pages */
.legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 120px;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.legal-sidebar h4 {
    color: var(--forest-green);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-nav {
    list-style: none;
}

.legal-nav li {
    margin-bottom: 0.75rem;
}

.legal-nav a {
    color: var(--gray-500);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
}

.legal-nav a:hover,
.legal-nav a.active {
    color: var(--primary-green);
    padding-left: 5px;
}

.legal-content {
    background: var(--white);
    padding: 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
}

.legal-section {
    margin-bottom: 4rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-50);
}

.legal-section-header i {
    font-size: 1.75rem;
    color: var(--primary-green);
    background: var(--light-green);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.legal-section h2 {
    text-align: left !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    font-size: 1.75rem !important;
}

.legal-section h2::after {
    display: none !important;
}

.legal-section ul {
    margin: 1.5rem 0 1.5rem 1.5rem;
}

.legal-section ul li {
    margin-bottom: 0.75rem;
    color: var(--gray-600);
    position: relative;
    list-style: none;
}

.legal-section ul li::before {
    content: '→';
    position: absolute;
    left: -1.5rem;
    color: var(--primary-green);
    font-weight: 700;
}

@media (max-width: 992px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .legal-content {
        padding: 2.5rem 1.5rem;
    }
}