/* Base styles and variables */
:root {
    /* Primary orange color with variations */
    --primary-500: #ff7e1d;
    --primary-600: #e86c00;
    --primary-700: #d05e00;
    --primary-400: #ff9242;
    --primary-300: #ffa768;
    --primary-200: #ffbf8e;
    --primary-100: #ffd7b4;

    /* Neutral colors */
    --neutral-900: #1a1a1a;
    --neutral-800: #333333;
    --neutral-700: #4d4d4d;
    --neutral-600: #666666;
    --neutral-500: #808080;
    --neutral-400: #999999;
    --neutral-300: #b3b3b3;
    --neutral-200: #d9d9d9;
    --neutral-100: #f2f2f2;
    --neutral-50: #f9f9f9;

    --newdark: #111827;
    --orange-gradient: linear-gradient(45deg, #ff9240, #ff5922);
    --red-gradient: linear-gradient(45deg, #ff5f56, #f02d23);
    --green-gradient: linear-gradient(45deg, #55c72b, #3fb116);
    --black-gradient: linear-gradient(45deg, #808080, #4d4d4d);
    --soft-gradient: linear-gradient(45deg, #cddae0, #ffffff);

    --orange-gradient-hover: linear-gradient(45deg, #ff5922, #ff5922);
    --red-gradient-hover: linear-gradient(45deg, #f02d23, #f02d23);
    --green-gradient-hover: linear-gradient(45deg, #3fb116, #3fb116);
    --black-gradient-hover: linear-gradient(45deg, #4d4d4d, #4d4d4d);

    /* Accent colors */
    --accent-blue: #2563eb;
    --accent-green: #16a34a;
    --accent-red: #dc2626;
    --accent-yellow: #fbbf24;

    /* Spacing system (based on 8px) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-7: 56px;
    --space-8: 64px;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Font sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Animation */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    --star-size: 20px;
}

/* Dark theme variables */
/* [data-theme="dark"] {
    --primary-500: #ff9242;
    --primary-600: #ff7e1d;
    --primary-700: #e86c00;
    --neutral-900: #ffffff;
    --neutral-800: #f2f2f2;
    --neutral-700: #d9d9d9;
    --neutral-600: #b3b3b3;
    --neutral-500: #808080;
    --neutral-400: #666666;
    --neutral-300: #4d4d4d;
    --neutral-200: #333333;
    --neutral-100: #262626;
    --neutral-50: #1a1a1a;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
} */

/* Theme switch styles */
/* .theme-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}



.theme-switch button {
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.theme-switch button:hover {
    transform: rotate(30deg);
}

.theme-switch i {
    font-size: var(--text-xl);
} */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--neutral-800);
    background-color: #f4f5f7;
    transition: background-color var(--transition-normal),
        color var(--transition-normal);
    font-size: 16px;

}

.mobile-nav {
    display: none !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.top-banner-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0 auto 40px;
}

.top-banner-container a {
    display: block;
    width: 600px;
    flex: 0 0 auto;
}

.top-banner-container img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: block;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--space-3) 0;
}

button {
    cursor: pointer;
}

/* Header styles */
header {
    background-color: var(--neutral-50);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow var(--transition-normal),
        background-color var(--transition-normal);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
}


.logo-container a {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}



.ttregs-logo,
.ttregs-logo-small {
    font-weight: bold;
    display: block;
    text-align: center;
    background: var(--orange-gradient);
    color: white;
    border-radius: 2px;
}


.ttregs-logo {
    height: 40px;
    width: 40px;
    font-size: 1.5rem;


}

.ttregs-logo-small {
    height: 26px;
    width: 26px;
    font-size: 1rem;
    float: left;
    margin-right: 10px;
}


.site-name {
    font-size: var(--text-xl);
    font-weight: 700;

}

a .site-name {
    color: var(--neutral-700);
}


/* Navigation styles */
.main-nav {
    margin-left: auto;
}

.nav-list {
    display: flex;
    gap: var(--space-4);
}

.nav-list>li>a {
    color: var(--neutral-800);
    font-weight: 500;
    padding: var(--space-1) 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-list>li>a:hover {
    color: var(--primary-600);

}

.nav-list>li>a:hover svg {
    fill: var(--primary-600);
}



.nav-list>li>a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-500);
    transition: width var(--transition-normal);
}

.nav-list>li>a:hover::after {
    width: 100%;
}

/* Dropdown styles */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--neutral-50);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 360px;
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 10;
}




.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li {
    margin-bottom: var(--space-1);
}

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

.dropdown a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.dropdown a:hover {
    background-color: var(--neutral-100);
}

.dropdown svg {
    fill: var(--primary-500);
    height: 30px;
    width: 30px;
}

.dropdown-title {
    display: block;
    font-weight: 500;
    color: var(--neutral-800);
}

.dropdown-desc {
    display: block;
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

/* Login button styles */
.login-area {
    margin-left: var(--space-4);
}

.login-area svg,
.button-area svg {
    fill: #fff;
    height: 20px;
    width: auto;
    margin-right: 5px;
}

.view-button-area svg {
    fill: #fff;
    height: 15px;
    width: auto;
    margin-right: 5px;
}



.main-btn,
.create-account-btn,
.logout-btn,
.view-btn {
    display: inline-flex;
    align-items: center;
    /*  gap: var(--space-1); */
    color: white;
    font-weight: normal;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
    font-size: var(--text-sm);
}


.main-btn {
    /* background-color: var(--primary-500); */
    background: var(--orange-gradient);
}

.main-btn:hover {
    background: var(--orange-gradient-hover);

}

.create-account-btn {
    /* background-color: #55c72b; */
    background: var(--green-gradient);
}

.create-account-btn:hover {
    background: var(--green-gradient-hover);
}

.logout-btn {
    /* background-color: #f02d23; */
    background: var(--red-gradient);
}

.logout-btn:hover {
    background: var(--red-gradient-hover);
}


.main-btn:hover,
.create-account-btn:hover,
.logout-btn:hover {
    color: #fff;
}



.view-btn {
    /* background-color: var(--neutral-600); */
    background: var(--black-gradient);
    padding: 6px 12px;
}


.view-btn:hover {
    background: var(--black-gradient-hover);
}















/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: "";
    display: block;
    background-color: var(--neutral-800);
    height: 2px;
    width: 24px;
    position: absolute;
    left: 8px;
    transition: all var(--transition-normal);
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Hero section */
.hero {
    display: flex;
    flex-direction: column;
    /* keep content stacked */
    justify-content: center;
    /* vertical centering */
    align-items: center;
    /* horizontal centering */
    /*  background: radial-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1)),
        url('../images/home-heros/hero6.jpg'); */
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    /* Modern browsers first */
    height: calc(100dvh - 72px);

    /* Fallback for browsers without dvh */
    height: calc(100vh - 72px);
    padding: var(--space-8) 0;
    background-attachment: fixed;
}

.hero1 {
    background-image: radial-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1)), url('../images/home-heros/hero1.jpg');
}

.hero2 {
    background-image: radial-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1)), url('../images/home-heros/hero2.jpg');
}

.hero3 {
    background-image: radial-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1)), url('../images/home-heros/hero3.jpg');
}

.hero4 {
    background-image: radial-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1)), url('../images/home-heros/hero4.jpg');
}

.hero5 {
    background-image: radial-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1)), url('../images/home-heros/hero5.jpg');
}

.hero6 {
    background-image: radial-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1)), url('../images/home-heros/hero6.jpg');
}

.hero7 {
    background-image: radial-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1)), url('../images/home-heros/hero7.jpg');
}




.home-hero h2 {
    font-size: 3rem !important;
    font-weight: 800 !important;

}

.hero-hightlight-text {
    color: var(--primary-500);
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* for Firefox */

}

.split-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)),
        url('../images/dashboard.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    max-height: 250px;
}



.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-2);
}

.hero h2 {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.home-h2 {
    /*  max-width:800px; */
    text-align: center;
}

.home-p {
    max-width: 800px;
    text-align: center;
    display: block;
    margin: 0 auto 0;
}

.hero p {
    font-size: var(--text-xl);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-500);
    color: white;
    font-weight: 500;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    font-size: var(--text-lg);
    opacity: 0;
    margin-top: 20px;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.4s;
}

.cta-button:hover {
    background-color: var(--primary-600);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


.print-button {
    display: inline-block;
    background-color: var(--neutral-600);
    color: white;
    font-weight: 500;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    /*         transition: all var(--transition-normal); */
    font-size: var(--text-sm);
    margin-bottom: 10px;
    /*         opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards 0.4s; */
}

.regulations-card .print-button svg,
.print-button svg {
    fill: var(--neutral-50);
    width: 15px;
    height: 15px;
    margin-right: 5px;
    margin-bottom: -2px;

}

.split-page .regulations-card h3 {
    margin-top: 10px;
    margin-bottom: 0px;
}

.split-page .regulations-card h4 {
    margin-bottom: 10px;
    color: var(--primary-600);
}



.section-button svg {
    fill: var(--neutral-50);
    width: 20px;
    height: 20px;
    margin-right: 5px;
    margin-bottom: -4px;
}



/* Main content sections */
.main-section {
    padding: var(--space-8) 0;
    /*  opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease; */
}

/* .main-section .animate-in {
    opacity: 1;
    transform: translateY(0);
} */

.alt-section {
    background-color: var(--neutral-100);
    background: var(--soft-gradient);
}

.section-content {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.section-content.reverse {
    flex-direction: row-reverse;
}

.section-image,
.section-text {
    flex: 1;
}

.section-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-slow);
}

.section-image img:hover {
    transform: scale(1.02);
}

.section-text h2,
.testimonials-heading {
    font-size: var(--text-3xl);
    color: var(--neutral-800);
    margin-bottom: var(--space-3);
}

.section-text p {
    margin-bottom: var(--space-2);
    color: var(--neutral-700);
}

.section-button {
    display: inline-block;
    background-color: var(--primary-500);
    color: white;
    font-weight: 500;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    margin-top: var(--space-3);
    transition: all var(--transition-normal);
}

.section-button:hover {
    background-color: var(--primary-600);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer styles */
footer {
    background-color: var(--newdark);



    color: var(--neutral-100);
    padding: var(--space-6) 0 var(--space-3);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

footer p {
    font-size: var(--text-sm);
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    font-size: var(--text-xl);
    color: var(--primary-300);
    margin-bottom: var(--space-2);
}

.footer-column h4 {
    font-size: var(--text-base);
    color: var(--primary-400);
    margin-bottom: var(--space-2);
}

.footer-column p {
    margin-bottom: var(--space-2);
    color: var(--neutral-300);
}

.footer-column ul li {
    margin-bottom: var(--space-1);
}

.footer-column ul li a {
    color: var(--neutral-300);
    transition: color var(--transition-fast);
    font-size: var(--text-sm);
}

.footer-column ul li a:hover {
    color: var(--primary-400);
}

.social-links {
    display: flex;
    gap: 10px;
    ;
    margin-top: var(--space-2);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    /* background-color: var(--primary-700); */
    fill: var(--neutral-400);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    fill: var(--neutral-200);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--neutral-700);
    padding-top: var(--space-3);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
}

.footer-links {
    display: flex;
    gap: var(--space-3);
}

.footer-links a {
    color: var(--neutral-400);
    font-size: var(--text-sm);
}

.footer-links a:hover {
    color: var(--primary-400);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}








.benefits-grid,
.regulations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
    margin-bottom: var(--space-6);
}


.benefit-card,
.regulations-card {
    background-color: white;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-normal);
}

.benefit-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensures the card takes full height */
}

.benefit-card span {
    margin-top: auto;
    display: block;
    font-size: var(--text-sm);
    padding-top: 20px;
}

.benefit-card:hover,
.regulations-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.benefit-card svg {
    height: 70px;
    width: 70px;
    fill: var(--primary-500);
    margin-bottom: var(--space-2);
    margin-left: auto;
    margin-right: auto;
}

.regulations-card i {
    font-size: var(--text-5xl);
    color: var(--primary-500);
    margin-bottom: var(--space-1);
}

.regulations-card span {

    font-size: var(--text-base);

}


.benefit-card h3,
.regulations-card h3 {
    font-size: var(--text-xl);
    color: var(--neutral-800);
    margin-bottom: var(--space-1);
}

.benefit-card p,
.regulations-card p {
    color: var(--neutral-600);
    font-size: var(--text-base);
}

.regulations-card svg {
    fill: var(--primary-500);
    width: 60px;
    height: 60px;
}

.regulations-card ul,
.benefit-card ul {
    margin-bottom: 30px;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.regulations-card li,
.benefit-card li {
    text-align: left;
    color: var(--neutral-700);
}







/* Split pages specific layout overrides */
.split-page .section-content {
    display: flex;
    flex-direction: row;
    /* ensures horizontal layout */
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: nowrap;
    /* prevents wrapping to new lines */
}

.split-page .section-image {
    flex: 0 0 30%;
    max-width: 30%;
}

.split-page .section-text {
    flex: 0 0 68%;
    /*  max-width: 70%; */
    /* padding-right: 30px; */
}

.section-text {
    overflow-x: auto;
    /* max-width: 100%; */
}







.feature-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: 0.3em;
    margin-left: 1em;
    /*  color: var(--neutral-500); */
}

.feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-500);
    /* Orange check mark */
    font-weight: bold;
}

/*ADVERTISING STYLES START --------------------------------------------------------- */
.ad-banner {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: var(--radius-md) !important;
}

.home-banner {
    max-width: 600px;
    margin: 0 auto 40px;
}

/*ADVERTISING STYLES END ----------------------------------------------------------- */



.split-hero .hero-content {
    padding: 0;
}

.split-page h3 {
    margin-top: 30px;
}


.contact-form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.contact-form-container label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
}

.contact-form-container input,
.contact-form-container select,
.contact-form-container textarea,
.contact-form-container button {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;

}

.contact-form-container button {
    background: var(--primary-500);
    color: white;
    font-weight: 500;
    line-height: 1.5;
    border: none;
    margin-top: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form-container button:hover {
    background: var(--primary-600);
}

#formResponse {
    margin-top: 15px;
    color: green;
    text-align: center;
}



.roadsign-container {

    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: left;
}

.roadsign-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 240px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s;
    margin: 1em;
    padding: 1.5em;
}

.roadsign-card:hover {
    transform: scale(1.03);
}

.roadsign-card img {
    width: 100%;
    height: auto;
    padding: 10px;
}

.roadsign-card .sign-name {
    padding: 10px;
    font-size: var(--text-base);
}







.thc-illustration {

    margin: 20px 20px 30px;

}

.thc-illustration img {
    padding: 10px;
    background-color: white;
    ;
    width: auto;
    height: auto;
    border-radius: 5px;
    box-shadow: var(--shadow-md);
}

.thc-illustration p {
    font-size: 0.8em;
    color: var(--neutral-900);
    margin-top: 5px;
    max-width: 400px;
}


.list-letters li {
    list-style-type: lower-alpha;
    margin-left: 20px;
}




/* Table styles */
/* Table Styles */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --header-bg: #2c3e50;
    --header-text: white;
    --row-hover: #e9f7fe;
    --even-row: #f8f9fa;
    --marker-color: #e74c3c;
    --border-color: #ddd;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.styled-table th {
    background-color: var(--header-bg);
    color: var(--header-text);
    font-weight: 600;
}

.styled-table tbody tr:nth-child(even) {
    background-color: var(--even-row);
}

.styled-table tbody tr:hover {
    background-color: var(--row-hover);
}

/* Law Demands Specific Styles */
.styled-table .title {
    width: 30%;
    vertical-align: top;
}

.styled-table .column2 {
    width: 70%;
}

.law-demands-nums,
.item-marker {
    color: var(--neutral-800);

    display: inline-block;
    /* min-width: 30px; */
}


/* Navigation styling */
.topic-nav {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    font-size: .8em;
    ;
}

.previous-topic,
.next-topic {
    padding: 10px 15px;
    background-color: var(--neutral-700);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
}

.previous-topic:hover,
.next-topic:hover {
    background-color: var(--neutral-800);
}

.justify-right {
    justify-content: right;
}


#thc li {
    margin-left: 40px;
    margin-bottom: 20px;
    line-height: 1.5em;
}

#thc h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

#thc p {
    line-height: 1.5em;

}

#thc ol {
    margin-top: 10px;
}


/* #thc-links{
    top: 0;
    position: sticky;
    z-index: 900;
    background: white;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
} */


.thc-image-group {
    display: flex;
    flex-wrap: wrap;
    /* gap: 10px; */
    justify-content: left;
}

.thc-image-group .thc-illustration {
    margin-bottom: 5px;
}

.thc-image-group .thc-illustration p {
    max-width: 300px;
}

/* .traffic-lights .thc-illustration p {
    max-width: 190px;
} */








#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: none;
    background-color: var(--primary-500);
    border: none;
    border-radius: 50%;
    padding: 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px hsla(0, 0%, 0%, 0.15);
    transition: opacity 0.3s ease, transform 0.3s ease;

}

#backToTop:hover {
    background-color: var(--primary-600);
    transform: scale(1.1);
}

#backToTop svg {
    display: block;
    height: 15px;
    width: 15px;
}


.mcq-section ol li {
    margin-bottom: 5px;
    margin-left: 40px;
}

.mcq-section .options {
    list-style-type: lower-alpha;
}

.mcq-section p {
    margin-bottom: 5px;
    margin-top: 20px;
}




.mcq-section.show-answers .highlight,
.toggle-answers,
.highlight {
    background-color: #E0F5B9;
    /* border-radius: 5px; */
    border-left: 3px solid #ACD956;
    /* color: #06800C; */
    padding: 5px;
    /* cursor:pointer; */
}

.toggle-answers {
    border: 1px solid #ACD956;
    padding: 10px 20px 10px;
    border-radius: 5px;
}




.mcq-section.hide-answers .highlight {
    background-color: transparent;
    border: none;
    color: var(--neutral-800);
    padding: 0px;
}

/*  .highlight {
     background-color: #E6F5CC;
     border-left: 5px solid #CBDDAC;
     padding-left: 10px;

     background-color: #E6F5CC;
     border-radius: 5px;
     border: 1px solid #CBDDAC;
     color: #06800C;
     padding: 5px;
     cursor: pointer;
 } */

.incorrect {
    color: #dc3545;
}


.mcq-class {
    color: var(--neutral-500);
}







/*TESTIMONIAL STYLES START --------------------------------------------------------*/



.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
}

.testimonial-card {
    background-color: white;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-icon {
    margin-bottom: var(--space-3);
}

.testimonial-icon svg {
    width: 60px;
    height: 60px;
    fill: var(--primary-500);
}

.testimonial-text {
    font-size: var(--text-base);
    color: var(--neutral-700);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    position: relative;
    padding-left: var(--space-3);
}


.testimonial-author {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.author-initials {
    width: 48px;
    height: 48px;
    background-color: var(--neutral-300);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--text-lg);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--neutral-800);
}

.author-role {
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

/*TESTIMONIAL STYLES END ----------------------------------------------------------*/


.top-extra-space {
    margin-top: 60px;
}




/*LOGIN FORM STYLES START ---------------------------------------------------------*/
.login-form-container {
    max-width: 1000px;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: row;
    margin: 0 auto 0;
}

.login-form-image {
    width: 60%;
    background-image: url('../images/login.jpg');
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
}

.sign-up-form-image {
    background-image: url('../images/sign-up.jpg');

}

.contact-form-image {
    background-image: url('../images/contact.jpg');

}

.login-form-content {
    width: 40%;
    padding: 30px;
}

.login-title {
    font-size: var(--text-2xl);
    font-weight: bold;
    color: var(--neutral-800);
    margin-bottom: var(--space-4);
    text-align: center;
}

.login-form label {
    display: block;
    font-weight: 500;
    color: var(--neutral-700);
    /* margin-bottom: 6px; */
    margin-top: var(--space-2);
}

.login-form input,
.login-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    /* margin-bottom: var(--space-2); */
}

.password-field {
    position: relative;
}

.password-field .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--neutral-400);
    cursor: pointer;
    font-size: var(--text-sm);
}

.login-error {
    color: var(--accent-red);
    text-align: center;
    margin-bottom: var(--space-2);
}

.forgot-password {
    text-align: right;
    margin-bottom: var(--space-3);
}

.forgot-password a {
    font-size: var(--text-sm);
    color: var(--primary-500);
}

.create-account {
    text-align: center;
    margin-top: var(--space-4);
}






.login-form-container select {
    width: 100%;
    padding: 10px;
    /*  margin-bottom: var(--space-2); */
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    font-size: var(--text-base);
    background: #fff;
}

.limited,
.success,
.note {
    font-size: .9rem;
    padding: 10px;
    margin-bottom: 10px;
}


.limited {
    color: #ff4343 !important;
    background: #ffeaea;
    border-left: 4px solid #ff4343;


}

.success {
    color: #557914 !important;
    background: #E0F5B9;
    border-left: 4px solid #ACD956;


}

.note {
    color: var(--primary-600) !important;
    background: #ffeddd;
    border-left: 4px solid var(--primary-600);

}



/*--practice test options page styles ---*/



.regulations-card.selected-option {
    border: 2px solid var(--primary-200);
    box-shadow: 0 0 15px rgba(255, 126, 29, 0.5);
    position: relative;
    z-index: 1;
}

.tick-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.tick-icon svg {
    width: 30px;
    height: 30px;
}

/* Show tick only when the radio is checked */
.regulations-card-wrapper input[type="radio"]:checked+.regulations-card .tick-icon {
    opacity: 1;
}

/* .regulations-card {
    cursor: pointer; 
} */


/* Wrapper label to allow full clickable area */
.regulations-card-wrapper {
    cursor: pointer;
    display: block;
}

/* Highlight selected */
.regulations-card-wrapper input[type="radio"]:checked+.regulations-card {
    /* border: 2px solid var(--primary-500); */
    box-shadow: 0 0 15px rgba(255, 126, 29, 0.5);
    position: relative;
}



.test-options-box {
    display: flex;
    gap: var(--space-4);
    flex-direction: row;
    background-color: #fff;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-top: 30px;
}

.test-option {
    width: 33.3%;
}

.test-option-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--neutral-800);
    font-size: var(--text-sm);
}

.test-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 6px;
    margin-right: 8px;
}

.test-option-icon.blue {
    /* background-color: #e1ebff; */
    background-color: #ffecde;
    color: #2563eb;
}

.test-option-icon.yellow {
    /* background-color: #fff3cd; */
    background-color: #ffecde;
    color: #fbbf24;
}

.test-option-icon.green {
    /* background-color: #d1fae5; */
    background-color: #ffecde;
    color: #16a34a;
}

.test-option select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: white;
}



/* Responsive table container */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}


/* Optional: improve appearance of horizontal scroll */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: 4px;
}



.dashboard-stats {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-right: 10px;
}

.stat-card {
    flex: 1;
    min-width: 180px;
    background: #fff;
    padding: 1.5rem 1rem;
    border-left: 6px solid transparent;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0.5rem 0 0;
}

.score-trend {
    font-size: 1rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.score-trend.up {
    color: green;
}

.score-trend.down {
    color: red;
}

/* Unique colors per stat */
.stat-total {
    border-left-color: var(--primary-500);
}

.stat-average {
    border-left-color: var(--primary-500);
}

.stat-latest {
    border-left-color: var(--primary-500);
}

/* Accent for icons (match border) */
/* .stat-total .stat-icon {
    color: #3498db;
}

.stat-average .stat-icon {
    color: #f39c12;
}

.stat-latest .stat-icon {
    color: #2ecc71;
} */

.stat-card svg {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    fill: var(--primary-500);
    /* Use current text color for icon */
}

.stat-card h4 {
    font-size: 1.2rem;
    color: var(--neutral-500);
}


.center-button {
    display: block;
    margin-top: 20px;
    text-align: center;
}


.what-to-study {
    text-align: center;
}

.turnstile-container {
    width: 100%;
    margin: 20px auto 0;
    text-align: center;
}

.highlight-unanswered {
    border: 2px solid #ffc4c4;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 10px;
}






/* Position the stars on the card */
.testimonial-card {
    position: relative;
}

.testimonial-stars {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 2px;
    color: var(--accent-yellow);
    /* easy color control */
}

/* Size control */




.testimonial-stars .star {
    width: var(--star-size);
    height: var(--star-size);
    display: inline-flex;
}

.testimonial-stars svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
    /* lets CSS control the color */
}




/*google ads styles*/

.google-horizonal-ad {
    margin-bottom: 30px;
    margin-top: 30px;
    text-align: center;
}

.google-square-ad {
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}






/* =========================
   PRO TIPS GRID
========================= */

.pro-tips-grid {
    display: grid;

    /* MAX 3 per row */
    grid-template-columns: repeat(3, 1fr);

    gap: var(--space-4);
    margin-top: var(--space-4);
    margin-bottom: var(--space-6);
}


/* Tablet: 2 per row */
@media (max-width: 992px) {
    .pro-tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Mobile: 1 per row */
@media (max-width: 576px) {
    .pro-tips-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================
   PRO TIPS STYLE (same look as regulations)
========================= */
.pro-tips-intro {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}

.pro-tips-card {
    background-color: white;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;

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

    display: flex;
    flex-direction: column;
}


/* Hover effect */
.pro-tips-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}


/* Image styling */
.pro-tips-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;

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


/* Title */
.pro-tips-card h3 {
    font-size: var(--text-xl);
    color: var(--neutral-800);
    margin-top:30px;
    line-height: 1.4;
    margin-bottom: var(--space-2);

    flex-grow: 1;
}


/* Link text */
.pro-tips-card span {
    font-size: var(--text-base);
    color: var(--primary-600);
    font-weight: 500;
}