:root {
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --primary: #1e293b;
    --accent: #d97706;
    --whatsapp: #25D366;
    --instgram: #f381dc;
    --text-main: #334155;
    --text-light: #64748b;
    --border: rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
}

/* --- Header & Sticky Logic --- */
header {
    background: #ffffff;
    position: relative;
    z-index: 1000;
}

@media (max-width: 800px) {
    header {
        position: relative;
    }
}

@media (min-width: 801px) {
    header {
        position: relative;
    }
}

.search-sticky-container {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 15px 0;
    z-index: 1010;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.search-sticky-container.is-pinned {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 801px) {
    .search-sticky-container {
        padding: 25px 0;
    }
    
    .search-sticky-container.is-pinned {
        padding: 10px 0;
    }
}

.header-top-bar {
    background: #e0f2fe;
    color: var(--primary);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 0;
    text-align: center;
    font-weight: 700;
}

.header-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 20px 20px;
    display: flex;
    justify-content: space-between;
}

.logo {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-wrapper {
    flex: 1.5;
    display: flex;
    justify-content: flex-start;
    padding-left: 20px;
    min-width: 100px;
}

.brand-info {
    flex: 0 0 auto;
    text-align: center;
    min-width: 600px;
    padding: 0 20px;
}

@media (min-width: 801px) {

    /* --- Updated Sticky & Toggle Logic --- */
    .sticky-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        max-width: 1250px;
        margin: auto;
        padding: 5px 20px;
    }

    .sticky-logo {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
        display: none;
        border: 1px solid var(--border);
    }

    header .logo-wrapper .logo {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease;
    }

    .search-sticky-container.is-pinned .sticky-logo {
        display: block;
    }

    .sticky-wrapper .search-container {
        flex: 2;
        max-width: 750px;
        padding: 0;
        margin: 0;
    }
}

.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

@media (max-width: 800px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
        margin: 5px auto 10px;
        /* Centers below status lines */
        width: fit-content;
    }

    .sticky-logo {
        display: none !important;
    }

    .brand-info {
        order: 2;
        min-width: auto;
        padding: 0;
    }

    .brand-info h1 {
        font-size: 1.8rem !important;
    }

    /* 1. Reset to Default Mobile Layout (Logo -> Brand -> Actions) */
    .header-main {
        padding: 20px 10px 5px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .search-sticky-container {
        padding: 5px 0 10px 0;
    }

    .logo-wrapper {
        order: 1;
        padding-left: 0;
        justify-content: center;
    }

    .header-actions {
        order: 3;
        margin-top: 0;
        margin-bottom: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links-wrapper {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
    }

}

.brand-info h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    text-transform: uppercase;
    color: var(--primary);
    line-height: 1;
}

.brand-info p {
    font-weight: 300;
    opacity: 0.8;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

.header-actions {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 1px;
    white-space: nowrap;
}

.social-icon.whatsapp-icon {
    color: #25D366;
}

.social-icon.instagram-icon {
    color: #f381dc;
}

.social-icon.facebook-icon {
    color: #1877F2;
}

.social-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.search-container {
    width: 100%;
    max-width: 1000px;
    position: relative;
    padding: 0 15px;
    /* Adjust this value to control the side gaps */
}

#stampSearch {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 30px;
    outline: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

#stampSearch:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
}

.header-status {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-light);
    margin: 0 0 10px;
}

/* --- New Layout Structure --- */
@media (min-width: 801px) {
    .container {
        max-width: 2000px;
        margin: 20px auto;
        padding: 0 20px 40px 20px;
    }

    /* Creates a two-column layout */
    .layout-wrapper {
        display: flex;
        gap: 30px;
        align-items: flex-start;
        /* Important for sticky to work */
    }

    /* Left Sidebar for Promo Card */
    .sidebar-promo {
        flex: 0 0 320px;
        position: sticky;
        /* Increase this value if the top of the card is still hidden under the header */
        top: 140px;
        height: fit-content;
        z-index: 999;
        align-self: flex-start;
        /* Required for sticky to work in flexbox */
    }

    /* Right Side for Stamp Grid */
    .main-content {
        flex: 1;
    }

    /* Adjusted grid for the main content area */
    .stamp-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        max-width: none;
        margin: 0;
    }

    /* 2. Force the card to stay visible regardless of scroll state */
    .promo-card.scrolled-hidden,
    .promo-card {
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        margin-bottom: 20px !important;
        padding: 40px 30px !important;
        visibility: visible !important;
    }
}

/* Mobile Fixes */
@media (max-width: 800px) {
    .container {

        margin: 20px auto;
        padding: 0 20px;
    }

    .layout-wrapper {
        display: block;
    }

    .sidebar-promo {
        display: block;
        /* Changed from none to block */
        position: relative;
        /* On mobile, it's better to let it flow naturally */
        top: 0;
        margin-top: 20px;
    }

    .stamp-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .filter-sticky-bar {
        transform: scale(0.8);
        border-radius: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: none;
        /* Ensure it's removed on mobile too */
    }
}

.stamp-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.stamp-card.sold-out {
    filter: grayscale(0.8);
    opacity: 0.8;
}

.img-container {
    position: relative;
    height: 240px;
    background: #f1f5f9;
    overflow: hidden;
}

.stamp-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.stamp-card img:hover {
    transform: scale(1.05);
}

.sold-out-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #475569;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
}

.photo-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(30, 41, 59, 0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.details h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--primary);
}

.stamp-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 12px 0;
    line-height: 1.5;
}

/* Align the Share Icon next to the Buy Button */
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-icon-btn {
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s ease;
    padding: 0;
    top: 12px;
    right: 6px;
    background: rgba(255, 255, 255, 0.15);
}

.share-icon-btn-promo {
    background: #000000;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s ease;
    padding: 0;
    top: -22px;
    right: -16px;
    background: rgba(0, 0, 0, 0.15);
    position: absolute;
}

.share-icon-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
}

.contact-pill {
    background: var(--whatsapp);
    color: white;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.curr-btn {
    border: 1px solid transparent;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

.curr-btn.active {
    background-color: #a4c8f6;
    color: var(--primary);
    border-color: #cbd5e1;
}

.buy-btn {
    background: #d5e5fb;
    color: var(--primary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.buy-btn.disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* Modals & UI */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1001;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.modal-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 80vh;
    pointer-events: auto;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 25px 20px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 24px;
    transition: background 0.3s ease;
    z-index: 2030;
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    /* THE FIX: Create a massive invisible hit area for thumbs */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    /* Disable long-press context menu on mobile */
    -webkit-touch-callout: none;
    user-select: none;
}

#caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 25px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 30px;
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 800px) {
    #caption {
        display: none !important;
    }

    .nav-btn {
        padding: 15px 10px;
        background: rgba(0, 0, 0, 0.5);
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}

.main-footer {
    text-align: center;
    padding: 10px 20px;
    color: var(--text-light);
    border-top: 1px solid var(--border);
    margin-top: 50px;
}

/* QR Modal */
.qr-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.qr-modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 340px;
    text-align: center;
    position: relative;
}

.qr-image {
    width: 220px;
    height: 220px;
    margin: 15px auto;
    border: 1px solid #eee;
}

.upi-copy-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
}

#copyBtn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.qr-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

@media (min-width: 801px) {
    .header-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0px;
        /* Reduced from 15px to bring them closer */
        margin-top: 10px;
        /* Reduced from 15px to reduce space from top brand info */
    }

    .social-links-wrapper {
        gap: 15px;
        /* Optional: adjust horizontal spacing between icons */
        /* Ensure no bottom margin is pushing the toggle away */
        margin-bottom: 2px;
        position: relative;
        display: inline-flex;
        align-items: center;
        transition: transform 0.2s ease;
    }

    /* The Tooltip Box */
    .social-links-wrapper a::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 125%;
        /* Position above the icon */
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: rgba(15, 23, 42, 0.9);
        /* Dark modern slate */
        color: white;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 0.7rem;
        font-weight: 600;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        pointer-events: none;
    }

    /* The Tooltip Arrow */
    .social-links-wrapper a::before {
        content: '';
        position: absolute;
        bottom: 110%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        border-width: 6px 6px 0 6px;
        border-style: solid;
        border-color: rgba(15, 23, 42, 0.9) transparent transparent transparent;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    /* Hover State */
    .social-links-wrapper a:hover {
        transform: translateY(-2px);
    }

    .social-links-wrapper a:hover::after,
    .social-links-wrapper a:hover::before {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .currency-toggle {
        /* Optional: Scale down slightly to ensure it fits perfectly with icons */
        transform: scale(0.9);
        margin-top: 0;
        /* Ensure no extra margin is pushing it away */
    }
}

/* Hide tooltips on mobile to keep the UI clean */
@media (max-width: 800px) {

    .social-links-wrapper a::after,
    .social-links-wrapper a::before {
        display: none !important;
    }
}

/* Currency Toggle Styles */
.currency-toggle {
    background: #f1f5f9;
    padding: 2px;
    border-radius: 50px;
    border: 1px solid var(--border);
    gap: 1px;
    flex-shrink: 0;
    /* Prevents squishing */
}

.toggle-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-btn:hover:not(.active) {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.5);
}

/* Adjusting mobile placement */
@media (max-width: 800px) {
    .header-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0px;
        /* Reduced from 15px to bring them closer */
        margin-top: 10px;
        /* Reduced from 15px to reduce space from top brand info */
    }

    .social-links-wrapper {
        display: flex;
        gap: 15px;
        /* Optional: adjust horizontal spacing between icons */
        /* Ensure no bottom margin is pushing the toggle away */
        margin-bottom: 2px;
    }

    .currency-toggle {
        /* Optional: Scale down slightly to ensure it fits perfectly with icons */
        transform: scale(0.9);
        margin-top: 0;
        /* Ensure no extra margin is pushing it away */
    }

}

/* Privacy Modal specific padding */
#privacyModal .qr-modal-content {
    padding: 40px;
    line-height: 1.6;
}

#privacyModal h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* --- Hero/Promo Card Styling --- */
/* background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important; */
/* --- Hero/Promo Card with Background Image --- */
.promo-card {
    position: relative;
    background: #1e293b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 30px;
    border: none !important;
    overflow: hidden;
    z-index: 1;

    transition: opacity 0.3s ease, transform 0.3s ease;
    /* Simplified transition */

    /* Set a base max-height larger than content */
    max-height: 900px;
    opacity: 1;
    margin-bottom: 20px;
    /* Match your grid gap */
}

/* The Transparent Background Image */
.promo-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* ADD YOUR IMAGE URL HERE */
    /* background-image: url('https://filedn.eu/lbu0dswNxxUBjQKg0kNdmLu/philatelyworld-images/images/largest-stamp.jpg'); */

    background-size: cover;
    background-position: center;

    /* ADJUST TRANSPARENCY HERE (0.1 = very faint, 0.5 = strong) */
    opacity: 0.45;

    z-index: -1;
    /* Puts the image behind the text */
}

/* Subtle overlay to make text even more readable */
.promo-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(30, 41, 59, 0.8) 100%);
    z-index: -1;
}

.promo-content {
    position: relative;
    padding: 40px 20px;
    /* Added extra top padding so text doesn't hit the button */
    z-index: 2;
    /* Ensures content stays above all background layers */
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
}

.promo-badge {
    background: #fbbf24;
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-card h2 {
    margin: 0;
    font-size: 1.4rem;
    /* color: #f9b0b0; */
    color: #f8fafc;
    line-height: 1.2;
}

.promo-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    color: #cbd5e1;
}

.promo-btn {
    background: white;
    color: #1e293b;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.promo-btn:hover {
    transform: scale(1.05);
    background: #f1f5f9;
}

/* Collapsed State (Desktop/Tablet Only) */
.promo-card.scrolled-hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    transform: translateY(-20px);
    /* Subtle slide up */
    pointer-events: none;
}

/* Ensure mobile remains smooth and unaffected */
@media (max-width: 800px) {
    .promo-card {
        transition: none;
        /* Disable transitions on mobile to prevent jitter */
        max-height: none;
        opacity: 1 !important;
        transform: none !important;
        padding: 30px 20px;
    }
}

/* Remove any old running banner styles if they exist */
.running-banner,
.banner-track,
.banner-content {
    display: none !important;
}

/* Fix for centering the promo on shared links */
.sidebar-promo.centered-view {
    flex: 1 1 100% !important;
    /* Forces the sidebar to take full width of the container */
    max-width: 100%;
    display: flex !important;
    justify-content: center;
    /* Centers horizontally */
    align-items: center;
    /* Centers vertically */
    min-height: 60vh;
    /* Gives enough vertical space to feel centered */
    padding: 40px 20px;
    margin: 0 auto;
    position: static;
    /* Disables 'sticky' so it doesn't float during centering */
}

.sidebar-promo.centered-view .promo-card {
    max-width: 500px;
    /* Keeps the announcement at a nice readable width */
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    /* Adds some depth */
}

/* --- Sticky Filter Bar Logic --- */
.filter-sticky-bar {
    position: sticky;
    /* This aligns it exactly below the mobile sticky search bar (~72px) */
    top: 72px;
    z-index: 1001;
    background: #ffffff;
    padding: 10px 0;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    border-bottom: none;
}

/* Desktop Adjustment */
@media (min-width: 801px) {
    .filter-sticky-bar {
        /* Matches the taller desktop search bar height (~92px) */
        top: 92px;
        background: #ffffff;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        margin-bottom: 0;
    }
}

.filter-tabs {
    display: flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 50px;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-tab {
    border: none;
    background: transparent;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* --- Album Designer Header Icon --- */
.designer-icon {
    margin-top: 12px;
    position: relative;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.designer-icon:hover {
    color: #2563eb !important;
    transform: translateY(-2px);
}

/* Designer Tooltip */
.designer-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    right: 0;
    transform: translateY(-10px);
    background: #1e293b;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.designer-icon:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-18px);
}

.designer-icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.designer-icon:hover .designer-icon-img {
    transform: scale(1.15) rotate(5deg);
}

/* Mobile Alignment */
@media (max-width: 800px) {
    .designer-icon {
        margin: 5px auto 15px;
    }

    .designer-icon::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-10px);
    }

    .designer-icon:hover::after {
        transform: translateX(-50%) translateY(-18px);
    }
}

/* Blog Specific Styles */
.blog-card {
    border-left: 4px solid var(--secondary-color) !important;
}

.blog-card .photo-badge {
    background: var(--secondary-color) !important;
}

/* Ensure the blog tab button stands out when active */
.filter-tab[data-status="blog"].active {
    background: white;
    ;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.blog-card:hover .blog-type-icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
    background: #4f46e5 !important;
}

.blog-card:hover .blog-type-icon svg {
    stroke: white;
}

/* Announcement Carousel Styles */
.carousel-slide {
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    padding: 0;
}

.carousel-dot:hover {
    transform: scale(1.2);
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}