/* Chad Smith Foundation - Custom Styles */
/* Only using the 4 approved colors: #5a34fe, #3e243a, #f4e7d4, #FAFAFA */

:root {
    --foundation-purple: #5a34fe;
    --foundation-dark: #3e243a;
    --foundation-light: #f4e7d4;
    --foundation-white: #FAFAFA;
}

body {
    font-family: 'Poppins', sans-serif !important;
    line-height: 1.6;
    background-color: var(--foundation-light) !important;
}

/* Remove all Bootstrap blue overrides */
.text-primary {
    color: var(--foundation-purple) !important;
}

.bg-primary {
    background-color: var(--foundation-purple) !important;
}

.btn-primary {
    background-color: var(--foundation-purple) !important;
    border-color: var(--foundation-purple) !important;
    color: var(--foundation-white) !important;
}

.btn-primary:hover {
    background-color: var(--foundation-purple) !important;
    border-color: var(--foundation-purple) !important;
    opacity: 0.9;
}

/* Navigation */
.navbar {
    background-color: var(--foundation-dark) !important;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    font-family: 'Poppins', sans-serif !important;
}

.navbar-brand {
    color: var(--foundation-purple) !important;
    font-family: 'Poppins', sans-serif !important;
}

.navbar-logo {
    height: 1.2em;
    width: auto;
    vertical-align: middle;
}

.navbar-nav .nav-link {
    color: var(--foundation-purple) !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: var(--foundation-white) !important;
}

.donate-btn {
    background-color: var(--foundation-purple) !important;
    color: var(--foundation-white) !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    vertical-align: middle !important;
}

/* Hero Section */
.hero-section {
    background-color: var(--foundation-dark);
    color: white;
    padding: 0;
    position: relative;
}

.hero-image {
    background-color: var(--foundation-dark);
    height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 90%;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    overflow: hidden;
    z-index: 10;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 30px;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: left;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 2;
}

/* Slide backgrounds */
.slide-video {
    background: url('../images/hero_image.jpg') center/cover no-repeat;
}

.slide-merchandise {
    background: url('../images/merch_slider.jpg') center/cover no-repeat;
}

.slide-donations {
    background: url('../images/donate_slider.jpg') center/cover no-repeat;
}

.slide-programs {
    background: linear-gradient(135deg, var(--foundation-purple), var(--foundation-dark));
}

.slide-programs::before {
    content: "COMING SOON";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    z-index: 1;
    pointer-events: none;
    letter-spacing: 3px;
}

.slide-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.slide-description {
    font-size: 1rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.slide-btn {
    background-color: var(--foundation-purple);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

/* Override any conflicting click handlers */
.slide-video .slide-btn {
    pointer-events: auto !important;
}

.slide-merchandise .slide-btn {
    pointer-events: auto !important;
}


.slider-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-dot.active {
    background-color: var(--foundation-purple);
}

.hero-icon-circle {
    background-color: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon {
    font-size: 60px;
    color: white;
}

.bottom-text {
    font-size: 3rem;
    font-weight: 300;
    color: #5a34fe;
    margin-bottom: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-title {
    font-size: 7rem;
    font-weight: 900;
    color: var(--foundation-purple);
    margin-bottom: 0;
    letter-spacing: -2px;
}

/* Hero Section for Other Pages */
.hero-section-other {
    background-color: var(--foundation-light);
    padding: 120px 0 60px 0;
    min-height: 300px;
}

.hero-content-other {
    display: flex;
    align-items: center;
    text-align: left;
}

.hero-icon-other {
    font-size: 3rem;
    color: var(--foundation-purple);
    margin-right: 20px;
}

.hero-title-other {
    font-size: 4rem;
    font-weight: 900;
    color: var(--foundation-dark);
    margin: 0;
    letter-spacing: -1px;
    font-family: 'Poppins', sans-serif;
}

/* Three Columns Section */
.three-columns-section {
    background-color: var(--foundation-dark);
    color: white;
    text-align: left;
    padding-top: 30px;
}

.column-image {
    background: transparent;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.column-icon {
    font-size: 24px;
    color: var(--foundation-dark);
}

.column-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.column-title {
    color: var(--foundation-purple);
    font-weight: 600;
    margin-bottom: 5px;
}

.column-text {
    font-size: 14px;
    line-height: 1.6;
}

/* Scholarship Section */
.scholarship-section {
    background-color: var(--foundation-light);
    padding: 80px 0;
}

.scholarship-section .container {
    max-width: 90%;
}

/* Desktop-only: Align navigation and hero containers to match content */
@media (min-width: 769px) {
    .navbar .container,
    .hero-section .container {
        max-width: 90%;
    }
}

.scholarship-title {
    color: var(--foundation-purple);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.1;
}

.scholarship-subtitle {
    color: var(--foundation-dark);
    font-weight: 600;
    margin-bottom: 20px;
}

.scholarship-text {
    color: var(--foundation-dark);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Dark version of scholarship section */
.scholarship-section-dark {
    background-color: var(--foundation-dark) !important;
}

.scholarship-section-dark .scholarship-title {
    color: var(--foundation-purple) !important;
}

.scholarship-section-dark .scholarship-subtitle {
    color: white !important;
}

.scholarship-section-dark .scholarship-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

.scholarship-image {
    background: linear-gradient(135deg, var(--foundation-purple), var(--foundation-dark));
    height: 600px;
    width: 100%;
    max-width: 700px;
    min-height: 500px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto 40px auto;
}

.scholarship-image-content {
    background-color: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.scholarship-icon {
    font-size: 100px;
    color: white;
    margin-bottom: 20px;
}

.scholarship-caption {
    color: white;
    font-weight: 600;
    margin: 0;
    font-size: 18px;
}

/* Video and Founder Story Placeholders */
.video-placeholder {
    background: linear-gradient(135deg, #1a1a1a, #333333);
    position: relative;
}

.video-placeholder::before {
    content: "VIDEO PLACEHOLDER";
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.founder-story-image {
    background: linear-gradient(135deg, var(--foundation-dark), #2a1a24);
    position: relative;
}

.founder-story-image::before {
    content: "FOUNDER STORY PLACEHOLDER";
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Profiles section */
.profiles-section {
    background-color: var(--foundation-dark);
}

.founders-images {
    background-color: var(--foundation-dark);
    min-height: 400px;
}

.founders-images .row {
    height: 100%;
}

.founders-images .col-lg-3 {
    height: 400px;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.founder-image {
    background: linear-gradient(135deg, var(--foundation-purple), var(--foundation-dark));
    height: 100%;
    min-height: 250px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-icon {
    font-size: 60px;
    color: white;
}

.founders-titles {
    background-color: var(--foundation-light);
    padding: 10px;
    text-align: left;
    display: flex;
    align-items: center;
}

.founders-titles .mb-4 {
    margin-bottom: 0 !important;
}

.profile-name {
    color: var(--foundation-purple);
    font-weight: 800;
    margin-bottom: 5px;
    font-size: 24px;
}

.profile-title {
    color: var(--foundation-purple);
    font-size: 16px;
    margin: 0;
}

/* Bottom text section */
.bottom-text-section {
    background-color: var(--foundation-dark);
    padding: 30px 0 20px 0;
}

.bottom-text {
    color: var(--foundation-purple);
    font-size: 2.5rem;
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Contact Form */
.contact-form-container {
    background-color: var(--foundation-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form .form-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--foundation-dark);
    margin-bottom: 8px;
}

.contact-form .form-control {
    font-family: 'Poppins', sans-serif;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--foundation-purple);
    box-shadow: 0 0 0 0.2rem rgba(90, 52, 254, 0.25);
}

.contact-submit-btn {
    background-color: var(--foundation-purple);
    border: none;
    padding: 12px 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border-radius: 5px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.contact-submit-btn:hover {
    background-color: #4a2bdb;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--foundation-dark);
    padding: 80px 0;
}

.newsletter-title {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.newsletter-text {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Chad Image Display Section */
.chad-image-section {
    margin: 0;
}

.chad-image-display {
    height: 400px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Shopify Integration */
.shopify-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shopify-placeholder {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 40px;
    border: 2px dashed var(--foundation-purple);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.integration-steps {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.integration-steps ol {
    margin-bottom: 0;
}

.integration-steps li {
    margin-bottom: 8px;
}

/* Footer */
footer {
    background-color: var(--foundation-dark) !important;
    color: var(--foundation-white) !important;
    font-family: 'Poppins', sans-serif !important;
}

footer p {
    color: var(--foundation-light) !important;
}

footer a {
    color: var(--foundation-light) !important;
    font-family: 'Poppins', sans-serif !important;
}

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

footer .fab {
    font-size: 1.2rem;
    color: var(--foundation-white);
}

footer .fab:hover {
    color: var(--foundation-purple);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        padding-bottom: 20px;
    }
    
    .scholarship-title {
        font-size: 2rem;
    }
    
    .bottom-text {
        font-size: 1.8rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hero-image {
        height: 500px;
        margin-bottom: 0;
    }
    
    .hero-slider {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .team-member {
        margin-bottom: 2rem;
    }
    
    .scholarship-title {
        font-size: 2rem;
    }
    
    .bottom-text {
        font-size: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        white-space: normal !important;
        max-width: 100% !important;
        line-height: 1.3;
    }
    
    .scholarship-image {
        height: 420px;
        min-height: 350px;
    }
    
    /* Mobile-only: Image above text layout */
    .scholarship-section .row {
        flex-direction: column;
    }
    
    .scholarship-section .col-lg-6:has(.scholarship-image) {
        order: 1;
        margin-bottom: 30px;
    }
    
    .scholarship-section .col-lg-6:not(:has(.scholarship-image)) {
        order: 2;
    }
    
    /* Mobile-only: Reduce video placeholder padding on about.html */
    .scholarship-section {
        padding: 40px 0;
    }
    
    /* Mobile-only: Founder text overlay on images */
    .profiles-section {
        position: relative;
    }
    
    .founders-images .col-lg-3 {
        position: relative;
        width: 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .founders-images .col-lg-3::after {
        content: '';
        position: absolute;
        bottom: 20px;
        left: 20px;
        width: auto;
        max-width: 60%;
        background: rgba(0, 0, 0, 0.7);
        padding: 15px;
        border-radius: 8px;
        pointer-events: none;
    }
    
    .founders-images .col-lg-3:nth-child(1)::after {
        content: 'CHAD SMITH\A Co-Founder & Chairman';
        white-space: pre-line;
        color: white;
        font-weight: 600;
        font-size: 16px;
        line-height: 1.3;
    }
    
    .founders-images .col-lg-3:nth-child(2)::after {
        content: 'LEWIS SMITH\A Co-Founder &\A Executive Director';
        white-space: pre-line;
        color: white;
        font-weight: 600;
        font-size: 16px;
        line-height: 1.3;
    }
    
    .founders-images .col-lg-3:nth-child(3)::after {
        content: 'BRAD SMITH\A Assistant Chairman';
        white-space: pre-line;
        color: white;
        font-weight: 600;
        font-size: 16px;
        line-height: 1.3;
    }
    
    .founders-images .col-lg-3:nth-child(4)::after {
        content: 'JAKE SMITH\A Secretary';
        white-space: pre-line;
        color: white;
        font-weight: 600;
        font-size: 16px;
        line-height: 1.3;
    }
    
    .founders-titles {
        display: none;
    }
    
    /* Center footer content on mobile */
    footer .row > div {
        text-align: center !important;
        margin-bottom: 1rem;
    }
    
    footer .d-flex {
        justify-content: center !important;
    }
}

/* Custom X (Twitter) Icon using SVG */
.fa-x-custom {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url('../images/x_logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: baseline;
    font-size: inherit;
}

/* Program Titles */
.program-title {
    font-weight: 700;
    color: var(--foundation-purple);
    margin-bottom: 0.5rem;
}

/* Press Release Styles */
.press-release-header {
    color: var(--foundation-purple);
    font-size: 14px;
}

.press-release-title {
    color: var(--foundation-dark);
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1.3;
}

.press-release-lead {
    color: var(--foundation-dark);
    font-weight: 600;
}

.press-release-text {
    color: var(--foundation-dark);
}

.press-release-quote {
    background-color: var(--foundation-light);
    border-left: 4px solid var(--foundation-purple);
    font-style: italic;
}

.press-release-quote p {
    color: var(--foundation-dark);
    font-size: 1.1rem;
}

.press-release-quote .mt-2 {
    color: var(--foundation-dark) !important;
    background: none !important;
}

.press-release-section-title {
    color: var(--foundation-purple);
    font-weight: 700;
    margin-bottom: 15px;
}

.press-contact-info {
    background-color: var(--foundation-light);
    border-radius: 8px;
}

.press-contact-info h4 {
    color: var(--foundation-purple);
    font-weight: 700;
    margin-bottom: 15px;
}

.press-contact-name {
    color: var(--foundation-dark);
    font-weight: 600;
}

.press-contact-detail {
    color: var(--foundation-dark);
}

/* Privacy Policy Styles */
.privacy-effective-date,
.privacy-updated-date {
    color: var(--foundation-purple);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.privacy-section-title {
    color: var(--foundation-purple);
    font-weight: 700;
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-subsection-title {
    color: var(--foundation-purple);
    font-weight: 600;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.privacy-text {
    color: var(--foundation-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.privacy-list {
    color: var(--foundation-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.privacy-list li {
    margin-bottom: 0.5rem;
}

.privacy-contact-info {
    background-color: var(--foundation-light);
    border-radius: 8px;
    border-left: 4px solid var(--foundation-purple);
}

.privacy-contact-org {
    color: var(--foundation-purple);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.privacy-contact-detail {
    color: var(--foundation-dark);
    margin-bottom: 0.25rem;
}

.privacy-text a {
    color: var(--foundation-purple);
    text-decoration: none;
}

.privacy-text a:hover {
    color: var(--foundation-dark);
    text-decoration: underline;
}

/* Terms & Conditions Styles */
.terms-effective-date,
.terms-updated-date {
    color: var(--foundation-purple);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.terms-section-title {
    color: var(--foundation-purple);
    font-weight: 700;
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.terms-subsection-title {
    color: var(--foundation-purple);
    font-weight: 600;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.terms-text {
    color: var(--foundation-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.terms-list {
    color: var(--foundation-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.terms-list li {
    margin-bottom: 0.5rem;
}

.terms-contact-info {
    background-color: var(--foundation-light);
    border-radius: 8px;
    border-left: 4px solid var(--foundation-purple);
}

.terms-contact-org {
    color: var(--foundation-purple);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.terms-contact-detail {
    color: var(--foundation-dark);
    margin-bottom: 0.25rem;
}

.terms-legal-caps {
    font-weight: 600;
    font-size: 0.95rem;
}

.terms-text a {
    color: var(--foundation-purple);
    text-decoration: none;
}

.terms-text a:hover {
    color: var(--foundation-dark);
    text-decoration: underline;
}

/* Legal Page Styles */
.legal-document-row {
    background-color: var(--foundation-light);
    border-radius: 8px;
    border-left: 4px solid var(--foundation-purple);
}

.legal-document-title {
    color: var(--foundation-purple);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-document-description {
    color: var(--foundation-dark);
    margin-bottom: 0;
    line-height: 1.5;
}

.legal-document-btn {
    background-color: var(--foundation-purple);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
}

.legal-document-btn:hover {
    background-color: var(--foundation-dark);
    color: white;
}

.legal-status-badge {
    background-color: var(--foundation-purple);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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