/* 
   CJ PRENTISS Education Resource Center
   Main Stylesheet
   
   Table of Contents:
   1. Global Styles
   2. Typography
   3. Navigation
   4. Buttons
   5. Header & Footer
   6. Hero Section
   7. Section Styles
   8. Cards & Containers
   9. Form Elements
   10. Utilities
   11. Responsive Adjustments
*/

/* ===================================
   1. Global Styles
====================================== */
:root {
    /* Primary Color Palette */
    --primary: #dc3545;      /* Red - primary brand color */
    --primary-dark: #b02a37; /* Darker red for hover states */
    --secondary: #0d6efd;    /* Blue - secondary accent */
    --dark: #212529;         /* Dark gray for text */
    --light: #f8f9fa;        /* Light gray for backgrounds */
    --white: #ffffff;
    --black: #000000;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    
    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, var(--primary), #f86a54);
    --gradient-secondary: linear-gradient(135deg, var(--secondary), #54c7f8);
    --gradient-light: linear-gradient(135deg, var(--light), #ffffff);
    
    /* Typography */
    --font-family-base: 'Roboto', sans-serif;
    --font-family-headings: 'Gloock', serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 1.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   2. Typography
====================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.25rem;
    font-style: italic;
}

.blockquote-footer {
    color: var(--gray);
}

/* Quote Box Styling - Matches the Sample */
.quote-container {
    max-width: 800px;
    margin: 3rem auto;
}

.quote-box {
    border: 2px solid white;
    position: relative;
    background-color: var(--primary);
    color: white;
    border-radius: 0;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.quote-marks {
    font-size: 3rem;
    line-height: 1;
    color: white;
}

.quote-marks.top-start {
    top: 5px;
    left: 10px;
}

.quote-marks.bottom-end {
    bottom: 5px;
    right: 10px;
}

.quote-text {
    font-size: 1.5rem;
    line-height: 1.6;
    font-style: italic;
    padding: 0 1.5rem;
}

.quote-author {
    font-weight: 700;
    font-size: 1.2rem;
}

/* ===================================
   3. Navigation
====================================== */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
}

.brand-text {
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.1;
}

.brand-subtext {
    font-size: 0.75rem;
    font-weight: 400;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.dropdown-menu {
    border-radius: 0.25rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--primary);
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

/* ===================================
   4. Buttons
====================================== */
.btn {
    font-weight: 500;
    border-radius: 0.25rem;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-image: var(--gradient-primary);
    border-color: var(--primary);
    transition: all 0.3s ease;
}

.btn-primary:hover, 
.btn-primary:focus {
    background-image: linear-gradient(135deg, var(--primary-dark), #e05e4b);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

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

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

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

/* ===================================
   5. Header & Footer
====================================== */
/* Page Header */
.page-header {
    padding: 5rem 0 3rem;
    background-image: var(--gradient-primary);
    position: relative;
}

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

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* ===================================
   6. Hero Section
====================================== */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-image.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--white);
    padding: 6rem 0;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* ===================================
   7. Section Styles
====================================== */
section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--light) !important;
}

.bg-primary {
    background-image: var(--gradient-primary) !important;
}

/* Impact Section */
.impact-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.impact-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.impact-cta {
    border-radius: 0.5rem;
}

/* Testimonials */
.testimonial-item {
    padding: 2rem 1rem;
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
}

.carousel-indicators {
    bottom: -2.5rem;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--gray);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.carousel-control-prev, 
.carousel-control-next {
    color: var(--dark);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
}

/* ===================================
   8. Cards & Containers
====================================== */
.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
    background-image: var(--gradient-light);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.program-card, 
.values-card {
    text-align: center;
    padding: 0;
    overflow: hidden;
}

.program-card .card-body {
    padding: 1.5rem;
}

.program-image {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
    width: 100%;
}

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

.program-icon, 
.value-icon, 
.vision-icon, 
.contact-icon,
.impact-icon,
.opportunity-icon,
.benefit-icon,
.requirement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    width: 60px;
    height: 60px;
    background-image: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

/* Icon specific styling */
.opportunity-icon i, 
.benefit-icon i, 
.requirement-icon i,
.contact-icon i,
.impact-icon i,
.contact-item .fa-clock,
.contact-item .fa-map-marker-alt,
.contact-item .fa-phone,
.contact-item .fa-envelope,
.opportunity-details i,
.requirement-icon i {
    color: var(--white) !important;
}

.about-image-container,
.program-image-container {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.program-image-container img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.program-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Program Calendar */
.event-date {
    min-width: 70px;
}

.event-month {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 0.25rem 0.25rem 0 0;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 0 0 0.25rem 0.25rem;
}

/* Success Stories */
.success-story-card {
    position: relative;
}

.success-quote {
    position: absolute;
    top: 1rem;
    left: 1rem;
    opacity: 0.2;
}

/* Bio Section */
.bio-photo {
    border: 5px solid rgba(220, 53, 69, 0.1);
}

/* Donation Cards */
.impact-card {
    transition: transform 0.3s ease;
}

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

/* ===================================
   9. Form Elements
====================================== */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: rgba(220, 53, 69, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.btn-check:checked + .btn-outline-primary {
    background-color: var(--primary);
    color: white;
}

.contact-form-container, 
.donation-form-container {
    border-radius: 0.5rem;
}

/* Map Placeholder */
.map-placeholder {
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ===================================
   10. Utilities
====================================== */
.rounded {
    border-radius: 0.5rem !important;
}

.shadow-sm {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
}

.shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* ===================================
   11. Responsive Adjustments
====================================== */

/* Page Section Improvements */
.benefit-icon, .requirement-icon, .vision-icon {
    color: var(--primary);
    min-width: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.benefit-item, .requirements-list li > div, .vision-pillar {
    display: flex !important;
    align-items: flex-start !important;
}

.vision-pillar > div:last-child,
.benefit-content, 
.requirements-list li > div > div:last-child {
    flex: 1;
}

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

@media (max-width: 767.98px) {
    .benefit-icon, .requirement-icon, .vision-icon {
        min-width: 30px;
        font-size: 1.25rem !important;
        margin-top: 0.25rem;
    }
    
    .vision-icon i {
        font-size: 1.25rem !important;
    }
}
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--white);
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .min-vh-75 {
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .impact-number {
        font-size: 2rem;
    }
    
    .event-date {
        min-width: 60px;
    }
    
    /* Fix for circular icons in "Building a Foundation for Success", "Volunteer Benefits", and "Volunteer Requirements" sections */
    .benefit-icon,
    .requirement-icon {
        min-width: 60px !important;
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0 !important;
        margin-right: 15px !important;
        margin-bottom: 0 !important;
    }
    
    /* Keep icon size consistent */
    .benefit-icon i,
    .requirement-icon i {
        font-size: 1.25rem !important;
    }
    
    /* Ensure proper alignment for icon and text */
    .benefit-item,
    .foundation-item,
    .d-flex.align-items-center {
        align-items: flex-start !important;
    }
}

@media (max-width: 575.98px) {
    h1, .h1 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
}

/* ===================================
   Quote Box Styles
====================================== */
.quote-box {
    background: linear-gradient(135deg, #000000, #dc3545);
    color: white;
    padding: 4rem 2rem;
    position: relative;
    margin: 50px 0;
    border-radius: 0;
}

.quote-box::before {
    content: '"';
    font-family: 'Gloock', serif;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 1rem;
    left: 2rem;
    line-height: 1;
}

.quote-box::after {
    content: '"';
    font-family: 'Gloock', serif;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    line-height: 1;
}

.quote-text {
    font-family: 'Gloock', serif;
    font-size: 2.5rem;
    font-style: italic;
    line-height: 1.4;
    margin: 0 4rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.quote-attribution {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    text-align: center;
    margin-top: 2rem;
    color: white;
    font-weight: 300;
}

@media (max-width: 768px) {
    .quote-box {
        padding: 3rem 1rem;
        margin: 30px 0;
    }
    
    .quote-box::before,
    .quote-box::after {
        font-size: 4rem;
    }
    
    .quote-box::before {
        top: 0.5rem;
        left: 1rem;
    }
    
    .quote-box::after {
        bottom: 0.5rem;
        right: 1rem;
    }
    
    .quote-text {
        font-size: 1.8rem;
        margin: 0 2rem;
    }
    
    .quote-attribution {
        font-size: 1.2rem;
    }
}

/* Michael Charney Quote Box */
.charney-quote-box {
    background: linear-gradient(135deg, #000000, #dc3545);
    color: white;
    padding: 3rem 2rem;
    position: relative;
    margin: 50px 0;
    border-radius: 0;
}

.charney-quote-box::before {
    content: '"';
    font-family: 'Gloock', serif;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    line-height: 1;
}

.charney-quote-box::after {
    content: '"';
    font-family: 'Gloock', serif;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    bottom: 0.5rem;
    right: 1.5rem;
    line-height: 1;
}

.charney-quote-text {
    font-family: 'Gloock', serif;
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.4;
    margin: 0 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.charney-quote-attribution {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    text-align: center;
    margin-top: 1.5rem;
    color: white;
    font-weight: 300;
}

@media (max-width: 768px) {
    .charney-quote-box {
        padding: 2rem 1rem;
        margin: 30px 0;
    }
    
    .charney-quote-box::before,
    .charney-quote-box::after {
        font-size: 3.5rem;
    }
    
    .charney-quote-box::before {
        top: 0.2rem;
        left: 1rem;
    }
    
    .charney-quote-box::after {
        bottom: 0.2rem;
        right: 1rem;
    }
    
    .charney-quote-text {
        font-size: 1.4rem;
        margin: 0 2rem;
    }
    
    .charney-quote-attribution {
        font-size: 1rem;
    }
}
