/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.img {
    width: 50px;
    height: auto;
}

/* Navbar Styling - No Background */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: none;
    position: relative;
    z-index: 10;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Ranchbook Title */
.logo {
    color: maroon;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
}

/* Help Center - Less Bold & Lower Opacity */
.help-center {
    font-size: 22px;
    font-weight: normal;
    color: rgba(0, 0, 0, 0.6); /* Lighter opacity */
}

/* Navigation Links - Light Grey, Smaller Font */
.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    color: #6b6b6b; /* Slightly lighter gray */
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease; /* Smooth hover effect */
}

/* Hover Effect: Darker Gray (No Underline) */
.nav-links a:hover {
    color: #333; /* Darker gray */
}

/* Search Section */
.search-section {
    max-width: 800px;
    margin: 50px auto 70px auto; /* Centered horizontally with space on top */
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left-align */
}

/* Left-aligned "How can we help?" */
.search-section h2 {
    font-size: 53px; /* Bigger text */
    color: maroon; /* Same as logo */
    margin-bottom: 30px;
}

/* Search Bar */
.search-bar {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: left; /* Center the search input */
}

.search-bar input {
    width: 750px; /* Full width of parent */
    max-width: 100%; /* Increased max width */
    padding: 12px 18px;
    padding-right: 50px; /* Space for icon */
    font-size: 18px;
    border: 2px solid #bbb; /* Softer border */
    border-radius: 50px;
    outline: none;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    transition: border-color 0.3s ease;
    background-color: #ffffff3b;
}

/* Search Bar Focus Effect */
.search-bar input:focus {
    border-color: maroon; /* Matches logo */
}

/* Search Icon */
.search-bar i {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: gray;
    font-size: 20px;
    cursor: pointer;
}

.search-main {
    position: relative;
    width: 100%;
    height: max-content;
    top: 0px;
    left: 0px;
    background: linear-gradient(to bottom, #ffffff, #8000000d); /* White fading into light gray */
    display: flex;
    justify-content: center;
    align-items: center;
}


/* 2-Column Layout for Help Topics */
.columns-container {
    display: flex;
    justify-content: center; /* Center the entire container */
    max-width: 750px; /* Matches search bar width */
    margin: 0 auto; /* Centering horizontally */
    padding: 20px;
    gap: 50px; /* Space between columns */
    margin-top: 20px;
}

/* Individual Column */
.column {
    flex: 1;
    min-width: 350px; /* Ensure each column is half the width */
}

/* Section Titles - Slightly Larger */
.column h2 {
    font-size: 22px; /* Increased size */
    color: maroon;
    margin-bottom: 15px; /* Increased spacing below title */
}

/* List Styles */
.column ul {
    list-style: none;
    padding: 0;
}

/* Increased Padding Between Links */
.column ul li {
    margin-bottom: 12px; /* More space between each link */
}

/* Link Styling */
.column ul li a {
    text-decoration: none;
    color: #6b6b6b;
    font-size: 16px;
    transition: color 0.3s ease;
}

/* Hover Effect */
.column ul li a:hover {
    color: #333;
}

/* View All Link */
.view-all {
    font-weight: bold;
    color: maroon;
    margin-top: 15px; /* Increased spacing */
    display: inline-block;
}

.view-all:hover {
    color: #800000;
}

/* Footer Styling */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    background: none; /* No background color */
    font-size: 14px;
    color: #6b6b6b;
}

/* Contact Support Link - Same Style as Copyright */
.footer a {
    color: #6b6b6b; /* Match copyright text color */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px; /* Space between icon and text */
}

/* Hover Effect */
.footer a:hover {
    color: #333;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: maroon;
    background: none;
    border: none;
    outline: none;
}

/* Mobile Styles */
@media screen and (max-width: 1240px) {
    .navbar {
        position: relative;
        align-items: center;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 15px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        right: 0;
        background: white;
        width: 100%;
        border-radius: 0;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 12px 0;
        width: 100%;
    }

    .nav-links a {
        color: #333;
        font-size: 16px;
        display: block;
        padding: 10px 20px;
    }

    .columns-container {
        flex-direction: column;
        align-items: center;
    }

    .column {
        width: 90%;
    }
}

@media screen and (max-width: 1240px) {
    /* Adjust Search Section */
    .search-section {
        max-width: 80vw;
        padding: 0 15px;
        text-align: center;
        margin-top: 30px; /* Adjust top spacing */
    }

    /* Reduce "How Can We Help?" Heading Size */
    .search-section h2 {
        font-size: 32px; /* Smaller for mobile */
        margin-bottom: 20px;
    }

    /* Make Search Bar Responsive */
    .search-bar {
        justify-content: center;
        width: 400px;
        max-width: 100%;
    }

    .search-bar input {
        width: 100%; /* Adjust width for mobile */
        max-width: 450px; /* Smaller max-width */
        font-size: 16px;
        padding: 10px 15px;
    }

    /* Search Icon Adjustment */
    .search-bar i {
        right: 25px;
        font-size: 18px;
    }
}

/* Content Container */
.content-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Content Styling */
.content h2 {
    font-size: 24px;
    color: maroon;
    margin-bottom: 10px;
}

.content p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: max-content;
    margin-bottom: 1px;
}

.breadcrumb > p {
    padding: 0px 0px;
}

.breadcrumb > p {
    padding: 0px 10px;
}

.breadcrumb > a {
    text-decoration: none;
    color: #800000;
    font-weight: 600;
}

.breadcrumb > a:hover {
    text-decoration: underline;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.dropdown > a::after {
    content: "\f107"; /* FontAwesome down arrow */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #6b6b6b;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

/* Rotate arrow when active */
.dropdown.active > a::after {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    min-width: 200px;
    border-radius: 5px;
    z-index: 99;
}

/* Show dropdown when parent is active */
.dropdown.active .dropdown-menu {
    display: block;
}

/* Dropdown menu items */
.dropdown-menu li {
    padding: 2px 0px;
    white-space: nowrap;
}

.dropdown-menu li a {
    color: #6b6b6b;
    text-decoration: none;
    font-size: 14px;
    display: block;
    transition: color 0.3s ease;
    padding: 10px 20px;
}

.dropdown-menu li a:hover {
    color: #333;
    background: #f5f5f5;
}

/* Mobile Styles */
@media (max-width: 1240px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        right: 0;
        background: white;
        width: 100%;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown-menu {
        position: relative;
        width: 100%;
        box-shadow: none;
        padding: 0;
    }

    .dropdown-menu li {
        padding: 5px;
    }

    .dropdown-menu li a {
        display: block;
        padding: 10px 30px;
        text-align: left;
    }
}

/* Search Results Container */
.search-results {
    margin-top: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 300px; /* Prevent excessive scrolling */
    overflow-y: auto;
    padding: 10px;
}
.search-results:empty {
    display: none;
}
/* Individual Search Result */
.result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease-in-out;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
}

.result-item:last-child {
    border-bottom: none;
}

/* Hover Effect */
.result-item:hover {
    background: #f9f9f9;
}

/* Search Result Links */
.result-item a {
    font-size: 16px;
    font-weight: bold;
    color: #0013a5;
    text-decoration: none;
}

.result-item a:hover {
    text-decoration: underline;
}

/* Snippet Text */
.snippet {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
    line-height: 1.4;
    text-align: left;
}

/* Highlighted Search Term */
.snippet strong {
    color: #d9534f; /* Highlight in red */
    font-weight: bold;
}

/* Mobile Styles for Search Results */
@media (max-width: 1240px) {
    .search-results {
        width: 90%; /* Matches search bar width */
        max-width: 400px; /* Prevents it from being too wide */
        margin: 10px auto; /* Centers the results */
        padding: 8px;
        position: relative;
    }

    .result-item {
        padding: 8px;
        font-size: 14px;
    }

    .result-item a {
        font-size: 15px;
    }

    .snippet {
        font-size: 13px;
        text-align: left;
    }
}


