
:root {
    --primary-gradient: linear-gradient(135deg, #00c2ff 0%, #0099cc 50%, #006699 100%);
    --secondary-gradient: linear-gradient(135deg, #8b0000 0%, #660000 50%, #440000 100%);
    --dark-gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    --gold-gradient: linear-gradient(45deg, #00ffee 0%, #4affed 50%, #00a0ae 100%);
    --accent-cyan: #00c2ff;
    --accent-dark-red: #8b0000;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --border-color: #333333;
    --border-light: #444444;
    --shadow-cyan: 0 10px 40px rgba(0, 194, 255, 0.3);
    --shadow-red: 0 10px 40px rgba(139, 0, 0, 0.3);
    --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --glass-bg: rgba(26, 26, 26, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--dark-gradient);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 194, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 255, 237, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 160, 174, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

body.mobile-menu-open {
    overflow: hidden;
}

.blog-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    position: relative;
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-cyan);
    overflow: hidden;
}

.logo-icon::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: logoShine 3s ease-in-out infinite;
}

@keyframes logoShine {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.logo-icon i {
    font-size: 20px;
    color: white;
    position: relative;
    z-index: 2;
}

.logo-icon .fa-water {
    position: absolute;
    opacity: 0.7;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-size: 24px;
    font-weight: 900;
    color: var(--accent-cyan);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
}
.nav-list li {
    position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 12px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    /* background: var(--accent-cyan); */
    transition: left 0.3s ease;
    z-index: 0;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    transform: translateY(-2px);
}

.nav-link i,
.nav-link span {
    position: relative;
    z-index: 1;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition-fast);
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hamburger {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  transition: right 0.3s ease;
  border-left: 1px solid var(--border-color);
}
.mobile-nav.active {
  right: 0;
}
.mobile-nav-content {
  padding: 80px 24px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  transition: var(--transition-fast);
}
.mobile-nav-link:hover {
  background: var(--primary-gradient);
  color: white;
}

.sidebar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    position: sticky;
    top: 120px;
    height: fit-content;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 194, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.sidebar:hover::before {
    left: 100%;
}

.sidebar:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 194, 255, 0.2);
    border-color: rgba(0, 194, 255, 0.3);
}

.sidebar-section {
    margin-bottom: 2.5rem;
    position: relative;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    color: var(--accent-cyan);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
    transition: all 0.4s ease;
}

.sidebar-section:hover h3::after {
    width: 80px;
    box-shadow: 0 0 20px rgba(74, 255, 237, 0.5);
}

.filter-list,
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.filter-item,
.category-item {
    padding: 0.9rem 1.2rem;
    color: var(--text-secondary);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid transparent;
    overflow: hidden;
}

.filter-item::before,
.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-item:hover::before,
.category-item:hover::before {
    left: 100%;
}

.filter-item:hover,
.category-item:hover {
    color: var(--text-primary);
    background: rgba(0, 194, 255, 0.1);
    border-color: rgba(0, 194, 255, 0.3);
    transform: translateX(8px);
}

.filter-item.active,
.category-item.active {
    background: var(--primary-gradient);
    color: white;
    transform: translateX(8px);
    box-shadow: var(--shadow-cyan);
    border-color: var(--accent-cyan);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag-item {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.tag-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.4s ease;
}

.tag-item:hover::before {
    left: 100%;
}

.tag-item:hover {
    background: var(--gold-gradient);
    color: white;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 255, 237, 0.3);
}


.main-content {
    padding-top: 2rem;
    min-height: 80vh;
}

.search-container {
    position: relative;
    margin-bottom: 3rem;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
}

.search-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(0, 194, 255, 0.1), var(--shadow-cyan);
    background: rgba(26, 26, 26, 0.9);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition-fast);
    pointer-events: none;
}

.search-input:focus + .search-icon {
    color: var(--accent-cyan);
    transform: translateY(-50%) scale(1.1);
}


.loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.loading i {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading p {
    font-size: 1.1rem;
    font-weight: 500;
}

.error-message,
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.error-message i,
.no-results i {
    font-size: 3rem;
    color: var(--accent-dark-red);
    margin-bottom: 1rem;
}

.error-message p,
.no-results p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ── Blog pagination ──────────────────────────────────── */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 0 8px;
}
.bp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(17,24,39,0.10);
  background: #fff;
  color: #374151;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.bp-btn:hover:not(.bp-disabled):not(.bp-active) {
  border-color: #055A78;
  color: #055A78;
  box-shadow: 0 2px 8px rgba(5,90,120,0.10);
}
.bp-active {
  background: #055A78;
  color: #fff;
  border-color: #055A78;
}
.bp-disabled {
  opacity: 0.35;
  cursor: default;
}
.bp-dots {
  color: #9CA3AF;
  font-size: 0.85rem;
  padding: 0 2px;
}
@media (max-width: 480px) {
  .bp-btn { min-width: 34px; height: 34px; font-size: 0.82rem; }
  .blog-pagination { gap: 4px; }
}

.blog-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.blog-post {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 194, 255, 0.03), transparent);
    transition: left 0.8s ease;
}

.blog-post:hover::before {
    left: 100%;
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 194, 255, 0.2);
    border-color: rgba(0, 194, 255, 0.3);
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.blog-title {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
    cursor: pointer;
}

.blog-title:hover {
    color: var(--accent-cyan);
}

.blog-category {
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.blog-category:hover {
    background: var(--gold-gradient);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(74, 255, 237, 0.3);
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.meta-item:hover {
    color: var(--accent-cyan);
}

.meta-item i {
    font-size: 0.85rem;
}

.blog-excerpt {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.blog-tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.blog-tag:hover {
    background: var(--gold-gradient);
    color: white;
    transform: scale(1.05);
    border-color: rgba(74, 255, 237, 0.5);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    position: relative;
    padding-bottom: 2px;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: width 0.3s ease;
}

.read-more:hover::after {
    width: 100%;
}

.read-more:hover {
    color: white;
    gap: 0.8rem;
}

.read-more i {
    transition: var(--transition-fast);
}

.read-more:hover i {
    transform: translateX(3px);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    max-width: 1200px;
    width: 96%;
    margin: 5vh auto;
    padding: 3rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-dark);
    border-radius: 24px;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close-modal:hover {
    color: var(--accent-dark-red);
    background: rgba(139, 0, 0, 0.2);
    transform: scale(1.1);
}

.modal-title {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    padding-right: 3rem;
}

.modal-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.modal-content-text {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.modal-content-text p {
    margin-bottom: 1.5rem;
}


@media (max-width: 1024px) {
    .blog-main-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 20px;
    }

    .sidebar {
        position: static;
        order: -1;
        margin-top: 0;
        margin-bottom: 0 !important;
        padding: 0 !important;
        border-radius: 0;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    .sidebar:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .sidebar::before {
        display: none !important;
    }

    /* Collapse categories + tags on mobile, keep filters visible */
    .sidebar .sidebar-section:nth-child(n+2) {
        display: none;
    }

    .sidebar .sidebar-section:first-child {
        margin-bottom: 0;
    }

    /* Make filters horizontal on mobile */
    .sidebar .filter-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .sidebar .sidebar-section:first-child h3 {
        display: none;
    }

    .sidebar .filter-item {
        padding: 0.55rem 0.9rem !important;
        font-size: 0.85rem !important;
        border-radius: 999px !important;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .blog-meta {
        gap: 1rem;
    }

    .blog-title {
        font-size: 1.6rem;
    }

    .modal-content {
        margin: 5% auto;
        padding: 2rem;
        width: 95%;
    }

    .modal-title {
        font-size: 1.8rem;
        padding-right: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .sidebar {
        padding: 1.5rem;
    }

    .blog-post {
        padding: 1.5rem;
    }

    .blog-title {
        font-size: 1.4rem;
    }

    .search-input {
        padding: 0.8rem 2.5rem 0.8rem 1.2rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 2% auto;
    }
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-gradient);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-gradient);
}


html {
    scroll-behavior: smooth;
}


.search-input:focus,
.filter-item:focus,
.category-item:focus,
.tag-item:focus,
.read-more:focus {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}


.blog-post:nth-child(1) { animation-delay: 0.1s; }
.blog-post:nth-child(2) { animation-delay: 0.2s; }
.blog-post:nth-child(3) { animation-delay: 0.3s; }
.blog-post:nth-child(4) { animation-delay: 0.4s; }
.blog-post:nth-child(5) { animation-delay: 0.5s; }


.footer {
  background: var(--dark-gradient);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer-section h4 {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--accent-cyan);
  color: white;
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 8px;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
}

.payment-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.payment-item:hover {
  background: var(--accent-cyan);
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

.gambling-warning {
  background: rgba(139, 0, 0, 0.1);
  border: 1px solid var(--accent-dark-red);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.warning-icon {
  color: var(--accent-dark-red);
  font-size: 1.5rem;
  margin-top: 4px;
}

.warning-content h5 {
  color: var(--accent-dark-red);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.warning-content p {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.help-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.help-links a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.help-links a:hover {
  text-decoration: underline;
}

.footer-legal {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.disclaimer {
  margin-top: 8px;
  font-size: 0.8rem;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 20px;
}

.spinner-container {
  position: relative;
  margin-bottom: 32px;
}

.spinner {
  width: 80px;
  height: 80px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 4px;
}

.spinner-dots span {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: dotPulse 1.4s ease-in-out infinite both;
}

.spinner-dots span:nth-child(1) {
  animation-delay: -0.32s;
}
.spinner-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dotPulse {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.loading-text {
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: 500;
}

.error-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.error-icon {
  font-size: 4rem;
  color: var(--accent-dark-red);
  margin-bottom: 24px;
}

.error-title {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 700;
}

.error-message {
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.retry-btn {
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cyan);
}

.hidden {
  display: none !important;
}

.casino-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.casino-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  background: var(--card-gradient);
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-dark);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--secondary-gradient);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-red);
}

.modal-body {
  padding: 40px;
}

.modal-header {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-casino-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent-cyan);
}

.modal-casino-info h2 {
  color: var(--accent-cyan);
  margin-bottom: 12px;
  font-size: 2rem;
}

.modal-rating {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-score {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.rating-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.modal-description {
  margin-bottom: 32px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-description p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.1rem;
}

.modal-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.modal-pros,
.modal-cons {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-pros h3 {
  color: #4ade80;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-cons h3 {
  color: #f87171;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-pros ul,
.modal-cons ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-pros li {
  color: var(--text-secondary);
  position: relative;
  padding-left: 24px;
  line-height: 1.5;
}

.modal-pros li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: bold;
  font-size: 1.1rem;
}

.modal-cons li {
  color: var(--text-secondary);
  position: relative;
  padding-left: 24px;
  line-height: 1.5;
}

.modal-cons li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #f87171;
  font-weight: bold;
  font-size: 1.1rem;
}

.modal-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.modal-section h3 {
  color: var(--accent-cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section.full-width {
  grid-column: 1 / -1;
}

.bonus-package,
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.package-item,
.info-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--accent-cyan);
}

.payment-methods-detailed,
.providers-detailed,
.features-detailed {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-method-detailed,
.provider-detailed {
  background: var(--accent-cyan);
  color: white;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.feature-detailed {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-detailed i {
  color: #4ade80;
}

.modal-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.modal-claim-btn {
  background: var(--gold-gradient);
  color: #000;
  border: none;
  border-radius: 16px;
  padding: 16px 32px;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-claim-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 4rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.empty-state h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.empty-action-btn {
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  margin-top: 24px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.empty-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cyan);
}

@media (max-width: 1200px) {
  .casino-main {
    grid-template-columns: 140px 1fr;
    gap: 24px;
  }

  .casino-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    margin-top: 24px;
    min-width: auto;
    max-width: 100%;
  }

  .casino-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pros-cons-section {
    grid-template-columns: 1fr;
  }

  .modal-pros-cons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-actions {
    display: none;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .filters-container {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .filter-group {
    justify-content: center;
  }

  .filter-actions {
    justify-content: center;
  }

  .results-info {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .casino-card {
    padding: 24px;
  }

  .casino-main {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .casino-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }

  .casino-actions {
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }

  .casino-hover-details {
    position: static;
    opacity: 1;
    transform: none;
    border-radius: 16px;
    margin-top: 16px;
  }

  .hover-content {
    grid-template-columns: 1fr;
  }

  .spotlight-content {
    padding: 32px 24px;
  }

  .spotlight-header {
    flex-direction: column;
    text-align: center;
  }

  .spotlight-title {
    font-size: 1.8rem;
  }

  .spotlight-features {
    grid-template-columns: 1fr;
  }

  .faq-header {
    margin-bottom: 48px;
  }

  .faq-question {
    padding: 20px 24px;
  }

  .faq-answer p {
    padding: 0 24px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gambling-warning {
    flex-direction: column;
    text-align: center;
  }

  .warning-icon {
    margin-bottom: 16px;
  }

  .footer-legal {
    font-size: 0.85rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links a {
    text-align: left;
  }

  .payment-methods {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  }

  .payment-item {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .casino-modal {
    padding: 10px;
  }

  .modal-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .modal-casino-logo {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }

  .modal-casino-info h2 {
    font-size: 1.5rem;
  }

  .modal-rating {
    flex-direction: column;
    align-items: center;
  }

  .rating-score {
    font-size: 1.2rem;
  }
}

body.modal-open .mobile-menu-btn {
  pointer-events: none;
  opacity: 0.4; /* Optional: shows it's disabled */
}

.modal-content-text, .blog-article {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 1.18rem;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

.modal-content-text h1, .blog-article h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 2rem 0 1rem 0;
  color: var(--accent-cyan);
}

.modal-content-text h2, .blog-article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem 0;
  color: var(--accent-cyan);
}

.modal-content-text h3, .blog-article h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem 0;
  color: var(--accent-cyan);
}

.modal-content-text p, .blog-article p {
  margin-bottom: 1.25em;
}

.modal-content-text img, .blog-article img {
  display: block;
  max-width: 100%;
  margin: 2rem auto;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

.modal-content-text ul, .blog-article ul,
.modal-content-text ol, .blog-article ol {
  margin: 1.2em 0 1.2em 2.2em;
  padding: 0;
}

.modal-content-text li, .blog-article li {
  margin-bottom: 0.7em;
}

.modal-content-text blockquote, .blog-article blockquote {
  border-left: 4px solid var(--accent-cyan);
  background: rgba(0, 194, 255, 0.06);
  color: var(--text-secondary);
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-radius: 12px;
  font-style: italic;
}

.modal-content-text pre, .blog-article pre {
  background: #212d40;
  color: #ffed4a;
  padding: 1em 1.5em;
  border-radius: 12px;
  font-size: 1em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.modal-content-text table, .blog-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
}
.modal-content-text th, .blog-article th {
  background: var(--accent-cyan);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 0.7em 1em;
  border: 1px solid rgba(0,0,0,0.1);
}
.modal-content-text td, .blog-article td {
  padding: 0.6em 1em;
  border: 1px solid var(--border-light);
}
.modal-content-text tr:nth-child(even), .blog-article tr:nth-child(even) {
  background: rgba(0, 194, 255, 0.04);
}
html[data-theme="light"] .modal-content-text th,
html[data-theme="light"] .blog-article th {
  background: #055A78;
}
html[data-theme="light"] .modal-content-text td,
html[data-theme="light"] .blog-article td {
  border-color: #e5e7eb;
}
html[data-theme="light"] .modal-content-text tr:nth-child(even),
html[data-theme="light"] .blog-article tr:nth-child(even) {
  background: #f3f8fa;
}

.modal-content-text hr, .blog-article hr {
  border: none;
  border-top: 2px solid var(--border-light);
  margin: 2em 0;
}

body.modal-open {
  overflow: hidden;
}

@media (min-width: 1025px) {
  .modal-content {
    max-width: 1200px;
    width: 96%;
  }

  .modal-content-text {
    width: 100%;
    max-width: none;
  }
}

@media (min-width: 700px) {
  #blogModal .modal-content {
    max-width: 900px;
    width: 94vw;
    margin: 5vh auto;
  }
  #blogModal #modalContent,
  #blogModal #modalContent > .blog-post,
  #blogModal #modalContent > .blog-article {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    display: block;
    box-sizing: border-box;
  }
}

/* Default global links (for nav, etc.) */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  text-decoration: none;
}

.blog-container {
  margin-bottom: 64px; /* adds spacing below the last blog card */
}

.sidebar {
  margin-bottom: 40px; /* adds spacing below the sidebar */
}

/* --- Single Post Page --- */
.post-hero {
  background: var(--dark-gradient);
  border-bottom: 1px solid var(--border-color);
  padding: 48px 0 16px;
}
.post-hero-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: center;
}
.post-hero-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.post-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0 0 16px;
  position: relative;
}

.post-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--gold-gradient);
  opacity: 0.9;
}

.post-meta {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-weight: 600;
}
.post-meta i { margin-right: 6px; }

.post-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  margin-top: 24px;
}

.post-article {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.share-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.share-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  border-radius: 10px; cursor: pointer;
  text-decoration: none; color: var(--text-secondary);
  transition: var(--transition-fast);
}
.share-btn:hover { transform: translateY(-2px); color: #fff; }

.post-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  padding: 6px 10px; border-radius: 999px; font-size: .9rem;
}

.author-box {
  margin-top: 28px; padding: 18px;
  display: flex; gap: 14px; align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary-gradient);
  color: #fff; font-weight: 900;
}
.author-name { font-weight: 800; color: var(--text-primary); }

/* Author box with avatar image */
.author-avatar-link { flex-shrink: 0; }
.author-avatar-img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(10,166,214,0.20);
}
.author-name-link {
  font-weight: 900; font-size: 1.05rem;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  line-height: 1.2;
}
.author-name-link:hover { color: #0AA6D6; }
.author-role {
  color: #0AA6D6;
  font-weight: 700;
  font-size: 0.82rem;
  margin: 3px 0 8px;
  letter-spacing: 0.01em;
}
.author-bio {
  color: var(--text-secondary, rgba(255,255,255,0.55));
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.55;
  opacity: 0.8;
}

/* Author link in post meta */
.post-meta-link {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.post-meta-link:hover {
  color: #0AA6D6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-nav {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border-color);
}
.post-nav-link {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  padding: 12px 14px; border-radius: 12px; text-decoration: none;
  color: var(--text-secondary); font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
}
.post-nav-link:hover { color: #fff; transform: translateY(-2px); }

.post-sidebar { position: sticky; top: 96px; height: fit-content; }
.sidebar-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 20px; margin-bottom: 20px;
}
.sidebar-card h3 { color: var(--accent-cyan); margin-bottom: 12px; }
.sidebar-links { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
.sidebar-links a { color: var(--text-secondary); text-decoration: none; }
.sidebar-links a:hover { color: #fff; }

.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related-list a { color: var(--text-secondary); text-decoration: none; }
.related-list a:hover { color: #fff; }

@media (max-width: 1024px) {
  .post-hero-inner { grid-template-columns: 1fr; }
  .post-container { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .post-article { padding: 16px 14px; overflow-x: hidden; }
  .post-container { overflow-x: hidden; }
  .blog-article { max-width: 100%; overflow-wrap: break-word; word-break: break-word; }
}

/* Internal links inside blog posts */
.blog-article a,
.modal-content-text a {
  color: var(--accent-cyan);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(0, 194, 255, 0.4); /* subtle underline */
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.blog-article a:hover,
.modal-content-text a:hover {
  color: #fff; /* white on hover */
  text-decoration-color: var(--accent-cyan);
}

/* Highlighted info box for blog posts */
.tip-box {
  background: rgba(0, 194, 255, 0.08); /* subtle accent tint */
  border: 1px solid var(--accent);
  border-left: 5px solid var(--accent);
  padding: 18px 20px;
  margin: 26px 0;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 194, 255, 0.15);
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.65;
}

.tip-box strong {
  color: var(--accent);
  font-weight: 800;
}

.tip-box a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.tip-box a:hover {
  filter: brightness(1.3);
}

/* =========================================================
   Blog polish pass – premium editorial
   ========================================================= */

/* Layout spacing */
html[data-theme="light"] .blog-main-container {
  gap: 2.25rem !important;
  padding-top: 22px !important;
}

/* Sidebar: slightly tighter, more editorial */
html[data-theme="light"] .sidebar {
  padding: 1.6rem !important;
}

html[data-theme="light"] .sidebar-section h3 {
  font-size: 1.15rem !important;
  letter-spacing: 0.6px !important;
}

/* Make filter list feel more "UI" and less "menu" */
html[data-theme="light"] .filter-item,
html[data-theme="light"] .category-item {
  padding: 0.75rem 1rem !important;
  font-size: 0.95rem !important;
  transform: none !important;
}

html[data-theme="light"] .filter-item:hover,
html[data-theme="light"] .category-item:hover {
  transform: none !important;
}

/* Search bar: slightly tighter + more premium */
html[data-theme="light"] .search-container {
  margin-bottom: 2.2rem !important;
}

html[data-theme="light"] .search-input {
  padding: 0.95rem 3rem 0.95rem 1.25rem !important;
  border-radius: 18px !important; /* less pill, more editorial */
}

/* Blog card typography polish */
html[data-theme="light"] .blog-post {
  padding: 1.8rem !important;
  border-radius: 18px !important;
}

html[data-theme="light"] .blog-title {
  font-size: 1.65rem !important;
  letter-spacing: -0.3px !important;
  line-height: 1.25 !important;
}

html[data-theme="light"] .blog-excerpt {
  color: #2F3A46 !important;
  font-size: 1.03rem !important;
  line-height: 1.7 !important;
}

/* Meta row: a touch darker for readability */
html[data-theme="light"] .blog-meta {
  color: rgba(17,24,39,0.60) !important;
}

/* Category pill: slightly smaller + cleaner */
html[data-theme="light"] .blog-category {
  padding: 0.45rem 0.95rem !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.6px !important;
}

/* Read more: keep it clean + consistent */
html[data-theme="light"] .read-more {
  font-weight: 700 !important;
}
html[data-theme="light"] .read-more:hover {
  color: #055A78 !important;
}

/* -------------------------
   Modal polish
   ------------------------- */

/* Modal container: slightly less dark overlay */
html[data-theme="light"] #blogModal.modal {
  background: rgba(17, 24, 39, 0.45) !important;
}

/* Modal card: add breathing room + better radius */
html[data-theme="light"] #blogModal .modal-content {
  border-radius: 20px !important;
  padding: 2.4rem 2.2rem !important;
}

/* Close button: smaller, premium, not a huge gray bubble */
html[data-theme="light"] #blogModal .close-modal {
  width: 42px !important;
  height: 42px !important;
  font-size: 22px !important;
  border-radius: 12px !important;
  background: rgba(17,24,39,0.06) !important;
  border: 1px solid rgba(17,24,39,0.10) !important;
  color: rgba(17,24,39,0.55) !important;
}

html[data-theme="light"] #blogModal .close-modal:hover {
  background: rgba(185, 28, 28, 0.10) !important;
  border-color: rgba(185, 28, 28, 0.22) !important;
  color: #B91C1C !important;
  transform: none !important;
}

/* Modal title: slightly tighter */
html[data-theme="light"] #blogModal .modal-title {
  font-size: 2rem !important;
  letter-spacing: -0.4px !important;
}

/* Modal body text: better contrast */
html[data-theme="light"] #blogModal .modal-content-text {
  color: #2F3A46 !important;
}

/* Links inside modal/blog article: keep consistent (don’t turn white on hover) */
html[data-theme="light"] .modal-content-text a,
html[data-theme="light"] .blog-article a {
  color: #0AA6D6 !important;
  text-decoration-color: rgba(10,166,214,0.35) !important;
}

html[data-theme="light"] .modal-content-text a:hover,
html[data-theme="light"] .blog-article a:hover {
  color: #056F95 !important;
  text-decoration-color: rgba(10,166,214,0.55) !important;
}

/* Remove any leftover dark-mode “white on hover” behavior */
html[data-theme="light"] .blog-article a:hover,
html[data-theme="light"] .modal-content-text a:hover {
  filter: none !important;
}

/* =========================================================
   Blog modal – headings + link style cleanup
   ========================================================= */

/* Headings inside modal/article: stop the bright cyan look */
html[data-theme="light"] #blogModal .modal-content-text h1,
html[data-theme="light"] #blogModal .modal-content-text h2,
html[data-theme="light"] #blogModal .modal-content-text h3,
html[data-theme="light"] #blogModal .blog-article h1,
html[data-theme="light"] #blogModal .blog-article h2,
html[data-theme="light"] #blogModal .blog-article h3 {
  color: #055A78 !important;
  -webkit-text-fill-color: #055A78 !important;
  background: none !important;
}

/* Remove emoji/inline icon spacing weirdness if present */
html[data-theme="light"] #blogModal .modal-content-text h2 img,
html[data-theme="light"] #blogModal .blog-article h2 img {
  vertical-align: middle;
}

/* Links inside modal/article: no ugly underline, clean hover underline */
html[data-theme="light"] #blogModal .modal-content-text a,
html[data-theme="light"] #blogModal .blog-article a {
  color: #0AA6D6 !important;
  font-weight: 600 !important;
  text-decoration: none !important;          /* kill default underline */
  border-bottom: 2px solid transparent !important;
  padding-bottom: 1px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

/* Hover: subtle underline + slightly deeper color */
html[data-theme="light"] #blogModal .modal-content-text a:hover,
html[data-theme="light"] #blogModal .blog-article a:hover {
  color: #056F95 !important;
  border-bottom-color: rgba(10, 166, 214, 0.45) !important;
}

/* If any old rule forces underline, nuke it */
html[data-theme="light"] #blogModal .modal-content-text a *,
html[data-theme="light"] #blogModal .blog-article a * {
  text-decoration: none !important;
}

/* Optional: make paragraphs slightly more “editorial” */
html[data-theme="light"] #blogModal .modal-content-text p,
html[data-theme="light"] #blogModal .blog-article p {
  color: #2F3A46 !important;
  line-height: 1.8 !important;
}

@media (max-width: 900px) {
  html[data-theme="light"] body,
  html[data-theme="light"] .blog-main-container,
  html[data-theme="light"] .main-content,
  html[data-theme="light"] .blog-container {
    background: #F5F7FB !important;
    background-color: #F5F7FB !important;
  }

  html[data-theme="light"] .blog-post,
  html[data-theme="light"] .post-article,
  html[data-theme="light"] .sidebar,
  html[data-theme="light"] #blogModal .modal-content {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(17,24,39,0.10) !important;
  }

  html[data-theme="light"] .blog-title,
  html[data-theme="light"] .post-title,
  html[data-theme="light"] .modal-title {
    color: #111827 !important;
  }

  html[data-theme="light"] .blog-excerpt,
  html[data-theme="light"] .blog-article,
  html[data-theme="light"] .blog-article p,
  html[data-theme="light"] #blogModal .modal-content-text,
  html[data-theme="light"] #blogModal .modal-content-text p {
    color: #374151 !important;
  }
}

/* Light mode: force blog search to be white */
html[data-theme="light"] .search-container .search-input,
html[data-theme="light"] input.search-input {
  background: #ffffff !important;
  border: 1px solid rgba(17,24,39,0.12) !important;
  color: #111827 !important;
}

html[data-theme="light"] .search-container .search-input::placeholder {
  color: rgba(17,24,39,0.45) !important;
}

html[data-theme="light"] .search-container .search-icon {
  color: rgba(17,24,39,0.45) !important;
}

html[data-theme="light"] .search-container .search-input:focus {
  background: #ffffff !important;
  border-color: rgba(10,166,214,0.35) !important;
  box-shadow: 0 0 0 4px rgba(10,166,214,0.12) !important;
}

/* =========================
   BLOG POST SIDEBAR (MOBILE) – light cards like casino review pages
   ========================= */
@media (max-width: 900px) {
  html[data-theme="light"] .post-sidebar .sidebar-card {
    background: #ffffff !important;
    border: 1px solid rgba(17,24,39,0.10) !important;
    box-shadow: 0 8px 22px rgba(17,24,39,0.08) !important;
  }

  html[data-theme="light"] .post-sidebar .sidebar-card h3 {
    color: #055A78 !important;
  }

  html[data-theme="light"] .post-sidebar .sidebar-links a,
  html[data-theme="light"] .post-sidebar .related-list a {
    color: #374151 !important;
    background: transparent !important;
    display: block;
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }

  html[data-theme="light"] .post-sidebar .sidebar-links a:hover,
  html[data-theme="light"] .post-sidebar .related-list a:hover {
    background: rgba(10,166,214,0.08) !important;
    color: #056F95 !important;
  }

  /* Trusted Casinos mini cards */
  html[data-theme="light"] #casinoSidebarList.casino-sidebar-list {
    display: grid !important;
    gap: 12px !important;
  }

  html[data-theme="light"] #casinoSidebarList .casino-mini {
    background: rgba(17,24,39,0.04) !important;
    border: 1px solid rgba(17,24,39,0.10) !important;
    border-radius: 14px !important;
	align-items: start !important;
  }
  
  html[data-theme="light"] #casinoSidebarList .casino-mini > div[style*="flex-direction:column"]{
    grid-column: 1 / -1 !important;     /* make it full width row */
    align-items: stretch !important;     /* override the inline flex-end */
    margin-top: 10px !important;
  }

  html[data-theme="light"] #casinoSidebarList .casino-mini-name {
    color: #111827 !important;
  }

  html[data-theme="light"] #casinoSidebarList .casino-mini-meta {
    color: rgba(17,24,39,0.60) !important;
  }

  html[data-theme="light"] #casinoSidebarList .casino-mini-cta {
    background: #055A78 !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(5, 90, 120, 0.18) !important;
  }
}

/* =========================================================
   BLOG POST SIDEBAR – match Casino Review "Recommended Casinos"
   MOBILE ONLY (no desktop changes)
   ========================================================= */
@media (max-width: 900px) {

  /* Sidebar cards (More on BonusRiver / Related Posts / Trusted Casinos) */
  html[data-theme="light"] .post-sidebar .sidebar-card{
    background:#fff !important;
    border:1px solid rgba(17,24,39,0.10) !important;
    border-radius:18px !important;
    box-shadow:0 10px 22px rgba(17,24,39,0.08) !important;
    padding:16px !important;
  }

  html[data-theme="light"] .post-sidebar .sidebar-card h3{
    color:#055A78 !important;
    font-weight:900 !important;
    margin-bottom:12px !important;
  }

  /* Make More on BonusRiver + Related Posts links feel like clean "cards" */
  html[data-theme="light"] .post-sidebar .sidebar-links,
  html[data-theme="light"] .post-sidebar .related-list{
    display:grid !important;
    gap:10px !important;
    padding:0 !important;
    margin:0 !important;
    list-style:none !important;
  }

  html[data-theme="light"] .post-sidebar .sidebar-links a,
  html[data-theme="light"] .post-sidebar .related-list a{
    display:block !important;
    padding:10px 12px !important;
    border-radius:12px !important;
    border:1px solid rgba(17,24,39,0.12) !important;
    background:#fff !important;
    color:rgba(17,24,39,0.78) !important;
    font-weight:800 !important;
  }

  html[data-theme="light"] .post-sidebar .sidebar-links a:hover,
  html[data-theme="light"] .post-sidebar .related-list a:hover{
    background:rgba(10,166,214,0.08) !important;
    border-color:rgba(10,166,214,0.22) !important;
    color:#056F95 !important;
  }

  /* =====================================================
     Trusted Casinos – make each item look like .cr-rec-card
     ===================================================== */

  html[data-theme="light"] #casinoSidebarList.casino-sidebar-list{
    display:grid !important;
    gap:12px !important;
  }

  html[data-theme="light"] #casinoSidebarList .casino-mini{
    background:#fff !important;
    border:1px solid rgba(17,24,39,0.10) !important;
    border-radius:18px !important;
    box-shadow:0 10px 22px rgba(17,24,39,0.08) !important;
    padding:16px !important;

    display:grid !important;
    grid-template-columns:58px 1fr !important;
    gap:14px !important;
    align-items:start !important;
  }

  html[data-theme="light"] #casinoSidebarList .casino-mini-logo{
    width:58px !important;
    height:58px !important;
    border-radius:14px !important;
    object-fit:contain !important;
    background:#fff !important;
    border:1px solid rgba(17,24,39,0.08) !important;
    padding:8px !important;
  }

  html[data-theme="light"] #casinoSidebarList .casino-mini-name{
    font-weight:900 !important;
    font-size:1.05rem !important;
    margin:0 !important;
    color:#111827 !important;
    line-height:1.15 !important;
  }

  html[data-theme="light"] #casinoSidebarList .casino-mini-meta{
    margin-top:6px !important;
    display:flex !important;
    gap:10px !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    color:rgba(17,24,39,0.62) !important;
    font-weight:700 !important;
    font-size:0.92rem !important;
  }

  html[data-theme="light"] #casinoSidebarList .casino-mini-rating{
    display:inline-flex !important;
    align-items:center !important;
    gap:6px !important;
    padding:6px 10px !important;
    border-radius:999px !important;
    background:rgba(255,193,7,0.14) !important;
    border:1px solid rgba(255,193,7,0.28) !important;
    color:#111827 !important;
    font-weight:900 !important;
    white-space:nowrap !important;
	grid-column: 2 !important;
    justify-self: start !important;
  }

  html[data-theme="light"] #casinoSidebarList .casino-mini-rating .star{
    color:#F4B400 !important;
  }

  html[data-theme="light"] #casinoSidebarList .casino-mini-offer{
    margin-top:10px !important;
    color:rgba(17,24,39,0.70) !important;
    font-weight:600 !important;
    line-height:1.25 !important;
  }

  /* Put the CTA on a full new row (like recommended cards) */
  html[data-theme="light"] #casinoSidebarList .casino-mini-cta{
    grid-column:2 !important;
    width:100% !important;
    border:none !important;
    border-radius:14px !important;
    padding:14px 16px !important;
    font-weight:900 !important;
    cursor:pointer !important;
    background:#055A78 !important;
    color:#fff !important;
    box-shadow:0 10px 22px rgba(5,90,120,0.18) !important;
	font-size:1rem !important;
  }
}

@media (max-width: 768px) {
  .author-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;

    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
  }
}

/* =========================================================
   Blog listing: featured image thumbnails
   ========================================================= */
.blog-post.has-thumb {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.blog-thumb {
  overflow: hidden;
  min-height: 100%;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-post.has-thumb:hover .blog-thumb img {
  transform: scale(1.05);
}

.blog-post-body {
  padding: 2rem;
}

/* Cards without thumbnails keep original padding */
.blog-post:not(.has-thumb) .blog-post-body {
  padding: 0;
}

@media (max-width: 768px) {
  .blog-post.has-thumb {
    grid-template-columns: 1fr;
  }

  .blog-thumb {
    height: 180px;
    min-height: 180px;
  }

  .blog-post-body {
    padding: 1.5rem;
  }
}

/* Light mode: blog card thumbnails */
html[data-theme="light"] .blog-post.has-thumb {
  background: #fff !important;
  border: 1px solid rgba(17,24,39,0.10) !important;
}

/* Light mode: mobile sidebar compact filter strip */
@media (max-width: 1024px) {
  html[data-theme="light"] .sidebar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
  }

  html[data-theme="light"] .sidebar:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
  }

  html[data-theme="light"] .filter-item {
    background: #fff !important;
    border: 1px solid rgba(17,24,39,0.12) !important;
    color: rgba(17,24,39,0.65) !important;
  }

  html[data-theme="light"] .filter-item.active {
    background: rgba(10,166,214,0.12) !important;
    border-color: rgba(10,166,214,0.35) !important;
    color: #055A78 !important;
    box-shadow: none !important;
  }
}
