/*
 * File Name: style.css
 * Location: /trial/assets/css/style.css
 *
 * All Brahmin Matrimony
 * Main Website Stylesheet
 *
 * Purpose:
 * - Global website styling
 * - Header and navigation
 * - Hero banner
 * - Content sections
 * - CTA buttons
 * - Footer
 * - Cards, tables and FAQ components
 * - Forms and accessibility
 *
 * Responsive rules are maintained separately in:
 * /trial/assets/css/responsive.css
 */


/* ==================================================
   1. ROOT VARIABLES
   ================================================== */

:root {

    /* Brand Colors */
    --color-primary: #1d5681;
    --color-primary-dark: #154260;
    --color-primary-light: #eaf3f9;

    /* CTA Colors */
    --color-profiles: #ae5700;
    --color-login: #783d82;
    --color-register: #008000;

    /* General Colors */
    --color-white: #ffffff;
    --color-black: #111111;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-heading: #1d5681;
    --color-border: #dddddd;
    --color-background: #ffffff;
    --color-background-light: #f7f9fb;
    --color-background-soft: #eef4f8;

    /* Status / Utility */
    --color-success: #218838;
    --color-warning: #b77900;
    --color-danger: #b02a37;

    /* Typography */
    --font-family:
        Arial,
        Helvetica,
        sans-serif;

    --font-size-base: 16px;
    --line-height-base: 1.7;

    /* Layout */
    --container-width: 1200px;
    --content-width: 900px;

    /* Borders / Shadows */
    --border-radius: 6px;
    --border-radius-large: 10px;

    --shadow-small:
        0 2px 8px rgba(0, 0, 0, 0.08);

    --shadow-medium:
        0 5px 18px rgba(0, 0, 0, 0.10);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}


/* ==================================================
   2. RESET / BASE STYLES
   ================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;

    background: var(--color-background);
    color: var(--color-text);

    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);

    text-rendering: optimizeLegibility;
}

/* CLS Fix: Preserves image dimensional aspect ratios */
img {
    display: block;
    max-width: 100%;
    height: auto;
    aspect-ratio: attr(width) / attr(height);
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition:
        color var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(29, 86, 129, 0.35);
    outline-offset: 2px;
}


/* ==================================================
   3. TYPOGRAPHY
   ================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--color-heading);

    font-weight: 700;
    line-height: 1.3;
}

h1 {
    margin-bottom: 20px;
    font-size: 2.5rem;
}

h2 {
    margin-bottom: 18px;
    font-size: 2rem;
}

h3 {
    margin-bottom: 14px;
    font-size: 1.5rem;
}

h4 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

h5 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

h6 {
    margin-bottom: 8px;
    font-size: 1rem;
}

p {
    margin-top: 0;
    margin-left: 0.5rem;
    margin-bottom: 18px;
}

strong {
    font-weight: 700;
}

small {
    font-size: 0.875rem;
}

blockquote {
    margin: 25px 0;
    padding: 20px 25px;

    border-left: 4px solid var(--color-primary);

    background: var(--color-background-soft);
    color: var(--color-text-light);
}

blockquote p {
    margin-left: 0;
}


/* ==================================================
   4. GLOBAL LAYOUT
   ================================================== */

.container {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );
    max-width: var(--container-width);

    margin-left: auto;
    margin-right: auto;
}

#main-content {
    width: 100%;
}

main {
    min-height: 300px;
}


/* ==================================================
   5. HEADER / NAVIGATION
   ================================================== */

.site-header {
    position: relative;
    z-index: 1000;

    width: 100%;

    background: var(--color-primary);

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Desktop Navigation Width Fix */
.navigation-container {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );
    max-width: var(--container-width);

    min-height: 72px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.site-branding {
    flex-shrink: 0;
}

.site-logo {
    display: inline-flex;
    align-items: center;

    color: var(--color-white);

    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.site-logo:hover {
    color: var(--color-white);
}

.primary-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex: 1;

    gap: 20px;
}

.navigation-menu {
    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;

    list-style: none;

    gap: 4px;
}

.navigation-item {
    position: relative;
}

.navigation-link,
.dropdown-toggle {
    display: inline-flex;
    align-items: center;

    min-height: 44px;
    padding: 9px 11px;

    border: 0;
    border-radius: var(--border-radius);

    background: transparent;
    color: var(--color-white);

    font-size: 0.95rem;
    font-weight: 600;

    white-space: nowrap;
}

.navigation-link:hover,
.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
}

.dropdown-toggle {
    gap: 6px;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition:
        transform var(--transition-fast);
}

.has-dropdown:hover .dropdown-arrow,
.has-dropdown.is-open .dropdown-arrow {
    transform: rotate(180deg);
}


/* ==================================================
   6. DROPDOWN MENU
   ================================================== */

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;

    min-width: 240px;

    margin: 0;
    padding: 8px 0;

    border-radius: var(--border-radius);

    background: var(--color-white);

    box-shadow: var(--shadow-medium);

    list-style: none;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);

    transition:
        opacity var(--transition-fast),
        visibility var(--transition-fast),
        transform var(--transition-fast);
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown.is-open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;

    padding: 10px 16px;

    color: var(--color-text);

    font-size: 0.95rem;
    line-height: 1.4;
}

.dropdown-menu a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}


/* ==================================================
   7. NAVIGATION CTA BUTTONS
   ================================================== */

.navigation-cta {
    display: flex;
    align-items: center;
    

    gap: 7px;

    flex-shrink: 0;
}

.nav-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 7px 13px;

    border: 1px solid transparent;
    border-radius: var(--border-radius);

    color: var(--color-white);

    font-size: 0.9rem;
    font-weight: 700;

    white-space: nowrap;
}

.nav-cta-button:hover {
    color: var(--color-white);
    transform: translateY(-1px);
}

.nav-cta-profiles {
    background: var(--color-profiles);
}

.nav-cta-login {
    background: var(--color-login);
}

.nav-cta-register {
    background: var(--color-register);
}

.mid-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Adds space between the buttons */
    width: 100%; /* Ensures the container stretches full width to center properly */
    
    /* Fix for mobile suffocation */
    padding-inline: 16px; /* Adds 16px padding to both Left and Right sides */
    box-sizing: border-box; /* Crucial: Keeps the 100% width from overflowing the screen */
}

/* ==================================================
   8. MOBILE MENU BUTTON
   ================================================== */

.mobile-menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 8px;

    border: 0;
    border-radius: var(--border-radius);

    background: transparent;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: var(--color-white);

    transition:
        transform var(--transition-fast),
        opacity var(--transition-fast);
}


/* ==================================================
   9. HERO BANNER
   ================================================== */

.hero-banner {
    position: relative;

    width: 100%;

    overflow: hidden;

    background: var(--color-primary);
}

/* CLS Fix: Locks hero aspect space to prevent shifting during image loading */
.hero-banner-image {
    position: relative;

    width: 100%;
    min-height: 300px;
    aspect-ratio: 16 / 5;
}

.hero-banner-image img {
    width: 100%;
    height: 100%;

    min-height: 300px;

    object-fit: cover;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background:
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.62),
            rgba(0, 0, 0, 0.20)
        );
}

.hero-banner-content {
    width: min(
        100%,
        var(--container-width)
    );

    margin: 0 auto;

    color: var(--color-white);
}

.hero-banner-content h1 {
    max-width: 850px;

    margin-bottom: 12px;

    color: var(--color-white);

    font-size: clamp(
        2rem,
        4vw,
        3.2rem
    );

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.35);
}

.hero-banner-content p {
    max-width: 750px;

    margin-left: 0;
    margin-bottom: 0;

    color: var(--color-white);

    font-size: 1.15rem;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.35);
}


/* ==================================================
   10. GENERAL CONTENT SECTIONS
   ================================================== */

.content-section {
    padding: 60px 0;
}

.content-section:nth-child(even) {
    background: var(--color-background-light);
}

.content-container {
    width: min(
        calc(100% - 40px),
        var(--content-width)
    );
    max-width: var(--content-width);

    margin: 0 auto;
}

.section-heading {
    margin-bottom: 30px;

    text-align: center;
}

.section-heading h2 {
    margin-bottom: 10px;
}

.section-heading p {
    max-width: 750px;

    margin-left: auto;
    margin-right: auto;

    color: var(--color-text-light);
}


/* ==================================================
   11. INTRO / LEAD CONTENT
   ================================================== */

.lead-text {
    font-size: 1.15rem;
    color: var(--color-text-light);
}

.highlight-box {
    margin: 30px 0;
    padding: 25px;

    border-left: 5px solid var(--color-primary);
    border-radius: var(--border-radius);

    background: var(--color-primary-light);
}

.highlight-box p {
    margin-left: 0.25rem;
}


/* ==================================================
   12. CONTENT CARDS
   ================================================== */

.card-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 25px;
}

.content-card {
    height: 100%;

    padding: 25px;

    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-large);

    background: var(--color-white);

    box-shadow: var(--shadow-small);

    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.content-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.content-card h3 {
    margin-bottom: 12px;
}

.content-card p {
    margin-left: 0.25rem;
}

.content-card p:last-child {
    margin-bottom: 0;
}


/* ==================================================
   13. CTA SECTIONS
   ================================================== */

.cta-section {
    padding: 55px 25px;

    text-align: center;

    background: var(--color-background-soft);
}

.cta-section h2 {
    margin-bottom: 12px;
}

.cta-section p {
    max-width: 750px;

    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 25px;
}


/* ==================================================
   14. GENERAL BUTTONS
   ================================================== */

.button,
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 10px 20px;

    border: 1px solid transparent;
    border-radius: var(--border-radius);

    color: var(--color-white);

    font-weight: 700;

    text-align: center;

    transition:
        transform var(--transition-fast),
        opacity var(--transition-fast);
}

.button:hover,
.cta-button:hover {
    color: var(--color-white);

    transform: translateY(-1px);
    opacity: 0.92;
}

.button-profiles {
    background: var(--color-profiles);
}

.button-login {
    background: var(--color-login);
}

.button-register {
    background: var(--color-register);
}

.button-primary {
    background: var(--color-primary);
}


/* ==================================================
   15. LISTS
   ================================================== */

.content-section ul,
.content-section ol {
    margin-top: 0;
    margin-bottom: 20px;

    padding-left: 25px;
}

.content-section li {
    margin-bottom: 8px;
    margin-left: 0.25rem;
}


/* ==================================================
   16. TABLES
   ================================================== */

.table-wrapper {
    width: 100%;

    margin: 25px 0;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;

    border-collapse: collapse;

    background: var(--color-white);
}

th,
td {
    padding: 12px 15px;

    border: 1px solid var(--color-border);

    text-align: left;

    vertical-align: top;
}

th {
    background: var(--color-primary);

    color: var(--color-white);

    font-weight: 700;
}

tr:nth-child(even) td {
    background: var(--color-background-light);
}


/* ==================================================
   17. FAQ
   ================================================== */

.faq-list {
    max-width: 900px;

    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;

    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);

    background: var(--color-white);

    overflow: hidden;
}

.faq-question {
    padding: 18px 20px;

    background: var(--color-background-light);

    color: var(--color-heading);

    font-weight: 700;
}

.faq-answer {
    padding: 18px 20px;
}

.faq-answer p {
    margin-left: 0.25rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}


/* ==================================================
   18. FORMS
   ================================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: var(--color-heading);

    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="password"],
textarea,
select {
    width: 100%;

    min-height: 46px;

    padding: 10px 13px;

    border: 1px solid #cccccc;
    border-radius: var(--border-radius);

    background: var(--color-white);
    color: var(--color-text);

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

textarea {
    min-height: 130px;

    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);

    box-shadow:
        0 0 0 3px rgba(
            29,
            86,
            129,
            0.12
        );

    outline: none;
}


/* ==================================================
   19. NOTICES
   ================================================== */

.notice {
    margin: 25px 0;
    padding: 18px 20px;

    border-radius: var(--border-radius);
}

.notice p {
    margin-left: 0.25rem;
}

.notice-info {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.notice-success {
    background: #edf7ef;
    color: var(--color-success);
}

.notice-warning {
    background: #fff7e5;
    color: var(--color-warning);
}

.notice-danger {
    background: #fcebed;
    color: var(--color-danger);
}


/* ==================================================
   20. SITE FOOTER
   ================================================== */

.site-footer {
    margin-top: 60px;

    background: var(--color-primary);

    color: var(--color-white);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 35px;

    padding-top: 55px;
    padding-bottom: 45px;
}

.footer-box {
    min-width: 0;
    margin-left: 0;
    padding-left: 0;
}

.footer-box h3 {
    margin-bottom: 16px;

    color: var(--color-white);

    font-size: 1.15rem;
}

.footer-box p {
    margin-left: 0.25rem;
    color: rgba(255, 255, 255, 0.88);
}

.footer-logo {
    display: inline-block;

    margin-bottom: 15px;

    color: var(--color-white);

    font-size: 1.3rem;
    font-weight: 700;
}

.footer-logo:hover {
    color: var(--color-white);
}

.footer-links,
.footer-seo-list,
.footer-legal-list {
    margin: 0;
    padding: 0;
    margin-left: 0.25rem;
    padding-left: 0;

    list-style: none;
}

.footer-links li,
.footer-seo-list li,
.footer-legal-list li {
    margin-bottom: 8px;
    margin-left: 20px;
}

.footer-links a,
.footer-seo-list a,
.footer-legal-list a {
    color: rgba(255, 255, 255, 0.88);

    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-seo-list a:hover,
.footer-legal-list a:hover {
    color: var(--color-white);
    text-decoration: underline;
}


/* ==================================================
   21. FULL-WIDTH FOOTER SECTIONS
   ================================================== */

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

.seo-section {
    padding-top: 25px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.16);
}

.footer-seo-columns {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 8px 25px;
}

.legal-section {
    padding-top: 25px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.16);
}

.footer-legal-list {
    display: flex;
    flex-wrap: wrap;

    gap: 10px 25px;
}


/* ==================================================
   22. FOOTER CTA
   ================================================== */

.footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 30px;

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

    border-radius: var(--border-radius-large);

    background:
        rgba(255, 255, 255, 0.06);
}

.footer-cta-content {
    flex: 1;
}

.footer-cta-content h2 {
    margin-bottom: 8px;

    color: var(--color-white);

    font-size: 1.45rem;
}

.footer-cta-content p {
    margin-left: 0;
    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.85);
}

.footer-cta-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    flex-shrink: 0;
}

.footer-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 43px;

    padding: 8px 15px;

    border-radius: var(--border-radius);

    color: var(--color-white);

    font-weight: 700;

    white-space: nowrap;
}

.footer-cta-button:hover {
    color: var(--color-white);

    transform: translateY(-1px);
}

.footer-cta-profiles {
    background: var(--color-profiles);
}

.footer-cta-login {
    background: var(--color-login);
}

.footer-cta-register {
    background: var(--color-register);
}


/* ==================================================
   23. FOOTER BOTTOM
   ================================================== */

.footer-bottom {
    border-top:
        1px solid
        rgba(255, 255, 255, 0.16);

    background:
        rgba(0, 0, 0, 0.12);
}

.footer-bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: 65px;
}

.footer-bottom p {
    margin: 0;
    margin-left: 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;

    margin-left: 0;
    padding-left: 0;

    list-style: none;

    gap: 8px 20px;
}

.footer-bottom-links li {
    margin-left: 0;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.82);

    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}


/* ==================================================
   24. BREADCRUMBS
   ================================================== */

.breadcrumbs {
    margin-bottom: 25px;

    font-size: 0.9rem;
    color: var(--color-text-light);
}

.breadcrumbs a {
    color: var(--color-primary);
}

.breadcrumbs-separator {
    margin: 0 7px;

    color: #999999;
}


/* ==================================================
   25. PAGINATION
   ================================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 6px;

    margin: 35px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    min-height: 40px;

    padding: 7px 11px;

    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);

    background: var(--color-white);

    color: var(--color-primary);
}

.pagination a:hover,
.pagination .current {
    border-color: var(--color-primary);

    background: var(--color-primary);

    color: var(--color-white);
}


/* ==================================================
   26. UTILITY CLASSES
   ================================================== */

.text-center {
    text-align: center;
}

.text-center p {
    margin-left: auto;
    margin-right: auto;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none !important;
}

.no-margin {
    margin: 0 !important;
}

.no-padding {
    padding: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.mb-30 {
    margin-bottom: 30px !important;
}


/* ==================================================
   27. ACCESSIBILITY / REDUCED MOTION
   ================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* additional step card code */

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    margin-bottom: 12px;
}

/* ==================================================
   CARD ICONS & SVG STYLES
   ================================================== */

/* Icon Badge Wrapper */
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-primary-light, #f0f4f8);
    color: var(--color-primary, #0056b3);
    margin-bottom: 1rem;
}

/* Base SVG Properties */
.icon-svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Filled Icon Variant (for Heart/Solid shapes) */
.icon-svg.icon-filled {
    fill: currentColor;
    stroke: none;
}
/* ==================================================
   SITEMAP PAGE STYLES
   ================================================== */
.sitemap-section {
    padding-top: var(--spacing-lg, 3rem);
    padding-bottom: var(--spacing-xl, 4rem);
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.sitemap-card {
    background-color: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sitemap-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sitemap-card-header h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--heading-color, #1d5681);
    border-bottom: 2px solid var(--primary-light, #e8f1f8);
}

.sitemap-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-links li {
    margin-bottom: 0.75rem;
}

.sitemap-links li:last-child {
    margin-bottom: 0;
}

.sitemap-links a {
    color: var(--text-color, #333333);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.sitemap-links a:hover,
.sitemap-links a:focus {
    color: var(--primary-color, #1d5681);
    text-decoration: underline;
    transform: translateX(3px);
}

/* ==================================================
   GO TO TOP BUTTON STYLES
   ================================================== */
#goToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 48px;
    height: 48px;
    background-color: #FFCC00; /* Web-safe yellow */
    color: #111111; /* Dark icon contrast for maximum accessibility */
    border: 2px solid #E6B800;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

/* Visible state triggered by JavaScript */
#goToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover & Focus states */
#goToTopBtn:hover,
#goToTopBtn:focus-visible {
    background-color: #FFD700; /* Brighter gold yellow on hover */
    color: #000000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transform: translateY(-3px);
    outline: none;
}

#goToTopBtn:active {
    transform: translateY(0);
}

/* SVG Arrow alignment */
#goToTopBtn svg {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #goToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}