/* site-files/app.css */

/* Base styles for better readability and consistency */
body {
    color: #E2E8F0; /* text-gray-200 */
    background-color: #1A202C; /* bg-gray-900 */
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: #F97316; /* text-orange-500 */
    font-weight: 700; /* Tailwind font-bold */
}

/* Custom styles for the Material Symbols icons to ensure proper alignment and size */
.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
    vertical-align: middle;
}

/* Specific button styling to remove underline on anchor buttons */
a.inline-flex.items-center, button {
    text-decoration: none !important;
}

/* Active state for sort/filter buttons */
.sort-button.active-sort, .filter-button.active-filter {
    background-color: #EA580C; /* bg-orange-600 */
    color: #FFFFFF; /* text-white */
}

/* Ensure review cards and rating items have consistent height */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch; /* Makes all items in the grid have equal height */
}

.rating-item {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .rating-item {
        flex-direction: row;
    }
}

.rating-item > a {
    height: 160px; /* Fixed height for image container on desktop */
    width: 224px; /* md:w-56 (56 * 4 = 224px) */
}

@media (max-width: 767px) {
    .rating-item > a {
        width: 100%; /* Full width on mobile */
        height: 200px; /* Adjust height for mobile images */
    }
}

/* Footer image container styling */
.footer-img-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem; /* Equivalent to Tailwind gap-6 */
}

.footer-img-container img {
    height: 40px; /* h-10 */
    width: auto;
    max-width: 150px; /* max-w-[150px] */
    object-fit: contain;
    filter: none; /* Ensure no grayscale or other filters */
}

.footer-img-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: auto;
    max-width: 150px;
    flex-shrink: 0;
}

/* Cookie banner and modal checkbox styling */
.form-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-block;
    vertical-align: middle;
    height: 1.25rem; /* h-5 */
    width: 1.25rem; /* w-5 */
    border-radius: 0.25rem; /* rounded */
    border: 1px solid #D1D5DB; /* gray-400 */
    background-color: #4B5563; /* gray-600 */
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.form-checkbox:checked {
    background-color: #EA580C; /* orange-600 */
    border-color: #EA580C; /* orange-600 */
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.form-checkbox:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #4A5568; /* gray-700 */
    border-color: #4A5568; /* gray-700 */
}
/*
 * Base styles for the law matrix node container.
 * Provides padding for internal content.
 */
.lawMatrixNode {
    padding-top: 1.5rem;    /* Top padding for the content */
    padding-bottom: 1.5rem; /* Bottom padding for the content */
    padding-left: 2rem;     /* Left padding for the content */
    padding-right: 2rem;    /* Right padding for the content */
}

/*
 * Stock styles for heading elements (h1-h5) within .lawMatrixNode.
 * Font sizes are set to be reasonable, not excessively large,
 * with appropriate margins and line heights.
 */
.lawMatrixNode h1 {
    font-size: 2em;         /* Relatively large, but not huge, for main titles */
    margin-top: 1.2em;      /* Space above the heading */
    margin-bottom: 0.6em;   /* Space below the heading */
    line-height: 1.2;       /* Tighter line height for headings */
    font-weight: bold;      /* Ensure bold appearance */
}

.lawMatrixNode h2 {
    font-size: 1.7em;       /* Slightly smaller than h1 */
    margin-top: 1em;        /* Space above the heading */
    margin-bottom: 0.5em;   /* Space below the heading */
    line-height: 1.3;       /* Standard line height */
    font-weight: bold;
}

.lawMatrixNode h3 {
    font-size: 1.4em;       /* Further reduction in size */
    margin-top: 0.8em;      /* Space above the heading */
    margin-bottom: 0.4em;   /* Space below the heading */
    line-height: 1.4;       /* Standard line height */
    font-weight: bold;
}

.lawMatrixNode h4 {
    font-size: 1.2em;       /* Closer to body text size, but distinct */
    margin-top: 0.7em;      /* Space above the heading */
    margin-bottom: 0.35em;  /* Space below the heading */
    line-height: 1.5;       /* Standard line height */
    font-weight: bold;
}

.lawMatrixNode h5 {
    font-size: 1.05em;      /* Just slightly larger than paragraph text, often used for sub-headings */
    margin-top: 0.6em;      /* Space above the heading */
    margin-bottom: 0.3em;   /* Space below the heading */
    line-height: 1.6;       /* Standard line height */
    font-weight: bold;
}

/*
 * Stock styles for paragraph text within .lawMatrixNode.
 * Sets a comfortable line height and bottom margin for readability.
 */
.lawMatrixNode p {
    font-size: 1em;         /* Default font size for paragraphs */
    margin-bottom: 1em;     /* Space below each paragraph */
    line-height: 1.6;       /* Optimal line height for readability */
}

/*
 * Stock styles for unordered lists (ul) within .lawMatrixNode.
 * Provides standard indentation and spacing.
 */
.lawMatrixNode ul {
    margin-top: 1em;        /* Space above the list */
    margin-bottom: 1em;     /* Space below the list */
    margin-left: 2em;       /* Indentation for the list items */
    padding-left: 0;        /* Reset browser default padding */
    list-style-type: disc;  /* Default bullet style */
}

/*
 * Stock styles for list items (li) within .lawMatrixNode.
 * Adds spacing between list items for better readability.
 */
.lawMatrixNode li {
    margin-bottom: 0.5em;   /* Space below each list item */
    line-height: 1.6;       /* Optimal line height for readability */
}


.logoNav, .footerLogo{
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.logoNav h2, .footerLogo h2{
    margin: 0;
    font-size: clamp(18px,2.5vw,22px);
    color: #F97316;
}

.logoNav img, .footerLogo img{
    width: 60px;
    height: 60px;
    object-fit: contain;
}