/* ==========================================
   INDEX PAGE SPECIFIC STYLES
   ========================================== */

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('../img/RickyMartinFoundation-Hero-img-2-1.jpg');
    background-size: cover;
    background-position: top center;
    background-attachment: fixed;
    padding: 320px 20px 280px;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-family: 'Noto Serif', serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    animation: fadeInLeft 1s;
}

.hero-content p {
    font-size: 17px;
    line-height: 1.5;
    max-width: 555px;
    margin: 0 auto 30px;
    animation: fadeInRight 1s;
}

.hero-btn {
    padding: 20px 40px;
    background: var(--theme-1);
    color: var(--theme-4);
    text-decoration: none;
    font-family: 'Shadows Into Light', cursive;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.hero-btn:hover {
    background: var(--theme-4);
    color: var(--theme-1);
}

.hero-mobile-img {
    display: none;
}

/* CTA Cards */
.cta-cards {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.cta-card {
    background: var(--white);
    padding: 40px 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

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

.cta-card.featured {
    border: 1px solid var(--theme-1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    gap: 0;
}

.cta-card.featured .featured-content {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cta-card.featured .featured-image {
    background: url('../img/RickyMartinFoundation-Donate.jpg');
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.cta-card i {
    font-size: 55px;
    color: var(--theme-1);
    margin-bottom: 15px;
}

.cta-card h3 {
    font-family: 'Noto Serif', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-0);
    margin-bottom: 20px;
}

.cta-card p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--theme-2);
    margin-bottom: 20px;
}

.cta-card .btn {
    padding: 15px 30px;
    background: var(--theme-1);
    color: var(--theme-4);
    text-decoration: none;
    font-family: 'Shadows Into Light', cursive;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    display: inline-block;
    border: 1px solid var(--theme-1);
    transition: all 0.3s;
    cursor: pointer;
}

.cta-card .btn:hover {
    background: var(--theme-4);
    color: var(--theme-1);
}

.cta-card.featured .btn {
    background: var(--theme-1);
    color: var(--white);
}

.cta-card.featured .btn:hover {
    background: var(--white);
    color: var(--theme-1);
}

/* About Section */
.about-section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('../img/Hands.webp') no-repeat;
    background-position: center right;
    background-size: cover;
    opacity: 0.08;
    z-index: 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.about-images {
    position: relative;
}

.about-images img {
    width: 100%;
    display: block;
    height: auto;
}

.about-images .main-image {
    width: 70%;
}

.about-images .overlay-image {
    position: absolute;
    width: 80%;
    bottom: -40px;
    left: 39px;
}

.about-content .subtitle {
    font-family: 'Shadows Into Light', cursive;
    font-size: 20px;
    color: var(--theme-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    display: block;
    justify-self: center;
}

.about-content h2 {
    font-family: 'Noto Serif', serif;
    font-size: 38px;
    font-weight: 600;
    color: var(--theme-0);
    line-height: 1.3;
    margin-bottom: 25px;
    max-width: 600px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--theme-2);
    margin-bottom: 20px;
}

.about-content strong {
    color: var(--theme-0);
    display: block;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 16px;
}

.about-content ul {
    list-style: none;
    margin-bottom: 35px;
}

.about-content ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--theme-2);
}

.about-content ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--theme-3);
}

/* Our Work Section */
.work-section {
    padding: 60px 0;
    background: var(--white);
}

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

.work-card {
    background: var(--white);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.work-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.work-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.work-card-content p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.work-card-content h3 {
    font-family: 'Shadows Into Light', cursive;
    font-size: 20px;
    font-weight: 600;
    color: var(--theme-0);
    text-transform: uppercase;
    letter-spacing: 0.075em;
    margin-bottom: 10px;
}

.work-card-content p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--theme-2);
    margin-bottom: 30px;
}

.work-card-content .btn {
    padding: 15px 30px;
    background: var(--theme-1);
    color: var(--theme-4);
    text-decoration: none;
    font-family: 'Shadows Into Light', cursive;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    display: inline-block;
    border: 1px solid var(--theme-1);
    transition: all 0.3s;
    align-self: flex-start;
}

.work-card-content .btn:hover {
    background: var(--theme-4);
    color: var(--theme-1);
}

/* Quick Facts Section */
.facts-section {
    padding: 20px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../img/RickyMartinFoundation-Voulnteer-BG.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.facts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.facts-content .subtitle {
    font-family: 'Shadows Into Light', cursive;
    font-weight: bold;
    font-size: 22px;
    color: var(--theme-1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    display: block;
}

.facts-content h2 {
    font-family: 'Noto Serif', serif;
    font-size: 38px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 40px;
}

.facts-stats {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.stat-content {
    flex: 1;
}

.stat-number {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-family: 'Noto Serif', serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 5px;
}

.stat-number .number {
    line-height: 1;
}

.stat-number .suffix {
    font-size: 32px;
}

.stat-title {
    font-size: 18px;
    color: var(--white);
    display: block;
}

.facts-source {
    font-family: 'Heebo', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    margin-top: 20px;
}

.facts-image {
    position: relative;
    z-index: 10;
}

.facts-image img {
    width: 90%;
    height: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
    z-index: 5;
    filter: saturate(0.5) contrast(1.05) brightness(1);
}

.facts-quote {
    background: var(--theme-1);
    padding: 20px 40px;
    margin-top: -200px;
    margin-left: -100px;
    margin-right: -20px;
    position: relative;
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.quote-text {
    font-family: 'Shadows Into Light', cursive;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--white);
    margin-bottom: 15px;
    font-style: normal;
}

.quote-author {
    font-family: 'Shadows Into Light', cursive;
    text-align: right;
    font-size: 18px;
    font-weight: 400;
    color: var(--white);
}

/* News Section */
.news-section {
    padding: 60px 0;
    background: var(--theme-4);
}

.news-slider-container {
    position: relative;
    overflow: hidden;
    padding-bottom: 5px;
}

.news-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 30px;
    padding-bottom: 10px;
}

.news-slider::-webkit-scrollbar {
    display: none;
}

.news-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background: var(--white);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden;
    height: 360px;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-meta {
    font-family: 'Heebo', sans-serif;
    font-size: 12px;
    color: var(--theme-1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.news-content h3 {
    font-family: 'Shadows Into Light', cursive;
    font-size: 28px;
    font-weight: 600;
    color: var(--theme-0);
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 15px;
}

.news-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--theme-2);
    margin-bottom: 0;
}

.news-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.news-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--theme-5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.news-slider-dot:hover {
    background: var(--theme-2);
}

.news-slider-dot.active {
    background: var(--theme-1);
    transform: scale(1.2);
}

.news-more {
    text-align: center;
    margin-top: 25px;
}

.news-more .btn {
    padding: 15px 40px;
    background: var(--theme-1);
    color: var(--white);
    text-decoration: none;
    font-family: 'Shadows Into Light', cursive;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    display: inline-block;
    border: 1px solid var(--theme-1);
    transition: all 0.3s;
}

.news-more .btn:hover {
    background: var(--theme-0);
    color: var(--white);
    border-color: var(--theme-0);
}

/* ==========================================
   GET INVOLVED SECTION (NEW)
   ========================================== */

.involved-section {
    padding: 80px 0;
    background: var(--theme-4);
    position: relative;
}

.involved-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/Hands.webp') no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.03;
    z-index: 0;
}

.involved-section .container {
    position: relative;
    z-index: 1;
}

.involved-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.involved-card {
    background: var(--white);
    padding: 40px 35px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.involved-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--theme-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.involved-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.involved-card:hover::before {
    transform: scaleX(1);
}

.involved-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--theme-1) 0%, var(--theme-3) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
}

.involved-card:hover .involved-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.involved-card-icon i {
    font-size: 32px;
    color: var(--white);
}

.involved-card h3 {
    font-family: 'Noto Serif', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--theme-0);
    margin-bottom: 15px;
}

.involved-card > p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--theme-2);
    margin-bottom: 25px;
    flex-grow: 1;
}

.involved-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.involved-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--theme-5);
    font-size: 14px;
    color: var(--theme-2);
}

.involved-benefits li:last-child {
    border-bottom: none;
}

.involved-benefits li i {
    color: var(--theme-1);
    font-size: 12px;
    flex-shrink: 0;
}

.involved-card .btn {
    padding: 14px 32px;
    font-size: 18px;
    width: 50%;
    align-self: center;
}

.involved-card .btn-outline {
    background: transparent;
    color: var(--theme-1);
    border: 2px solid var(--theme-1);
}

.involved-card .btn-outline:hover {
    background: var(--theme-1);
    color: var(--white);
}

/* Partners Modal */
.partners-modal-content {
    max-width: 800px;
}

.partners-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 20px 0;
}

.partners-modal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    border: 1px solid var(--theme-5);
    transition: all 0.3s;
    background: var(--white);
    text-decoration: none;
    cursor: pointer;
}

.partners-modal-item:hover {
    border-color: var(--theme-1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.partners-modal-item img {
    max-width: 180px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s;
    pointer-events: none;
}

.partners-modal-item:hover img {
    filter: grayscale(0%) opacity(1);
}

.partners-modal-item h4 {
    font-family: 'Heebo', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-0);
    margin-bottom: 8px;
    pointer-events: none;
}

.partners-modal-item p {
    font-size: 13px;
    color: var(--theme-2);
    line-height: 1.4;
    pointer-events: none;
}

/* ==========================================
   INDEX PAGE RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .facts-section {
        background-attachment: scroll;
    }

    .facts-quote {
        padding: 20px 40px;
        margin-top: 0px;
        margin-left: 0px;
        margin-right: 0px;
    }

    .facts-image img {
        display: none;
    }

    .hero-section {
        padding: 200px 20px 150px;
        background-attachment: scroll;
    }

    .about-container,
    .work-grid,
    .news-card,
    .facts-container {
        grid-template-columns: 1fr;
    }

    .facts-content h2 {
        font-size: 32px;
    }

    .stat-number {
        font-size: 40px;
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }

    .cta-card.featured {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .cta-card.featured .featured-image {
        order: -1;
        min-height: 250px;
    }

    .cta-card.featured .featured-content {
        padding: 40px 30px;
    }

    /* Get Involved - Tablet */
    .involved-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .involved-card {
        padding: 35px 30px;
    }
}

@media (max-width: 767px) {
    /* Hero Mobile */
    .hero-section {
        background: transparent !important;
        padding: 0px 0px 0px !important;
        text-align: center;
        position: relative;
    }

    .hero-mobile-img {
        display: block !important;
        width: 100%;
        height: auto;
        margin-bottom: 0;
    }

    .hero-content {
        background: rgba(255, 255, 255, 0.7);
        margin: -100px 15px 0;
        padding: 35px 25px 40px;
        position: relative;
        z-index: 10;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    }

    .hero-content h1 {
        color: var(--theme-0);
        font-size: 22px;
        margin-bottom: 15px;
        line-height: 1.35;
    }

    .hero-content h1 br {
        display: none;
    }

    .hero-content p {
        font-size: 14px;
        line-height: 1.7;
        color: var(--theme-2);
        margin-bottom: 0;
    }

    /* CTA Cards */
    .cta-card.featured .featured-image {
        min-height: 200px;
    }

    .cta-card.featured .featured-content {
        padding: 30px 20px;
    }

    /* About Section */
    .about-images {
        order: 2;
    }

    .about-content {
        order: 1;
    }

    .about-images .overlay-image {
        display: none;
    }

    .about-images .main-image {
        width: 100%;
    }

    .about-content h2 {
        font-size: 28px;
    }

    .about-content p {
        font-size: 15px;
    }

    /* Facts Section */
    .facts-section {
        padding: 60px 0;
    }

    .facts-content h2 {
        font-size: 28px;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
    }

    .stat-number {
        font-size: 36px;
        justify-content: center;
    }

    .quote-text {
        font-size: 16px;
    }

    /* News Section */
    .news-card {
        grid-template-columns: 1fr;
        height: auto;
    }

    .news-card img {
        height: 180px;
    }

    .news-content {
        padding: 20px;
    }

    .news-content h3 {
        font-size: 18px;
    }

    /* Get Involved - Mobile */
    .involved-section {
        padding: 60px 0;
    }

    .involved-grid {
        max-width: 100%;
    }

    .involved-card {
        padding: 30px 25px;
    }

    .involved-card-icon {
        width: 70px;
        height: 70px;
    }

    .involved-card-icon i {
        font-size: 28px;
    }

    .involved-card h3 {
        font-size: 20px;
    }

    .involved-card > p {
        font-size: 14px;
    }

    .involved-benefits li {
        font-size: 13px;
        padding: 8px 0;
    }

    /* Partners Modal */
    .partners-modal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .partners-modal-item img {
        max-width: 150px;
        max-height: 80px;
    }
}