@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;700&display=swap');

:root {
    --bg-dark: #3b0000;
    --bg-card: #5a0000;
    --primary: #dc2626;
    --primary-dark: #991b1b;
    --primary-light: #ef4444;
    --gold: linear-gradient(171deg, #ffffb9, #feae0b 51.68%, #c37b00);
    --red-grad: linear-gradient(180deg, #dc2626 18%, #991b1b 84%);
    --text-main: #ffffff;
    --text-muted: #ffcccc;
    --red-text: #dc2626;
    --font-fam: 'Noto Sans Thai', sans-serif;
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-fam);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: 90px;
}

.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100lvh;
    background-image: url("main-background-deluxe.webp");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}

.hero-content h1 span {
    display: block;
    margin-top: 8px;
}

/** start hero-card **/
.hero-card {
  margin: 30px auto;
  max-width: 1160px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--bg-card);
}

.hero-card__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  align-items: center;
}

.hero-card__text {
  padding: 18px 10px 0px 12px;
}

.hero-card__text h2 {
  margin: 0 0 18px;
  font-size: 36px;
  line-height: 1.08;
  font-weight: 800;
  color: #ffd44d;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
}

.hero-card__text p {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.65;
  color: #fff;
}

.hero-card__text ul {
  margin: 0;
  padding-left: 26px;
  color: #fff;
}

.hero-card__text li {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.6;
}

.hero-card__media {
  padding: 6px;
}

.hero-card__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 2px solid rgba(255, 193, 73, 0.65);
  box-shadow:
    0 18px 35px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(255, 177, 48, 0.25);
  background: #0c1d7a;
}

@media (max-width: 1100px) {
  .hero-card__inner {
    grid-template-columns: 1fr;
  }

  .hero-card__text h2 {
    font-size: 42px;
  }

  .hero-card__text p,
  .hero-card__text li {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .bottom-height {
    display: block;
    height: 30px;
  }

  .hero-card {
    margin: 20px;
    padding: 8px;
    border-radius: 20px;
  }

  .hero-card__text h2 {
    font-size: 24px;
  }

  .hero-card__text p,
  .hero-card__text li {
    font-size: 16px;
  }

  .hero-card__media img {
    border-radius: 18px;
  }
}
/** end hero-card **/

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    backdrop-filter: blur(10px);
    background-color: rgba(59, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    position: relative;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-main);
    font-weight: 500;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.logo {
    position: absolute;
    left: 50%;
    top: -5px;
    transform: translateX(-50%);
    z-index: 1050;
}

.logo img {
    width: 180px;
    min-width: 180px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
}

.logo:hover img {
    transform: scale(1.05);
}

.line-contact img {
    position: absolute;
    right: 12px;
    top: 15px;
    height: 45px;
    object-fit: contain;
}

/* Main Banner */
.hero-section {
    text-align: center;
    padding: 100px 20px 60px;
    background: url("background.webp");
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    margin-top: 200px;
}

.hero-section h1 span {
    color: #ffffff;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-register-banner img {
    max-width: 100%;
    width: 500px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-register-banner:hover img {
    transform: translateY(-5px);
    /*box-shadow: 0 0 30px rgba(254, 174, 11, 0.6);*/
}

/* Features CTA */
.features-section {
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-card .icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(80, 0, 0, 0.4), rgba(220, 38, 38, 0.15));
    color: var(--primary-light);
    border: 1px solid rgba(220, 38, 38, 0.3);
    box-shadow: inset 0 0 15px rgba(220, 38, 38, 0.1), 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.feature-card:hover .icon-wrapper {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.5), rgba(153, 27, 27, 0.3));
    box-shadow: inset 0 0 20px rgba(220, 38, 38, 0.3), 0 5px 20px rgba(220, 38, 38, 0.4);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary);
}

.feature-icon {
    width: 32px;
    height: 32px;
    fill: white;
    transition: transform 0.3s ease;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #ffd44d;
}

.feature-card p {
    color: #ffffff;
    font-size: 0.95rem;
}

/* Services section */
.services-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.services-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.services-section p {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ffffff;
}

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

.service-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    /*background: #111;*/
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.service-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(59, 0, 0, 0.9), transparent);
    padding: 20px 10px 10px;
    font-weight: 500;
}

.service-item-v2 {
    position: relative;
    border: solid 2px #D2AA3D;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #111;
}


.service-item-v2:hover {
    transform: translateY(-10px);
}

.service-item-v2 img {
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Action Buttons */
.actions-section {
    max-width: 600px;
    margin: 30px auto;
    display: flex;
    gap: 20px;
    padding: 0 20px;
    justify-content: center;
}

.btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    transition: filter 0.3s ease, transform 0.2s ease;
}

.btn-action:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}

.btn-action.register {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 15px rgba(254, 174, 11, 0.4);
}

.btn-action.login {
    background: var(--red-grad);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
    border: 1px solid var(--primary-light);
}

/* Hot Games */
.hot-games {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.hot-games h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #fff;
}

.games-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #222;
}

.games-carousel img {
    width: 140px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.games-carousel img:hover {
    transform: translateY(-5px);
}

/* Supported Banks */
.banks-section {
    max-width: 1000px;
    margin: 60px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0 20px;
    align-items: center;
}

.banks-section img {
    height: 60px;
    max-width: 100px;
    object-fit: contain;
    filter: grayscale(0.5);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.banks-section img:hover {
    filter: grayscale(0);
    transform: scale(1.1);
}

/* SEO Content */
.seo-content {
    max-width: 1160px;
    margin: 60px auto 30px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.seo-content-ext {
    margin-top: 18px !important;
}

.seo-content h2,
.seo-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    margin-top: 25px;
}

.seo-content h2:first-child {
    margin-top: 0;
}

.seo-content p {
    color: #ffffff;
    margin-bottom: 15px;
}

/* Main Footer */
.site-footer {
    background-color: #2a0000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    width: 80px;
    max-width: 80px;
    margin-top: -20px;
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.about-col p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.age-restriction {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.age-restriction span {
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

.links-col ul {
    list-style: none;
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}

.links-col ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.support-col p {
    margin-bottom: 15px;
}

.footer-line-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #00B900;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, filter 0.2s;
}

.footer-line-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.footer-line-btn img {
    height: 24px;
}

.footer-bottom {
    /*background-color: #1a0000;*/
    background-color: #2a0000;
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
}

/* Footer Action */
.bottom-action {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-news {
    display: inline-block;
    padding: 10px 30px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    transition: background 0.3s ease;
}

.btn-news:hover {
    background: var(--primary);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.menu-panel {
    position: relative;
    z-index: 2;
    width: min(86vw, 380px);
    height: 100%;
    padding: 24px 22px 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 90, 90, 0.12), transparent 28%),
        linear-gradient(180deg, #7a0000 0%, #650000 100%);
    box-shadow: 18px 0 45px rgba(0, 0, 0, 0.35);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.menu-overlay.active .menu-panel {
    transform: translateX(0);
}

.menu-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 0px;
}

.menu-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 196, 76, 0.12);
    border: 1px solid rgba(255, 208, 83, 0.35);
    color: #ffd56b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.menu-brand p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.menu-close {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #ff5b5b;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.04);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-links a {
    display: block;
    padding: 18px;
    border-radius: 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.nav-links a.active {
    color: #ffd56b;
    background: linear-gradient(90deg, rgba(255, 190, 80, 0.12), transparent);
}

.menu-footer {
    margin-top: auto;
    display: grid;
    gap: 12px;
    padding-top: 24px;
}

.menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
}
.menu-btn-ext {
    border: none;
    background: transparent;
    cursor: pointer;
}

.menu-btn-primary {
    background: linear-gradient(180deg, #ffcc57 0%, #ff9f1c 100%);
    color: #4b0000;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.menu-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .menu-panel {
        width: 88vw;
        padding: 20px 18px 24px;
    }

    .nav-links a {
        font-size: 18px;
        padding: 12px;
    }

    .menu-btn {
        min-height: 48px;
        font-size: 17px;
    }
}

/* Responsive */
/*@media (max-width: 992px) {
    .features-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section h1 {
        margin-top: 140px;
    }
}*/

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(59, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    gap: 4px;
    transition: color 0.3s;
}

.mobile-bottom-nav .nav-item>svg {
    height: 24px;
    width: auto;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: var(--primary-light);
}

.mobile-bottom-nav .main-action {
    position: relative;
    top: -21px;
}

.mobile-bottom-nav .main-action-inner {
    width: 60px;
    height: 60px;
    background: var(--red-grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
    color: #fff;
    border: 3px solid var(--bg-dark);
}

.mobile-bottom-nav .main-action-inner svg {
    height: 28px;
    width: auto;
}

@media (max-width: 768px) {
    .bottom-height {
        height: 100px;
    }

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

    .actions-section {
        flex-direction: column;
    }

    .hero-section h1 {
        font-size: 24px;
    }

    .logo img {
        margin-top: 10px;
        min-width: 120px;
        width: 120px;
    }

    .logo {
        top: -5px;
    }

    .seo-content {
        margin: 60px 18px 30px;
        padding: 15px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 70px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .feature-card .icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .feature-icon {
        width: 24px;
        height: 24px;
    }

    .hero-content {
        transform: scale(0.6);
        transform-origin: top center;
    }

    .hero-section {
        padding-bottom: 0px;
        max-height: 250px;
    }

    .hero-section h1 {
        margin-top: 0px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .feature-card .icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .feature-icon {
        width: 24px;
        height: 24px;
    }
}

/** contact-card **/
.contact-card {
  padding: 15px;
}

.contact-card__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 28px;
  border-radius: 28px;
  background: var(--bg-card);
}

.contact-card__tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 196, 120, 0.12);
  border: 1px solid rgba(255, 196, 120, 0.22);
  color: #ffb347;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.contact-card h2 {
  margin: 0 0 16px;
  color: #ff4d4d;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  font-weight: 800;
}

.contact-card p {
  margin: 0;
  max-width: 680px;
  color: #fff7f2;
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.8;
  font-weight: 500;
}

.contact-card__actions {
  margin-top: 28px;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, #31d366 0%, #17b84f 100%);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(23, 184, 79, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-line:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(23, 184, 79, 0.34);
  filter: brightness(1.03);
}

.btn-line:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .contact-card {
    padding: 18px 12px;
  }

  .contact-card__inner {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .contact-card h2 {
    margin-bottom: 14px;
  }

  .contact-card p {
    font-size: 18px;
    line-height: 1.7;
  }

  .btn-line {
    width: 100%;
    font-size: 18px;
  }
}

.menu-section-title {
    margin: 18px 0 14px;
    color: rgba(255,255,255,0.92);
    font-size: 15px;
    font-weight: 700;
}

.menu-section-title--small {
    color: rgba(255,255,255,0.82);
    font-size: 14px;
}

.menu-sub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.menu-sub-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,240,240,0.88);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.22s ease;
}

.menu-sub-links a:hover,
.menu-sub-links a:focus {
    color: #ffd44d;
    background: rgba(255,212,77,0.10);
    border-color: rgba(255,212,77,0.24);
    transform: translateY(-1px);
}

.menu-sub-links a.active {
    color: #ffd56b;
    background: linear-gradient(90deg, rgba(255, 190, 80, 0.12), transparent);
}
/*.menu-sub-links a:visited {
    color: rgba(255,240,240,0.88);
}*/

.bottom-height {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 110px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-bottom: 110px;
    }
}

/* ===== Fix hero overlap for iPad Gen 5 / Surface Duo ===== */
@media (min-width: 540px) and (max-width: 900px) {
    .hero-section h1 {
        margin-top: 60px;
    }

    .hero-section h1 span {
        display: block;
        font-size: 0.88em;
        line-height: 1.3;
        margin-top: 8px;
    }
}

/* iPad mini portrait */
@media (min-width: 744px) and (max-width: 820px) {
    .hero-section h1 {
        margin-top: 100px;
    }

    .hero-section h1 span {
        font-size: 0.84em;
        line-height: 1.25;
        margin-top: 6px;
    }
}