/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FDF5E6;
    color: #333;
    line-height: 1.6;
}

/* CSS Variables */
:root {
    --primary-orange: #FF4500;
    --warm-orange: #FF6B35;
    --cream-bg: #F5F5DC;
    --light-cream: #FDF5E6;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --dark-footer-bg: #1D2633;
    --footer-text: #E5E7EB;
    --footer-link-hover: #FFD700;
}

/* Navigation Styles */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-image {
    height: 75px;
    width: auto;
    margin-right: 0.75rem;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary-orange);
    color: var(--white);
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    background-color: var(--cream-bg);
    color: var(--primary-orange);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-gray);
    transition: all 0.3s ease;

}

/* Privacy Pop-up Styles */
.privacy-pop-up {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: none; /* Hidden by default */
}

.privacy-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.privacy-pop-up p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.privacy-pop-up a {
    color: #FFD700;
    text-decoration: underline;
}

.accept-btn {
    background-color: #FF4500;
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.accept-btn:hover {
    background-color: #FF6B35;
}

/* Mobile menu active state */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
   
}

.nav-menu.active .nav-link {
    width: 100%;
    padding: 0.75rem 2rem;
}

.nav-menu li {
    list-style: none;
}

.dropdown-menu {
    list-style: none;
}

/* Privacy Pop-up Styles */
.privacy-pop-up {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: none; /* Hidden by default */
}

.privacy-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.privacy-pop-up p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.privacy-pop-up a {
    color: #FFD700;
    text-decoration: underline;
}

.accept-btn {
    background-color: #FF4500;
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.accept-btn:hover {
    background-color: #FF6B35;
}

/* Styling for the buttons container */
.pop-up-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Styling for the new decline button */
.decline-btn {
    background-color: #555;
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.decline-btn:hover {
    background-color: #777;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
}

/* Smaller slider for resource pages */
.small-slider {
    height: 200px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
    max-width: 800px;
}

.slide-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.slide-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Smaller font sizes for the small slider */
.small-slider .slide-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.small-slider .slide-description {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.slide-button {
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.slide-button:hover {
    background-color: var(--warm-orange);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 100;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

.slider-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 100;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: var(--primary-orange);
}

/* Main Content Sections */
.main-content {
    padding: 0;
}

.content-section,
.process-section,
.testimonials-section {
    padding: 4rem 1rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.section-content.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
}

.image-content {
    flex: 1;
}

.section-image-small {
        width: 100%;
        height: 200px; /* Half the original 400px height */
    object-fit: cover;
    border-radius: 12px; /* This is the property that creates rounded corners */
    box-shadow: var(--shadow);
}


.section-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.section-button {
    display: inline-block;
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.section-button:hover {
    background-color: var(--warm-orange);
}

/* Our Process Section */
.process-section {
    background-color: var(--cream-bg);
    text-align: center;
}

.process-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    flex: 1;
    max-width: 300px;
}

.step-number {
    display: inline-block;
    background-color: var(--primary-orange);
    color: var(--white);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--text-gray);
}

/* Testimonials Section */
.testimonials-section {
    text-align: center;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: left;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background-color: var(--dark-footer-bg);
    color: var(--footer-text);
    padding: 4rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-about p {
    color: var(--text-light);
}

.footer-list {
    list-style: none;
}

.footer-link {
    text-decoration: none;
    color: var(--footer-text);
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--footer-link-hover);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    color: var(--footer-text);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--footer-link-hover);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border-radius: 8px;
    border: none;
    outline: none;
}

.newsletter-form button {
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--warm-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-disclaimer {
    margin-top: 1rem;
    color: var(--text-light);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background-color: var(--white);
        box-shadow: var(--shadow);
        padding: 1rem 0;
        z-index: 2000;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 2rem;
    }

    /* Mobile Dropdown Styling */
    .nav-dropdown .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        background-color: transparent;
    }

    /* Rule to show the dropdown when a new class is added by JavaScript */
    .nav-dropdown.active .dropdown-menu {
        display: flex;
        flex-direction: column;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .section-content {
        flex-direction: column;
        gap: 2rem;
    }

    .section-content.reverse {
        flex-direction: column;
    }

    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Collapsible Menu Styles */
.collapsible-container {
    margin-top: 2rem;
}

.collapsible-button {
    background-color: var(--white);
    color: var(--primary-orange);
    cursor: pointer;
    padding: 1.5rem;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.collapsible-button:hover, .collapsible-button.active {
    background-color: #f0f0f0;
}

.collapsible-button .icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease-in-out;
}

.collapsible-button.active .icon {
    transform: rotate(90deg);
}

.collapsible-content {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f9f9f9;
}

.case-law-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 1rem;
}

.collapsible-description {
    background-color: #f0f0f0;
    padding: 1.5rem;
    margin: 1.5rem 1rem 2rem 1rem;
    border-radius: 12px;
    border-left: 5px solid var(--primary-orange);
}

.collapsible-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Container for the image and caption */
.image-content {
    position: relative;
    border-radius: 12px;
    overflow: hidden; /* This is crucial for rounding the corners of the image and caption together */
    box-shadow: var(--shadow);
}

/* Make the image responsive and fill its container */
.image-content .section-image-small {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Style the text caption strip at the bottom */
.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black strip */
    color: white;
    padding: 1rem 0;
    text-align: center;
}

/* Style the text inside the caption */
.image-caption p {
    margin: 0; /* Removes default paragraph margin */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}



@media (max-width: 480px) {
    .hero-slider {
        height: 300px;
    }
    
    .small-slider {
        height: 150px;
    }

    .slide-title {
        font-size: 1.5rem;
    }
    
    .small-slider .slide-title {
        font-size: 1.25rem;
    }

    .slide-description {
        display: none;
    }

    .section-image {
        height: 200px;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .image-text-overlay-container {
    position: relative;
    display: flex; /* Or grid */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    }
    .section-overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* Place image behind the text */
    border-radius: 12px;
    }
    .section-text-overlay {
    position: relative;
    z-index: 2; /* Place text above the image */
    background-color: rgba(255, 255, 255, 0.75); /* Semi-transparent white background for readability */
    padding: 2rem;
    border-radius: 12px;
    }
    @media (max-width: 768px) {
    .image-text-overlay-container {
        flex-direction: column;
    }
    }

/* Table Specific Styles for Judicial Hierarchy */

/* Container for responsive overflow */
.responsive-table-container {
    overflow-x: auto;
    width: 100%;
    margin-top: 2rem;
}

/* Main Table Styling */
.court-hierarchy-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.court-hierarchy-table thead th {
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap; /* Ensures headers stay on one line */
}

.court-hierarchy-table tbody tr {
    border-bottom: 1px solid #eee;
}

.court-hierarchy-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.court-hierarchy-table tbody td {
    padding: 1rem;
    vertical-align: top;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.court-hierarchy-table tbody td:first-child {
    font-weight: 700;
    color: var(--primary-orange);
}


/* Responsive Design: Stacking on Small Screens */
@media screen and (max-width: 768px) {
    .court-hierarchy-table {
        /* On small screens, prevent table from collapsing fully for readability, 
           relying on overflow-x: auto in the container */
        display: block; 
    }
}


/* Responsive Design: Stacking on Small Screens */
@media screen and (max-width: 768px) {
    .court-hierarchy-table {
        /* On small screens, prevent table from collapsing fully for readability, 
           relying on overflow-x: auto in the container */
        display: block; 
    }


}
