/* Base Styles */
:root {
    --primary-color: #1A2A4A; /* Durbanville High School navy blue */
    --secondary-color: #D4AF37; /* Durbanville High School gold */
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #1A2A4A;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.subheading {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--light-text);
}

/* Override subheading color inside normal sections */
.section .subheading {
    color: var(--text-color);
}

.section {
    padding: 5rem 0;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: #0f1a30;
    color: var(--light-text);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

.btn-secondary:hover {
    background-color: #c09c30;
    color: var(--dark-bg);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo-future {
    color: var(--primary-color);
}

.logo-fund {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;           /* Prevent wrapping of nav items */
    overflow-x: auto;            /* Optional: allows scrolling if needed */
}

.nav-links li {
    margin-left: 1rem;
}

.nav-links a {
    font-weight: 600;
    white-space: nowrap;         /* Prevent line break within a single nav item */
}

.nav-links a.active {
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(26, 42, 74, 0.8), rgba(26, 42, 74, 0.8)), url('../assets/durbanville_vineyard.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    padding: 10rem 0 6rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-text {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.hero-slogan {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.icon-container {
    margin-bottom: 1rem;
}

.icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-color);
    font-size: 2rem;
    transition: var(--transition);
}

.feature:hover .icon {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Steps Section */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Card Styles */
.card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.9rem;
    color: #666;
}

/* Benefits Section */
.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.benefit-list {
    list-style: none;
    padding-left: 0;
}

.benefit-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

/* Add tick mark before each benefit item */
.benefit-list li::before {
    content: "\f00c"; /* Font Awesome check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    margin-right: 0.75rem;
}


/* Icon List */
.icon-list {
    margin-top: 1rem;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.icon-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Grid Layouts */
.grid-two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-weight: 700;
    color: var(--primary-color);
}

.testimonial-title {
    font-size: 0.9rem;
    color: #666;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

/* Quote Container */
.quote-container {
    max-width: 800px;
    margin: 3rem auto;
    text-align: center;
}

blockquote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

cite {
    font-style: normal;
    font-weight: 600;
}

/* Impact Section */
.impact {
    background-image: linear-gradient(rgba(26, 42, 74, 0.9), rgba(26, 42, 74, 0.9)), url('../assets/durbanville_classroom.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
}

.impact h2, .impact .subheading {
    color: var(--light-text);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 4rem 0 2rem;
}

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

.footer-heading {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--light-text);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Scenario Tabs */
.scenario-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.scenario-tab {
    padding: 0.8rem 1.5rem;
    background-color: #f0f0f0;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.scenario-tab.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.scenario-content {
    display: none;
}

.scenario-content.active {
    display: block;
}

/* Chart Container */
.chart-container {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Data Table */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th, .data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--light-bg);
    font-weight: 700;
    color: var(--primary-color);
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

/* Donation Form */
.donation-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

.donation-types {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.donation-type {
    flex: 1;
    min-width: 200px;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.donation-type.active {
    border-color: var(--primary-color);
    background-color: rgba(26, 42, 74, 0.05);
}

.donation-type-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.donation-type-description {
    font-size: 0.9rem;
    color: #666;
}

.donation-amounts {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.donation-amount {
    flex: 1;
    min-width: 100px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
}

.donation-amount.active {
    border-color: var(--primary-color);
    background-color: rgba(26, 42, 74, 0.05);
}

.custom-amount {
    flex: 1;
    min-width: 150px;
}

.payment-methods {
    margin-top: 2rem;
}

.payment-method {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method.active {
    border-color: var(--primary-color);
    background-color: rgba(26, 42, 74, 0.05);
}

.payment-method-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.payment-method-title {
    display: flex;
    align-items: center;
    font-weight: 700;
}

.payment-method-icon {
    margin-right: 0.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.payment-method-content {
    display: none;
}

.payment-method.active .payment-method-content {
    display: block;
}

.payment-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
}

.payment-info-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.payment-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.payment-info-total {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.tax-benefit {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Legacy Giving Page */
.legacy-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.legacy-option {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    transition: var(--transition);
}

.legacy-option:hover {
    transform: translateY(-5px);
}

.legacy-option-title {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.legacy-option-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Management Page */
.management-structure {
    max-width: 800px;
    margin: 3rem auto;
}

.management-level {
    margin-bottom: 3rem;
}

.management-level-title {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.management-level-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color);
}

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

.management-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    text-align: center;
}

.management-card-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.management-card-members {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.management-card-description {
    font-size: 0.9rem;
}

/* Animations */
.animate {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-text {
        font-size: 2.8rem;
    }
    
    .hero-slogan {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        box-shadow: var(--box-shadow);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .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);
    }
    
    .hero-text {
        font-size: 2.2rem;
    }
    
    .hero-slogan {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .features, .steps, .benefits, .stats {
        grid-template-columns: 1fr;
    }
    
    .donation-types, .donation-amounts {
        flex-direction: column;
    }
    
    .donation-type, .donation-amount {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 8rem 0 4rem;
    }
    
    .hero-text {
        font-size: 1.8rem;
    }
    
    .hero-slogan {
        font-size: 1rem;
    }
    
    .scenario-tabs {
        flex-direction: column;
    }
    
    .scenario-tab {
        width: 100%;
        text-align: center;
    }
}
