/* ========================================
   DESKTOP HOMEPAGE STYLES
   For screens 1024px and above
   Based on mobile design with scaled sizing
======================================== */

/* ========================================
   DESKTOP HEADER STYLING
======================================== */
@media (min-width: 1024px) {
    .site-header-wave {
        position: fixed;
    }
    
    .header-bg-wrapper {
        position: relative;
        overflow: hidden;
        height: 120px;
    }
    
    .header-bg-image {
        width: 100%;
        height: 120px !important;
        object-fit: fill;
        object-position: center;
        display: block;
    }
    
    .header-content-container {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
        right: 0;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-logo {
        flex-shrink: 0;
    }
    
    /* Desktop Navigation Menu */
    .desktop-nav-menu {
        display: flex;
        gap: 14px;
        align-items: center;
        flex: 1;
        justify-content: flex-end;
        margin: 0 40px;
    }
    
    .desktop-nav-menu a {
        color: white;
        text-decoration: none;
        font-size: 24px;
        transition: opacity 0.3s ease;
    }
    
    .desktop-nav-menu a:hover {
        opacity: 0.8;
    }
    
    .header-auth-buttons {
        flex-shrink: 0;
    }
    
    .btn-login-header {
        background: white;
        color: #1976D2;
        padding: 10px 30px;
        border-radius: 25px;
        font-weight: 600;
        text-decoration: none;
        display: inline-block;
        transition: all 0.3s ease;
    }
    
    .btn-login-header:hover {
        background: #f0f0f0;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

.desktop-homepage {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 160px 5vw;
    background: #FCFCFC url('images/bg-pattern.png');
    background-attachment: fixed;
    background-size: auto;
    background-repeat: repeat;
    overflow: hidden;
}

/* ========================================
   FEATURED SECTION - DESKTOP (Mobile-style scaled up)
======================================== */
.featured-section-desktop {
    padding: 0;
}

.featured-section-desktop .featured-title-section {
    text-align: center;
    margin-bottom: 25px;
}

.featured-section-desktop .featured-title-section h2 {
    font-size: 48px;
    font-weight: 700;
    color: #00A99D;
    margin: 0;
}

.featured-card-desktop {
    position: relative;
    width: 100%;
}

.featured-card-desktop .featured-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-card-desktop .featured-img-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.featured-card-desktop .featured-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 100%);
}

/* Overlay only on right half */
.featured-card-desktop .featured-overlay-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: flex-start;
    padding: 40px 30px;
}

.featured-card-desktop .overlay-content {
    width: 100%;
    color: #FFFFFF;
}

.featured-card-desktop .project-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.featured-card-desktop .project-meta-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 16px;
    opacity: 0.95;
}

.featured-card-desktop .meta-location {
    display: block;
}

.featured-card-desktop .meta-time {
    display: block;
}

.featured-card-desktop .meta-time i {
    font-size: 15px;
    margin-right: 5px;
}

.featured-card-desktop .project-amount-big {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.featured-card-desktop .project-donors-count {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.featured-card-desktop .project-actions-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.featured-card-desktop .progress-dots-row {
    display: flex;
    gap: 6px;
}

.featured-card-desktop .progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.featured-card-desktop .progress-dot:first-child {
    background: #ffffff;
    border-color: #ffffff;
}

.featured-card-desktop .btn-donate-teal {
    background: #00A99D;
    color: #FFFFFF;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.featured-card-desktop .btn-donate-teal:hover {
    background: #138496;
    transform: scale(1.05);
}

.featured-card-desktop .more-info-text {
    font-size: 13px;
    color: #FFFFFF;
    white-space: nowrap;
}

/* ========================================
   OTHER PROJECTS SECTION (Mobile-style scaled up)
======================================== */
.other-projects-section-desktop {
    padding: 20px 0;
}

.other-projects-section-desktop .section-title-bar {
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    margin-bottom: 140px;
    margin-top: 100px;
}

.other-projects-section-desktop .title-highlight-left {
    width: 100%;
    height: 80px;
    background: #ffc635;
    border-radius: 25px 0px 0px 25px ;
    display: flex;
    align-items: center;
    justify-content: center;
}

.other-projects-section-desktop .title-highlight-right {
    width: 70%;
    height: 25px;
    background: #ffc635;
    border-radius: 25px 0px 0px 25px ;
    margin-left: auto;
    margin-top: 10px;
}

.other-projects-section-desktop .section-title-bar h2 {
    font-size: 36px;
    font-weight: 700;
    color: #8f6600;
    margin: 0;
    white-space: nowrap;
}

.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card-desktop {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.project-card-desktop:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.project-card-desktop .project-card-link {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
}

/* Left side - Thumbnail */
.project-card-desktop .project-card-thumbnail {
    position: relative;
    width: 40%;
    min-width: 130px;
    height: 170px;
    overflow: hidden;
    flex-shrink: 0;
    padding: 10px;
}

.project-card-desktop .card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.project-card-desktop .card-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 100%);
    border-radius: 12px;
}

.project-card-desktop .thumbnail-overlay {
    position: absolute;
    bottom: 18px;
    left: 18px;
    right: 18px;
    background: rgba(0, 0, 0, 0.75);
    padding: 5px 8px;
    border-radius: 6px;
}

.project-card-desktop .overlay-time {
    font-size: 9px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1.2;
}

.project-card-desktop .overlay-time i {
    font-size: 8px;
}

/* Right side - Content */
.project-card-desktop .project-card-info {
    flex: 1;
    padding: 10px 12px 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.project-card-desktop .card-info-title {
    font-size: 15px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 2px 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
    width: 100%;
}

.project-card-desktop .card-info-location {
    font-size: 11px;
    color: #757575;
    margin: 0 0 6px 0;
    line-height: 1.2;
    text-align: left;
    width: 100%;
}

.project-card-desktop .card-info-amount-raised {
    font-size: 28px;
    font-weight: 700;
    color: #00A99D;
    margin-bottom: 3px;
    line-height: 1.1;
    text-align: right;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-end;
    gap: 5px;
}

.project-card-desktop .raised-label {
    font-size: 10px;
    font-weight: 500;
    color: #757575;
    text-transform: lowercase;
}

.project-card-desktop .card-info-amount-goal {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    background: #F1FF4D;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    align-self: flex-end;
    margin-bottom: 2px;
    line-height: 1.1;
}

.project-card-desktop .info-donors {
    font-size: 11px;
    color: #00A99D;
    font-weight: 600;
    text-align: right;
    line-height: 1.2;
    margin-bottom: 0;
    width: 100%;
}

.project-card-desktop .card-info-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    margin-top: 6px;
    width: 100%;
}

.project-card-desktop .info-more-link {
    font-size: 11px;
    color: #757575;
    font-weight: 500;
    text-align: right;
    line-height: 1.2;
}

/* Load More Campaigns Button */
.view-more-campaigns-wrapper {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
}

.btn-load-more-campaigns {
    display: inline-block;
    background: #00A99D;
    color: #FFFFFF;
    padding: 15px 50px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 169, 157, 0.3);
}

.btn-load-more-campaigns:hover {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 169, 157, 0.4);
}

.btn-load-more-campaigns:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
    transform: none;
}

.load-more-spinner {
    margin-top: 10px;
    color: #00A99D;
    font-weight: 600;
}

/* ========================================
   LEADERBOARD SECTION - Centered Standalone
======================================== */
.leaderboard-section-desktop {
    max-width: 60vw;
    margin: 60px auto 50px;
    padding: 40px;
    background: #FFFFFF;
    border-radius: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.leaderboard-section-desktop .leaderboard-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border-bottom: none;
}

.leaderboard-section-desktop .leaderboard-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 30px 0;
    background: transparent;
}

.leaderboard-section-desktop .title-highlight-left,
.leaderboard-section-desktop .title-highlight-right {
    flex: 1;
    height: 12px;
    background: #D9E021;
    border-radius: 6px;
}

.leaderboard-section-desktop .leaderboard-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #00A99D;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.leaderboard-section-desktop .leaderboard-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: transparent;
    padding: 0;
    gap: 0;
    margin: 0;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.leaderboard-section-desktop .tab-button {
    padding: 18px 20px;
    font-size: 20px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #1976D2;
    color: #FFFFFF;
    text-transform: capitalize;
}

.leaderboard-section-desktop .tab-button.active {
    background: #1565C0;
    color: #FFFFFF;
}

.leaderboard-section-desktop .tab-button:hover {
    opacity: 0.9;
}

.leaderboard-section-desktop .leaderboard-content {
    background: #FFFFFF;
    position: relative;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    border: 3px solid #1976D2;
    border-top: none;
}

.leaderboard-section-desktop .tab-content {
    display: none;
}

.leaderboard-section-desktop .tab-content.active {
    display: block;
}

.leaderboard-section-desktop .leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leaderboard-section-desktop .leaderboard-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    padding: 16px 25px;
    gap: 20px;
    font-size: 16px;
}

.leaderboard-section-desktop .leaderboard-item.odd {
    background: #F5F5F5;
}

.leaderboard-section-desktop .leaderboard-item.even {
    background: #FFFFFF;
}

.leaderboard-section-desktop .leaderboard-item.empty {
    grid-template-columns: 1fr;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    background: #F5F5F5;
}

.leaderboard-section-desktop .leaderboard-item.empty .name {
    color: #999999;
    font-style: italic;
    font-weight: 400;
}

.leaderboard-section-desktop .leaderboard-item .rank {
    font-weight: 700;
    color: #333333;
    font-size: 18px;
}

.leaderboard-section-desktop .leaderboard-item .name {
    font-weight: 600;
    color: #333333;
}

.leaderboard-section-desktop .leaderboard-item .count {
    font-weight: 600;
    color: #333333;
    font-size: 15px;
}

/* ========================================
   STATS SECTION - Full Width Teal Container with Grid
======================================== */
.stats-section-desktop {
    background: #00A99D;
    margin: 60px 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 60px calc(50vw - 50%);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 90vw;
    margin: 0 auto;
    padding: 0 5vw;
}

.stat-box {
    color: white;
    text-align: center;
    position: relative;
}

.stat-box .stat-number {
    font-family: 'Lilita One', cursive;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 15px;
    display: block;
}

.stat-box .stat-label {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    display: block;
}

/* ========================================
   ABOUT SECTION - Visi Misi Simplified
======================================== */
.about-section-desktop {
    padding: 60px 60px 80px;
    margin: 60px -60px 0;
}

/* Header Card - Full Width */
.about-header-card {
    background: #FFFFFF;
    padding: 60px 120px 60px 120px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    border-radius: 0px 120px 0px 0px;
    position: relative;
    left: -120px;
    width: 60%;
    margin-bottom: 120px;
}

.about-main-title {
    font-family: 'Lilita One', cursive;
    font-size: 48px;
    color: #FDB913;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Content Row - Two Columns */
.about-content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Left Column - Images */
.about-left-column {
    display: flex;
    flex-direction: column;
}

/* Visi Misi Images - Simple Grid Layout without stat pills */
.visi-misi-images {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    min-height: 400px;
}

.visi-misi-img {
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    width: 100%;
}

/* Image A - Left side, starts from row 1 */
.visi-misi-img-1 {
    grid-column: 1;
    grid-row: 1 / 2;
    height: 400px;
}

/* Image B - Right side, offset by starting from row 2 */
.visi-misi-img-2 {
    grid-column: 2;
    grid-row: 2 / 3;
    height: 400px;
    margin-top: -150px;
}

/* Right Column - Mission Content */
.about-right-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    padding: 175px 60px;
    border-radius: 120px 64px 64px 10px;
    background: #FFFFFF;
}

.mission-vision-box {
    background: #FFFFFF;
}

.about-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-img-top {
    height: 250px;
}

.about-img-bottom {
    height: 280px;
}

/* Mission Title and Content */
.about-right-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    padding: 175px 60px;
    border-radius: 120px 64px 64px 10px;
}

.mission-vision-box {
    background: #FFFFFF;
}

.mission-title {
    font-family: 'Lilita One', cursive;
    font-size: 42px;
    color: #FDB913;
    margin-bottom: 15px;
    margin-top: 30px;
}

.mission-title:first-child {
    margin-top: 0;
}

.mission-text {
    color: #333333;
    font-size: 15px;
    line-height: 1;
    margin-bottom: 25px;
}

.mission-list {
    list-style: none;
    padding: 0;
    color: #333333;
    font-size: 15px;
    line-height: 1;
}

.mission-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
}

.mission-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #00BFA5;
    font-weight: bold;
    font-size: 20px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .about-content-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}



@media (min-width: 1024px) {
    .mobile-nav-container {
        position: relative;
        /* allow the footer background image to overflow if needed so it's not clipped */
        overflow: visible;
        height: 200px;
        background-color: #1573b7;
    }
    /* .mobile-nav-container {
        max-width: 100%;
        left: 0;
        transform: none;
        position: relative;
        margin-left: -60px;
        margin-right: -60px;
        width: calc(100% + 120px);
        height: 120px;
        overflow: hidden;
    } */
    
    .mobile-bottom-nav {
        display: none !important;
    }
    
    .mobile-nav-container .nav-bg-image {
        width: 100%;
        /* keep the full image visible on desktop instead of cropping */
        height: auto;
        object-fit: fill;
        object-position: center;
        transform: rotate(180deg);
        display: block;
        pointer-events: none; /* Allow clicks to pass through to links below */
    }
    
    /* Show desktop footer content */
    .desktop-footer-content {
        display: block !important;
        position: absolute;
        bottom: 16px;
        right: 120px;
        color: white;
        text-align: right;
        font-size: 14px;
        z-index: 10;
        pointer-events: auto; /* Allow clicks on footer links */
    }
    
    /* Show desktop footer left content */
    .desktop-footer-left {
        display: block !important;
        position: absolute;
        bottom: 46px;
        left: 60px;
        color: white;
        text-align: left;
        font-size: 14px;
        z-index: 10;
        pointer-events: auto; /* Allow clicks on footer links */
    }
    
    /* Remove the ::after pseudo element since we now have real left content */
    .mobile-nav-container:after {
        content: none;
    }
    
    .desktop-footer-content a,
    .desktop-footer-left a {
        color: white;
        text-decoration: none;
        display: inline;
    }
    
    .desktop-footer-content a:hover,
    .desktop-footer-left a:hover {
        text-decoration: underline;
    }
}

/* ========================================
   RESPONSIVE - 2K RESOLUTIONS AND ABOVE
======================================== */
@media (min-width: 1920px) {
    .desktop-homepage {
        padding: 160px 8vw;
    }

    .featured-section-desktop .featured-title-section h2 {
        font-size: 64px;
    }

    .featured-card-desktop .project-name {
        font-size: 28px;
    }

    .featured-card-desktop .project-amount-big {
        font-size: 42px;
    }

    .other-projects-section-desktop .section-title-bar h2 {
        font-size: 48px;
    }

    .leaderboard-section-desktop {
        max-width: 50vw;
        padding: 50px;
    }

    .leaderboard-section-desktop .leaderboard-title h2 {
        font-size: 42px;
    }

    .leaderboard-section-desktop .title-highlight-left,
    .leaderboard-section-desktop .title-highlight-right {
        height: 14px;
    }

    .leaderboard-section-desktop .tab-button {
        font-size: 24px;
        padding: 22px 25px;
    }

    .leaderboard-section-desktop .leaderboard-item {
        font-size: 19px;
        padding: 20px 30px;
        grid-template-columns: 80px 1fr auto;
    }

    .leaderboard-section-desktop .leaderboard-item .rank {
        font-size: 22px;
    }

    .leaderboard-section-desktop .leaderboard-item .count {
        font-size: 18px;
    }

    .stats-container {
        max-width: 85vw;
        gap: 80px;
    }

    .stat-box .stat-number {
        font-size: 96px;
    }

    .stat-box .stat-label {
        font-size: 26px;
    }

    .about-main-title {
        font-size: 64px;
    }

    .mission-title {
        font-size: 42px;
    }
}

/* ========================================
   RESPONSIVE - TABLET
======================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    .leaderboard-section-desktop {
        max-width: 700px;
    }

    .stats-section-desktop {
        padding: 50px 0;
    }

    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        padding: 0 40px;
    }

    .stat-box .stat-number {
        font-size: 56px;
    }

    .stat-box .stat-label {
        font-size: 16px;
    }

    .other-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .featured-card-desktop .featured-overlay-right {
        width: 60%;
    }

    .about-content-row {
        gap: 40px;
    }
}

/* ========================================
   RESPONSIVE - SMALL TABLET/LARGE MOBILE
======================================== */
@media (max-width: 767px) {
    .stats-section-desktop {
        padding: 40px 0;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 30px;
    }

    .stat-box .stat-number {
        font-size: 64px;
    }

    .stat-box .stat-label {
        font-size: 18px;
    }
}
