/*
 * Goreto Student Tools - Namespace Protected Theme Design System
 * 
 * Beautiful custom styles mimicking state-of-the-art SaaS layouts.
 * 100% scoped under .grt-forex-page and .grt-date-cnv-page namespaces to prevent any host conflicts.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

:root {
    --g1: hsl(350, 80%, 55%);
    --g2: hsl(270, 60%, 50%);
    --g3: hsl(220, 70%, 50%);
    --gradient: linear-gradient(135deg, #de0b16, #030eb7);
    --gradient-hover: linear-gradient(135deg, hsl(350, 80%, 48%), hsl(270, 60%, 43%), hsl(220, 70%, 43%));
    
    --background: #f7f7fc;
    --bg: #f7f7fc;
    --card: #ffffff;
    --border: #e4e2f0;
    --text: #1a1730;
    --foreground: #1a1730;
    --muted: #6b6882;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(100, 80, 180, 0.10);
    --shadow-lg: 0 8px 40px rgba(100, 80, 180, 0.16);
    --font: 'Plus Jakarta Sans', sans-serif;
    --mono: 'DM Mono', monospace;

    /* Custom utility mappings to match layout classes */
    --primary: #030eb7;
    --primary-hover: #020ba3;
    --primary-foreground: #ffffff;
    --muted-foreground: var(--muted);
    --accent: rgba(3, 14, 183, 0.04);
    --accent-foreground: #030eb7;
    --red: #de0b16;
}

/* Scoped Reset and Base Styles */
.grt-forex-page, .grt-date-cnv-page {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

.grt-forex-page *, .grt-date-cnv-page * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.grt-forex-page a, .grt-date-cnv-page a {
    color: inherit;
    text-decoration: none;
}

/* Scoped Typography Helpers */
.grt-forex-page h1, .grt-forex-page h2, .grt-forex-page h3, .grt-forex-page h4, .grt-forex-page h5, .grt-forex-page h6,
.grt-date-cnv-page h1, .grt-date-cnv-page h2, .grt-date-cnv-page h3, .grt-date-cnv-page h4, .grt-date-cnv-page h5, .grt-date-cnv-page h6 {
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.25;
}

/* Layout System */
.grt-forex-container, .grt-date-cnv-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grt-forex-container-narrow, .grt-date-cnv-container-narrow {
    max-width: 800px;
}

.grt-forex-section-padding, .grt-date-cnv-section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .grt-forex-section-padding, .grt-date-cnv-section-padding {
        padding: 3.5rem 0;
    }
}

/* Header & Navigation Styles */
.grt-forex-header, .grt-date-cnv-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.grt-forex-header-container, .grt-date-cnv-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}

.grt-forex-logo, .grt-date-cnv-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    color: var(--text);
}

.grt-forex-logo-circle, .grt-date-cnv-logo-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--gradient);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
}

.grt-forex-nav, .grt-date-cnv-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.grt-forex-nav a, .grt-date-cnv-nav a {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--muted);
    transition: color 0.2s ease;
    text-transform: uppercase;
}

.grt-forex-nav a:hover, .grt-forex-nav a.grt-active,
.grt-date-cnv-nav a:hover, .grt-date-cnv-nav a.grt-active {
    color: #de0b16; /* Styled in Goreto Red */
}

/* Buttons */
.grt-forex-btn, .grt-date-cnv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    outline: none;
}

.grt-forex-btn-primary, .grt-date-cnv-btn-primary {
    background: var(--gradient);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(3, 14, 183, 0.2);
}

.grt-forex-btn-primary:hover, .grt-date-cnv-btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(3, 14, 183, 0.3);
}

.grt-forex-btn-primary:active, .grt-date-cnv-btn-primary:active {
    transform: translateY(0);
}

.grt-forex-btn-secondary, .grt-date-cnv-btn-secondary {
    background-color: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.grt-forex-btn-secondary:hover, .grt-date-cnv-btn-secondary:hover {
    background-color: var(--background);
    transform: translateY(-1.5px);
    border-color: var(--muted);
}

/* Mobile Navigation Hamburger */
.grt-forex-mobile-nav-toggle, .grt-date-cnv-mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 1024px) {
    .grt-forex-nav, .grt-date-cnv-nav {
        display: none;
    }
    .grt-forex-header-btn, .grt-date-cnv-header-btn {
        display: none;
    }
    .grt-forex-mobile-nav-toggle, .grt-date-cnv-mobile-nav-toggle {
        display: block;
    }
}

/* Mobile Drawer Overlay */
.grt-forex-mobile-menu-overlay-custom, .grt-date-cnv-mobile-menu-overlay-custom {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.grt-forex-mobile-menu-overlay-custom.grt-open, 
.grt-date-cnv-mobile-menu-overlay-custom.grt-open {
    display: block !important;
}

.grt-forex-mobile-menu-drawer-custom, .grt-date-cnv-mobile-menu-drawer-custom {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: var(--card);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.grt-forex-logo-header-drawer, .grt-date-cnv-logo-header-drawer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.grt-forex-close-menu-btn, .grt-date-cnv-close-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

.grt-forex-mobile-drawer-links, .grt-date-cnv-mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.grt-forex-mobile-drawer-links a, .grt-date-cnv-mobile-drawer-links a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.grt-forex-mobile-drawer-links a.grt-text-red, .grt-date-cnv-mobile-drawer-links a.grt-text-red {
    color: var(--red) !important;
}

.grt-forex-use-tools-btn, .grt-date-cnv-use-tools-btn {
    margin-top: 1rem;
}

/* Hero Section */
.grt-forex-hero-section, .grt-date-cnv-hero-section {
    background: linear-gradient(180deg, rgba(3, 14, 183, 0.03) 0%, transparent 100%);
    text-align: center;
}

.grt-forex-hero-tag, .grt-date-cnv-hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red); /* Style tag in red */
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(222, 11, 22, 0.06);
    border-radius: 99px;
}

.grt-forex-hero-title, .grt-date-cnv-hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 1rem;
}

.grt-forex-hero-subtitle, .grt-date-cnv-hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .grt-forex-hero-title, .grt-date-cnv-hero-title {
        font-size: 2.25rem;
    }
    .grt-forex-hero-subtitle, .grt-date-cnv-hero-subtitle {
        font-size: 1rem;
    }
}

/* Grid Tools Layout */
.grt-forex-tools-grid, .grt-date-cnv-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grt-forex-tool-card, .grt-date-cnv-tool-card {
    display: block;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.grt-forex-tool-card:hover, .grt-date-cnv-tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(222, 11, 22, 0.25);
    box-shadow: var(--shadow-lg);
}

.grt-forex-tool-icon-wrapper, .grt-date-cnv-tool-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
    background-color: rgba(222, 11, 22, 0.05);
    color: var(--red);
    margin-bottom: 1.5rem;
    transition: all 0.25s ease;
}

.grt-forex-tool-card:hover .grt-forex-tool-icon-wrapper, 
.grt-date-cnv-tool-card:hover .grt-date-cnv-tool-icon-wrapper {
    background: var(--gradient);
    color: #ffffff;
}

/* Make icons inside wrapper match color transition */
.grt-forex-tool-card:hover .grt-forex-tool-icon-wrapper .icon-red, 
.grt-date-cnv-tool-card:hover .grt-date-cnv-tool-icon-wrapper .icon-red {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.grt-forex-tool-title, .grt-date-cnv-tool-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.grt-forex-tool-desc, .grt-date-cnv-tool-desc {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    min-height: 4.5rem;
}

.grt-forex-tool-link, .grt-date-cnv-tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--red);
}

.grt-forex-tool-link svg, .grt-date-cnv-tool-link svg {
    transition: transform 0.2s ease;
}

.grt-forex-tool-card:hover .grt-forex-tool-link svg,
.grt-date-cnv-tool-card:hover .grt-date-cnv-tool-link svg {
    transform: translateX(4px);
}

/* General namespaced section background values */
.grt-forex-bg-background-custom, .grt-date-cnv-bg-background-custom {
    background-color: var(--background);
}

.grt-forex-bg-card-custom, .grt-date-cnv-bg-card-custom {
    background-color: var(--card);
}

/* Date Converter Box layout styles */
.grt-date-cnv-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.grt-date-cnv-mode-toggles {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.grt-date-cnv-mode-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 1.25rem;
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.grt-date-cnv-mode-btn:hover {
    background-color: var(--background);
}

.grt-date-cnv-mode-btn.grt-active {
    background: var(--gradient);
    color: #ffffff;
}

.grt-date-cnv-body {
    padding: 2.5rem;
}

.grt-date-cnv-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .grt-date-cnv-dropdown-grid {
        grid-template-columns: 1fr;
    }
}

.grt-date-cnv-form-group, .grt-forex-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.grt-date-cnv-form-label, .grt-forex-form-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.grt-date-cnv-select, .grt-forex-select, .grt-forex-input {
    width: 100%;
    background-color: var(--background);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    outline: none;
    font-family: var(--font);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.grt-date-cnv-select, .grt-forex-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b6882' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.grt-date-cnv-select:focus, .grt-forex-select:focus, .grt-forex-input:focus {
    border-color: #de0b16; /* Focus borders on red */
    box-shadow: 0 0 0 3px rgba(222, 11, 22, 0.12);
}

/* Translucent Red Result Box (Shared across Converter & Calculator) */
.grt-date-cnv-result-box, .grt-forex-calc-result-box {
    margin-top: 2rem;
    padding: 2rem;
    background-color: rgba(222, 11, 22, 0.04) !important;
    border: 1px solid rgba(222, 11, 22, 0.15) !important;
    border-radius: 12px;
    text-align: center;
    animation: grtFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.grt-date-cnv-result-title, .grt-forex-calc-result-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.grt-date-cnv-result-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.grt-date-cnv-result-extra {
    font-size: 0.875rem;
    color: var(--muted);
}

@keyframes grtFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Forex calculator card additions */
.grt-forex-card-holder {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

/* Prominent calculator panel — stronger border & shadow to stand out from table */
.grt-forex-calc-panel {
    background: linear-gradient(180deg, rgba(3, 14, 183, 0.03) 0%, rgba(222, 11, 22, 0.02) 100%);
    border: 2px solid rgba(3, 14, 183, 0.18);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(3, 14, 183, 0.12), 0 2px 8px rgba(100, 80, 180, 0.08);
}

/* 2×2 grid: Row 1 = Currency & Direction, Row 2 = Amount & Result */
.grt-forex-calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.75rem;
    align-items: end;
}

@media (max-width: 768px) {
    .grt-forex-calc-panel {
        padding: 1.5rem;
    }

    .grt-forex-calc-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Country flag icons */
.grt-forex-flag-icon {
    display: inline-block;
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
    opacity: 1 !important;
}

.grt-forex-currency-select-wrap {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    background-color: var(--background);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b6882' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 2.5rem 0 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.grt-forex-currency-select-wrap:focus-within {
    border-color: #de0b16;
    box-shadow: 0 0 0 3px rgba(222, 11, 22, 0.12);
}

.grt-forex-currency-select-wrap .grt-forex-flag-icon {
    flex-shrink: 0;
}

.grt-forex-select-with-flag {
    flex: 1;
    min-width: 0;
    border: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.grt-forex-page .grt-forex-select.grt-forex-select-with-flag {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

.grt-forex-currency-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

.grt-forex-flag-table {
    width: 22px;
    height: 16px;
}

.grt-forex-calc-result-box {
    margin-top: 0 !important;
    padding: 1.25rem 1.5rem !important;
    min-height: 72px;
    height: 100% !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(222, 11, 22, 0.06) !important;
    border: 1.5px solid rgba(222, 11, 22, 0.22) !important;
}

.grt-forex-calc-result-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Helper margin settings to replace inline margins */
.grt-forex-mb-2, .grt-date-cnv-mb-2 { margin-bottom: 0.5rem !important; }
.grt-forex-mb-6, .grt-date-cnv-mb-6 { margin-bottom: 1.5rem !important; }
.grt-forex-mb-10, .grt-date-cnv-mb-10 { margin-bottom: 2.5rem !important; }
.grt-forex-mt-6, .grt-date-cnv-mt-6 { margin-top: 1.5rem !important; }
.grt-forex-mx-auto, .grt-date-cnv-mx-auto { margin-left: auto !important; margin-right: auto !important; }
.grt-forex-max-width-600, .grt-date-cnv-max-width-600 { max-width: 600px !important; }
.grt-forex-font-size-225, .grt-date-cnv-font-size-225 { font-size: 2.25rem !important; }
.grt-forex-font-size-175, .grt-date-cnv-font-size-175 { font-size: 1.75rem !important; }
.grt-forex-font-size-125, .grt-date-cnv-font-size-125 { font-size: 1.25rem !important; }
.grt-forex-font-size-085, .grt-date-cnv-font-size-085 { font-size: 0.85rem !important; }
.grt-forex-font-weight-600, .grt-date-cnv-font-weight-600 { font-weight: 600 !important; }
.grt-forex-font-weight-800, .grt-date-cnv-font-weight-800 { font-weight: 800 !important; }
.grt-forex-text-center, .grt-date-cnv-text-center { text-center: center; text-align: center !important; }
.grt-forex-list-style, .grt-date-cnv-list-style {
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

/* Flex layout utility classes instead of inline style displays */
.grt-forex-flex-container-custom, .grt-date-cnv-flex-container-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.grt-forex-flex-center-gap, .grt-date-cnv-flex-center-gap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.grt-forex-flex-gap-center, .grt-date-cnv-flex-gap-center {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.grt-forex-controls-container, .grt-date-cnv-controls-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.grt-forex-update-date-text {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
}

.grt-forex-search-input-custom {
    width: 160px;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

/* Steps Block styles */
.grt-forex-step-grid-layout, .grt-date-cnv-step-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .grt-forex-step-grid-layout, .grt-date-cnv-step-grid-layout {
        grid-template-columns: 1fr;
    }
}

.grt-forex-step-item, .grt-date-cnv-step-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.grt-forex-step-num, .grt-date-cnv-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--gradient);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.grt-forex-step-title, .grt-date-cnv-step-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.grt-forex-step-desc, .grt-date-cnv-step-desc {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Scoped Table Styles */
.grt-forex-table-wrapper-custom {
    overflow-x: auto;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.grt-forex-table-custom {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.grt-forex-tr-header-custom {
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
}

.grt-forex-th-custom {
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
}

.grt-forex-td-custom {
    padding: 1rem 1.5rem;
}

.grt-forex-th-align-right, .grt-forex-td-align-right {
    text-align: right;
}

.grt-forex-row-item {
    border-top: 1px solid var(--border);
    background-color: var(--card);
    transition: background-color 0.2s ease;
}

.grt-forex-row-item:hover {
    background-color: var(--background) !important;
}

.grt-forex-table-footer-info {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
}

/* Prose layout styles */
.grt-forex-prose, .grt-date-cnv-prose {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.grt-forex-prose p, .grt-date-cnv-prose p {
    margin-bottom: 1.5rem;
}

.grt-forex-prose p strong, .grt-date-cnv-prose p strong {
    color: var(--text);
}

/* Scoped prose table to avoid leakage */
.grt-forex-prose table, .grt-date-cnv-prose table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.grt-forex-prose th, .grt-forex-prose td,
.grt-date-cnv-prose th, .grt-date-cnv-prose td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.grt-forex-prose th, .grt-date-cnv-prose th {
    background-color: var(--background);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text);
}

.grt-forex-prose td, .grt-date-cnv-prose td {
    font-size: 0.9rem;
}

/* Key Currencies block styles */
.grt-forex-currencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.grt-forex-currency-card {
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.grt-forex-currency-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.grt-forex-currency-text-p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

/* FAQ Details accordions */
.grt-forex-ul-footer-faq, .grt-date-cnv-ul-footer-faq {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.grt-forex-faq-item, .grt-date-cnv-faq-item {
    background-color: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: var(--shadow) !important;
}

.grt-forex-faq-item summary, .grt-date-cnv-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s ease;
    color: var(--text);
}

.grt-forex-faq-item summary::-webkit-details-marker,
.grt-date-cnv-faq-item summary::-webkit-details-marker {
    display: none;
}

.grt-forex-faq-item summary:hover, .grt-date-cnv-faq-item summary:hover {
    background-color: var(--background);
}

.grt-forex-faq-icon, .grt-date-cnv-faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--red);
    transition: transform 0.2s ease;
}

.grt-forex-faq-item[open] .grt-forex-faq-icon,
.grt-date-cnv-faq-item[open] .grt-date-cnv-faq-icon {
    transform: rotate(45deg);
}

.grt-forex-faq-content, .grt-date-cnv-faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Call to Action Section */
.grt-forex-cta-section, .grt-date-cnv-cta-section {
    background: var(--gradient);
    color: #ffffff;
    text-align: center;
}

.grt-forex-cta-section h2, .grt-date-cnv-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff !important;
}

.grt-forex-cta-section p, .grt-date-cnv-cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto 2rem auto;
    color: #ffffff !important;
}

.grt-forex-btn-cta, .grt-date-cnv-btn-cta {
    background-color: var(--card);
    color: var(--red);
    box-shadow: var(--shadow-lg);
}

.grt-forex-btn-cta:hover, .grt-date-cnv-btn-cta:hover {
    background-color: var(--background);
    transform: translateY(-1.5px);
}

/* Footer Section */
.grt-forex-footer, .grt-date-cnv-footer {
    background-color: #121021;
    color: #ffffff;
}

.grt-forex-footer-grid, .grt-date-cnv-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 768px) {
    .grt-forex-footer-grid, .grt-date-cnv-footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.grt-forex-footer-logo-logo, .grt-date-cnv-footer-logo-logo {
    margin-bottom: 1rem;
}

.grt-forex-footer-p-info, .grt-date-cnv-footer-p-info {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7) !important;
}

.grt-forex-footer-heading, .grt-date-cnv-footer-heading {
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.grt-forex-footer-links, .grt-date-cnv-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.grt-forex-footer-links a, .grt-date-cnv-footer-links a {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
}

.grt-forex-footer-links a:hover, .grt-date-cnv-footer-links a:hover {
    opacity: 1;
    color: #ffffff;
}

.grt-forex-footer-bottom, .grt-date-cnv-footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.5;
    color: rgba(255, 255, 255, 0.5);
}

/* Custom Goreto Red Variables and Utility Classes */
.icon-red {
    color: var(--red) !important;
    stroke: var(--red) !important;
}

.grt-forex-currency-code, .grt-date-cnv-currency-code {
    color: var(--red) !important;
    font-weight: 700;
}

.grt-forex-key-currency-code, .grt-date-cnv-key-currency-code {
    font-weight: 800;
    color: var(--red) !important;
}

.grt-text-red {
    color: var(--red) !important;
}

.grt-forex-header-accent-line, .grt-date-cnv-header-accent-line {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* BS Month Cards Grid */
.grt-date-cnv-months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.grt-date-cnv-month-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}



/** Custom Fixes **/

.grt-converter-wrap .grt-forex-page, 
.grt-converter-wrap .coaching-details .container,
.grt-date-cnv-page{
    max-width: 1050px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    background: none !important;
}

.grt-forex-bg-background-custom, .grt-date-cnv-bg-background-custom{
    background:none !important;
}

.grt-converter-wrap .grt-forex-container-narrow, 
.grt-converter-wrap .grt-date-cnv-container-narrow{
    max-width:100%;
    padding: 0px;
}

.grt-converter-wrap .visa-details__area.coaching-details{
    padding-top:0px;
}

.resource-page-title {
    text-align: center;
    margin-bottom: 20px;
    padding: 100px 0px 0px;
}

.resource-page-title h2 {
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #de0b16, #030eb7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.resource-page-title p {
    max-width: 750px;
    margin: 0 auto;
}

.page-template-tpl-date-converter .course__section.ct-card .icon-circle{
    background: linear-gradient(135deg, #de0b16, #030eb7);
    color:#FFF; border-radius:100%; font-weight:600;
}

.grt-forex-section-padding.grt-forex-padding-bottom-custom {
    padding-bottom: 2.5rem;
}

.grt-forex-section-padding.grt-forex-padding-top-custom {
    padding-top: 1rem;
}
  

.grt-forex-card-holder *,
.grt-forex-table-custom *{
    font-size:14px;
    font-size:300 !important;
    opacity:0.9;
}

.grt-forex-flex-container-custom h2,
.grt-forex-controls-container h2{
    font-size:16px !important;
    
}

.grt-forex-form-group .grt-forex-input,
.grt-forex-form-group .grt-forex-select{ 
    margin-left:0px;
    font-size: var(--rr-fs-p) !important;
    font-weight: var(--rr-fw-normal) !important;
    color: var(--rr-text-body) !important;
    line-height: var(--rr-lh-p) !important;
    padding: 10px 12px;
    border-radius: 25px;
    height: auto !important;
    border: 1px solid rgba(0, 29, 8, 0.1) !important;
}

.grt-forex-calc-panel .grt-forex-form-label {
    font-size: 12px !important;
    margin-bottom: 2px;
}

.grt-forex-calc-panel .grt-forex-form-group .grt-forex-input,
.grt-forex-calc-panel .grt-forex-form-group .grt-forex-select:not(.grt-forex-select-with-flag) {
    padding: 12px 14px;
    min-height: 46px;
}

.grt-forex-calc-panel .grt-forex-currency-select-wrap {
    min-height: 46px;
    border-radius: 25px;
    border: 1px solid rgba(0, 29, 8, 0.1) !important;
    padding: 0 2.5rem 0 14px;
    background-position: right 12px center;
}

.grt-forex-calc-panel .grt-forex-select-with-flag {
    padding: 12px 0 !important;
    min-height: 44px;
    height: auto !important;
}

.grt-forex-form-group .grt-forex-input:focus,
.grt-forex-form-group .grt-forex-select:focus{
    box-shadow:none;
}

.grt-forex-currency-select-wrap .grt-forex-select-with-flag:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none;
}

#grt-forex-update-date-label, .grt-forex-table-footer-info{
    font-size:10px !important;
}

.grt-forex-table-footer-info{
    font-size:14px !important;
}


.grt-date-cnv-mode-toggles button{
    font-size:16px !important;
}

.grt-date-cnv-card input,
.grt-date-cnv-card select{ 
    margin-left:0px;
    font-size: var(--rr-fs-p) !important;
    font-weight: var(--rr-fw-normal) !important;
    color: var(--rr-text-body) !important;
    line-height: var(--rr-lh-p) !important;
    padding: 10px 12px;
    border-radius: 25px;
    height: auto !important;
    border: 1px solid rgba(0, 29, 8, 0.1) !important;
}

.grt-date-cnv-card input:focus,
.grt-date-cnv-card select:focus{
    box-shadow:none;
}
 
.grt-date-cnv-result-box .grt-date-cnv-result-title,
.grt-date-cnv-result-box .grt-date-cnv-result-extra{
    font-size:12px;
}

.grt-date-cnv-result-box .grt-date-cnv-result-value{
    font-size:24px;
    padding:5px 0px;
}

.grt-date-cnv-form-label{
    font-size:12px !important;
}

.grt-date-cnv-section-padding{
    padding-bottom: 20px;
}


@media(max-width:992px){
    .resource-page-title { 
        padding-top: 60px;
    }
}
 
