/* --- Global --- */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Header --- */
.main-header {
    background-color: #fff;
    border-bottom: 3px solid #007bff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 8px;
}

.logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

.logo a:hover {
    text-decoration: none;
    opacity: 0.92;
}

.logo-img {
    display: block;
    height: auto;
    max-height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #333;
    padding: 10px 5px;
    transition: color 0.3s;
    font-weight: 500;
}

.main-nav a:hover {
    color: #0056b3;
    text-decoration: none;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.lang-switch a {
    color: #333;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
}

.lang-switch a:hover {
    background: #e9ecef;
    text-decoration: none;
}

.lang-switch a.is-active {
    background: #007bff;
    color: #fff;
}

.lang-switch a.is-active:hover {
    background: #0056b3;
    color: #fff;
}

.lang-sep {
    color: #adb5bd;
    user-select: none;
}

.menu-toggle {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: transparent;
    color: #333;
}

/* --- Hero --- */
.hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
    min-height: 480px;
    padding: 72px 0;
    text-align: center;
    color: #ffffff;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-color: #0a2a55;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.1s ease-in-out;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(10, 42, 85, 0.72) 0%,
        rgba(0, 86, 179, 0.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

.hero-section h1 {
    margin-top: 0;
    font-size: 2.5em;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-section .subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }

    .hero-slide:not(.is-active) {
        opacity: 0;
    }

    .hero-slide.is-active {
        opacity: 1;
    }
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.cta-button.primary {
    background-color: #ffc107;
    color: #333;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.cta-button:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* --- Rates --- */
.rates-section {
    padding: 56px 0 64px;
    background: linear-gradient(180deg, #f0f5fc 0%, #ffffff 45%, #fafbfc 100%);
}

.rates-section-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.rates-section-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.65rem, 4vw, 2.1rem);
    font-weight: 700;
    color: #0a2d57;
    letter-spacing: -0.02em;
}

.rates-section-title-accent {
    width: 64px;
    height: 4px;
    margin: 0 auto;
    border-radius: 999px;
    background: linear-gradient(90deg, #0a2d57, #007bff, #d31224);
}

/* TV-style 3-column board */
.index-board-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.75rem;
    padding: 4px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(10, 45, 87, 0.08), rgba(211, 18, 36, 0.06));
}

.index-exchange-board {
    min-width: min(100%, 640px);
    font-family: inherit;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(10, 45, 87, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(10, 45, 87, 0.1);
    background: #fff;
}

.index-board-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
    font-weight: bold;
}

.index-head {
    padding: 1.15rem 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
}

.index-head-country {
    background: linear-gradient(165deg, #0c3566 0%, #0a2d57 50%, #082447 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.index-head-buy {
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
    color: #0a2d57;
    border-left: 1px solid rgba(10, 45, 87, 0.12);
    border-right: 1px solid rgba(10, 45, 87, 0.12);
}

.index-head-sell {
    background: linear-gradient(165deg, #e01428 0%, #d31224 45%, #b30f1e 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.index-head-main {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    letter-spacing: 0.08em;
}

.index-head-sub {
    font-size: clamp(0.78rem, 2vw, 0.95rem);
    font-weight: 600;
    opacity: 0.92;
    letter-spacing: 0.04em;
}

.index-board-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid rgba(10, 45, 87, 0.08);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.index-board-row:nth-child(even) {
    background: linear-gradient(90deg, rgba(240, 247, 255, 0.65) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 245, 245, 0.4) 100%);
}

.index-board-row:nth-child(odd) {
    background: #fff;
}

.index-board-row:hover {
    background: rgba(0, 123, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(0, 123, 255, 0.12);
}

.index-board-cell {
    padding: 1.15rem 0.85rem;
    text-align: center;
    vertical-align: middle;
}

.index-board-country {
    border-right: 1px solid rgba(10, 45, 87, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.index-board-flag {
    max-width: 76px;
    width: 100%;
    height: auto;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid rgba(10, 45, 87, 0.12);
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(10, 45, 87, 0.06);
}

.index-board-country-name {
    font-size: clamp(0.95rem, 2.2vw, 1.12rem);
    font-weight: 600;
    line-height: 1.25;
    color: #1a2b3d;
}

.index-board-rate {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    font-size: clamp(0.84rem, 2vw, 1.02rem);
    line-height: 1.4;
    border-right: 1px solid rgba(10, 45, 87, 0.1);
    color: #2c3e50;
    font-variant-numeric: tabular-nums;
}

.index-board-rate > div:first-child {
    font-weight: 600;
    color: #0a2d57;
}

.index-board-rate > div:last-child {
    font-size: 0.92em;
    color: #5a6c7d;
}

.index-board-sell {
    border-right: none;
}

.index-board-sell > div:first-child {
    color: #9b1c26;
}

.rates-empty {
    text-align: center;
    color: #5a6c7d;
    padding: 2.5rem 1.5rem;
    margin: 0 auto;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed rgba(10, 45, 87, 0.2);
    box-shadow: 0 4px 20px rgba(10, 45, 87, 0.05);
}

.rates-footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(10, 45, 87, 0.1);
    box-shadow: 0 8px 30px rgba(10, 45, 87, 0.07);
    max-width: 720px;
    margin: 0 auto;
}

.rates-footer-date {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    font-size: 0.95rem;
    color: #5a6c7d;
    text-align: center;
}

.rates-footer-date strong {
    color: #0a2d57;
    font-weight: 700;
}

.rates-footer-date-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 0.35rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
    flex-shrink: 0;
}

.rates-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 999px;
    box-shadow:
        0 4px 14px rgba(0, 123, 255, 0.35),
        0 1px 2px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.rates-cta-btn:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow:
        0 6px 20px rgba(0, 123, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1);
    filter: brightness(1.05);
}

.rates-cta-btn:active {
    transform: translateY(0);
}

/* --- Services (CEN-style 2x2 grid) --- */
.services-section {
    padding: 48px 0 56px;
    background-color: #ffffff;
}

.services-section-cen {
    border-top: 1px solid rgba(10, 45, 87, 0.08);
}

.services-cen-heading {
    text-align: center;
    margin: 0 0 2.25rem;
    font-size: clamp(1.5rem, 3.5vw, 1.85rem);
    font-weight: 700;
    color: #0a2d57;
    letter-spacing: -0.02em;
}

.services-cen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-cen-card {
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-cen-icon {
    color: #007bff;
    margin-bottom: 1rem;
    line-height: 0;
}

.service-cen-icon-svg {
    display: block;
}

.service-cen-title {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a2b3d;
    line-height: 1.3;
}

.service-cen-body {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #5a6c7d;
}

.service-cen-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.15s ease;
}

.service-cen-link:hover {
    color: #0056b3;
    text-decoration: none;
}

@media (max-width: 768px) {
    .services-cen-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- Contact page --- */
.contact-main {
    padding: 48px 0 56px;
    background: #fff;
}

.contact-main h1 {
    color: #007bff;
    margin-top: 0;
}

.contact-details {
    line-height: 1.7;
    font-size: 1.05em;
}

.contact-details dt {
    font-weight: 700;
    margin-top: 1.25em;
    color: #333;
}

.contact-details dt:first-child {
    margin-top: 0;
}

.contact-details dd {
    margin: 0.35em 0 0;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    font-weight: 600;
}

/* --- New products (Souvenir-style grid) --- */
.new-products-section {
    background: #ffffff;
    color: #333333;
    padding: 48px 0 56px;
    text-align: center;
}

.new-products-heading {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0a2a55;
}

.new-products-flourish {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
}

.new-products-flourish svg {
    width: 120px;
    height: 14px;
    color: #5eb3f6;
}

.new-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem 1rem;
    text-align: center;
}

.new-products-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.new-products-card-image {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1;
    margin: 0 auto 12px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-products-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.new-products-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.35;
    color: #333333;
    max-width: 220px;
}

.new-products-swatches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.new-products-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .new-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .new-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .new-products-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Footer --- */
.main-footer {
    background-color: #333;
    color: white;
    padding-top: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 20px;
}

.footer-block {
    flex: 1;
}

.footer-block h4 {
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    color: #ffc107;
}

.footer-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-block ul li a {
    color: white;
    line-height: 1.8;
}

.footer-block ul li a:hover {
    color: #ccc;
}

.copyright {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #444;
    font-size: 0.8em;
    background-color: #222;
}

/* --- TV-style Exchange Board Display --- */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    background: #1520d7;
}

.marquee-track {
    display: flex;
    will-change: transform;
}

.marquee-group {
    display: flex;
    white-space: nowrap;
}

.rate-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    font-size: 34px;
    color: #fff;
}

.marquee-img-thumbnail {
    background-color: #fff;
    border: 1px solid var(--bs-border-color);
    margin-top: -2px;
    margin-right: 5px;
}

.marquee-flag-size {
    width: 40px;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* TV Board Header */
.tv-board-header {
    background-color: #FFFFFF;
    background-image: url("../../assets/banner.jpeg");
    background-repeat: repeat-x;
    background-position: bottom center;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 2rem 0;
}

.tv-board-header h1 {
    position: relative;
    padding: 10;
    margin: 10;
    font-family: "Raleway", sans-serif;
    font-weight: 300;
    font-size: 40px;
    color: red;
    transition: all 0.9s ease 0s;
    text-align: center;
}

.company_name {
    font-size: 20px;
    font-size: 5vw;
    font-weight: 600;
    font-family: arial;
    background-image: -webkit-linear-gradient(92deg, #28C76F, #0396FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hue 10s infinite linear;
}

@-webkit-keyframes hue {
    from {
        -webkit-filter: hue-rotate(0deg);
    }
    to {
        -webkit-filter: hue-rotate(-360deg);
    }
}

.foo-text1 {
    font-size: 12px;
    font-size: 2vw;
}

.foo-text-footer {
    font-size: 12px;
    font-size: 1vw;
    text-align: left;
    padding-left: 30px;
}

/* TV Board Footer */
.tv-board-footer {
    background-color: #FFFFFF;
    background-image: url("../img/banner.jpeg");
    background-repeat: repeat-x;
    background-position: top center;
    min-height: auto;
    text-align: center;
}

.tv-board-footer h1 {
    position: relative;
    padding: 10;
    margin: 10;
    font-family: "Raleway", sans-serif;
    font-weight: 300;
    font-size: 40px;
    color: red;
    transition: all 0.9s ease 0s;
    text-align: center;
}

.tv-board-footer .container {
    padding: 2rem 0;
}

.text-success {
    color: #28a745 !important;
}

.text-center {
    text-align: center;
}

.exchange-board-section {
    padding: 24px 0;
    background-color: #ffffff;
    width: 100%;
}

.exchange-board-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.exchange-board {
    font-family: Arial, sans-serif;
}

.rate-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
    font-weight: bold;
}

.head {
    padding: 25px 10px;
    color: #fff;
}

.country-head {
    background: #0a2d57;
}

.buy-head {
    background: #ffffff;
    color: #0a2d57;
}

.sell-head {
    background: #d31224;
}

.head-main {
    font-size: 55px;
    letter-spacing: 1px;
}

.head-sub {
    font-size: 42px;
    margin-top: 5px;
}

.rate-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid #ddd;
}

.rate-row:nth-child(odd) {
    background: #c8b3b31c;
}

.rate-row:nth-child(even) {
    background: #ffffff;
}

.country {
    text-align: center;
    padding-top: 20px;
}

.flag {
    padding: 0.25rem;
    background-color: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    max-width: 40%;
    height: auto;
}

.country-name {
    font-size: 3vw;
}

.rate {
    text-align: center;
    font-size: 2.5vw;
    display: grid;
    align-items: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-content {
        position: relative;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        order: 5;
    }

    .main-nav.is-open {
        display: flex;
    }

    .lang-switch {
        order: 4;
        margin-left: auto;
    }

    .hero-section h1 {
        font-size: 2em;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
    }
}
