:root {
    --primary-purple: #3b0c36;
    --dark-green: #0E3520;
    --light-green: #45c477;
    --accent-yellow: #fca75a;
    /* or a bit more yellow-green maybe? The Get app button looks yellow */
    --font-inter: 'Inter', sans-serif;
    --font-unifraktur: 'UnifrakturMaguntia', cursive;
}

body {
    font-family: var(--font-inter);
    color: #333;
}

/* Header Styles */
.main-header {
    background-color: var(--primary-purple);
    padding: 10px 0;
}

.logo-text {
    font-family: var(--font-unifraktur);
    color: #ffffff;
    font-size: 28px;
    margin-left: 10px;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 0;
}

.header-logo-icon {
    height: 40px;
}

.search-box {
    position: relative;
    max-width: 500px;
}

.search-input {
    width: 100%;
    border-radius: 20px;
    padding: 6px 40px 6px 15px;
    border: none;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    pointer-events: none;
}

.btn-get-app {
    background-color: var(--primary-purple);
    color: var(--accent-yellow) !important;
    border-radius: 20px;
    padding: 6px 20px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid var(--accent-yellow);
}

.btn-get-app:hover {
    background-color: #5a1552;
}

.sub-header {
    background-color: #FEF5FF;
    border-bottom: 1px solid #eeeeee;
    padding: 5px 0;
}

.nav-sub-link {
    font-size: 13px;
    color: #444;
    text-decoration: none;
    margin-right: 25px;
    font-weight: 500;
}

.nav-sub-link.active {
    color: #0E3520;
    border-bottom: 2px solid #0E3520;
    padding-bottom: 5px;
}

.nav-sub-link:hover {
    color: #0E3520;
}

.nav-link-blue {
    color: #007bff !important;
    font-weight: bold;
}

/* Footer Styles */
.custom-footer {
    background-color: var(--dark-green);
    color: #ffffff;
    padding: 60px 0 20px 0;
}

.footer-logo {
    height: 40px;
}

.footer-links h6 {
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    font-size: 12px;
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

/* Content Grid */
.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    padding: 20px 0;
}

.desktop-wallpaper-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

.desktop-wallpaper-grid .wallpaper-card {
    aspect-ratio: 16/9 !important;
}

.wallpaper-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 2/3;
    background-color: #eee;
}

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

.video-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .wallpaper-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .desktop-wallpaper-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .wallpaper-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .desktop-wallpaper-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .search-box {
        margin-top: 15px;
        order: 3;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .wallpaper-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .desktop-wallpaper-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .sub-header .container-fluid {
        overflow-x: auto;
        white-space: nowrap;
        display: block;
        scrollbar-width: none; /* Hide scrollbar for cleaner look */
    }

    .sub-header .container-fluid::-webkit-scrollbar {
        display: none;
    }

    .nav-sub-link {
        display: inline-block;
        margin-right: 15px;
        font-size: 12px;
    }

    .footer-links a {
        font-size: 13px;
    }
    
    .footer-links h6 {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .footer-logo-sidebar {
        display: none; /* Hide logo in the 4th column on mobile as it takes too much space */
    }
}

/* Styled Pagination */
.custom-pagination-wrapper .pagination {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    padding-left: 0;
    list-style: none;
}
.custom-pagination-wrapper .page-item:first-child .page-link,
.custom-pagination-wrapper .page-item:last-child .page-link {
    background-color: #0E3520 !important;
    color: white !important;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    text-decoration: none;
}
.custom-pagination-wrapper .page-link {
    background-color: #D0D0D0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}
.custom-pagination-wrapper .page-item.active .page-link {
    background-color: #333 !important;
    color: white !important;
}
.custom-pagination-wrapper .page-item.disabled .page-link {
    background-color: #E9ECEF;
    color: #6C757D;
    opacity: 0.6;
    pointer-events: none;
}
.custom-pagination-wrapper .page-link:hover {
    background-color: #B0B0B0;
    color: white;
}

@media (max-width: 576px) {
    .custom-pagination-wrapper .pagination {
        gap: 6px;
    }
    .custom-pagination-wrapper .page-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    .custom-pagination-wrapper .page-item:first-child .page-link,
    .custom-pagination-wrapper .page-item:last-child .page-link {
        padding: 6px 16px;
        font-size: 14px;
    }
}