/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Full viewport height */
    margin: 0; /* Remove default margin */
}

/* Top bar styling */
header {
    background-color: #004aad;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.icon {
    font-size: 24px;
    margin-right: 10px;
}

.logo-container p {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
}

header a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

header a:hover {
    text-decoration: underline;
}

header .info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Button Styling */
button {
    padding: 10px 15px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #004085;
}

button.favorite {
    margin-top: 10px;
}

/* Feedback message styling */
.feedback-message {
    margin-top: 5px;
    font-size: 12px;
    color: green;
}

/* Resource listing */
.resource-list {
    margin: 20px auto;
    width: 90%;
    max-width: 800px;
    flex: 1; /* Ensures proper spacing with footer */
}

.resource-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.2s ease;
}

.resource-item:hover {
    transform: scale(1.02);
}

.resource-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #007BFF;
}

.resource-item p {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

/* Pagination styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 10px 0;
}

.pagination .page-link {
    padding: 8px 12px;
    margin: 0 5px;
    background-color: #f1f1f1;
    color: #007BFF;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.pagination .page-link:hover {
    background-color: #007BFF;
    color: white;
}

.pagination .active {
    background-color: #0056b3;
    color: white;
    pointer-events: none;
}

/* Footer */
footer {
    background-color: #005E89;
    color: white;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    margin-top: auto;
}

/* Top Bar */
.top-bar {
    background-color: #005E89;
    color: white;
    display: flex; /* Enables flexbox for alignment */
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
    height: 30px; /* Adjust height for ~half an inch visually */
    font-size: 15px; /* Reduce font size to fit the height */
    padding: 0; /* Remove extra padding */
    line-height: 1; /* Tighten spacing */
    overflow: hidden; /* Ensure no content overflows */
}

.contact-info {
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.dashboard-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #005E89;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.dashboard-button:hover {
    background-color: #003f5c;
}

.contact-info i {
    margin-right: 5px;
    font-size: 16px;
}

/* Container for the two bars */
.top-bar-container {
    direction: ltr !important; /* Force the background container to use LTR */
    display: flex; /* Flexbox to align bars horizontally */
    position: relative; /* For layering and precise placement */
    height: 60px; /* Height of the bars */
    background-color: #0088FF;  /* Ensure the white background for bars */
    justify-content: space-between; /* Space out logo and navigation */
    padding: 0;
    width: 100%;
}

.navigation-bar {
    background-color: #0A2E72; /* Background color of left bar */
    display: flex;
    align-items: center;
    justify-content: flex-end; 
    padding: 0; /* Add some padding inside */
    margin-right: 10px;
}

.navigation-bar a {
    text-decoration: none;
    color: white; /* Make text visible on the blue background */
    font-weight: bold;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 30px; /* Optional for rounded corners */
    transition: background-color 0.3s ease;
}

.navigation-bar a:hover {
    background-color: #0056b3; /* Slightly darker blue on hover */
}

/* Left bar styling */
.left-bar {
    background-color: #0088FF; /* Background color of left bar */
    display: flex;
    align-items: center;
    padding: 0 10px; /* Add some padding inside */
    flex: 1; /* Takes up the remaining space */
    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 50%, 100% 100%, 0 100%);    /* Creates the '>' shape */
}

/* Right bar styling */
.right-bar {
    background-color: #0A2E72; /* Background color of right bar */
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    flex-shrink: 0; /* Keeps its size fixed */
    width: 300px; /* Fixed width for the right bar */
    height: 100%;
    margin: 0px;
    clip-path: polygon(20px 0, 100% 0, 100% 100%, 20px 100%, 0 50%);
    overflow: hidden;
    position: relative; 
    /* Creates the '<' shape */
}

.robicon {
    font-size: 30px; /* Adjust size as needed */
    color: rgb(206, 58, 58); /* Optional: Change color */
    margin-left: 5px;
    line-height: 1;
}

.logo-container {
    display: flex;  /* Align the heart icon and title horizontally */
    align-items: center; /* Vertically align the icon and title */
    gap: 10px; /* Space between the icon and title */
    margin-left: 1px;
}

.icon {
    font-size: 50px; /* Adjust size as needed */
    color: rgb(212, 29, 29); /* Optional: Change color */
    margin-left: 0;
    line-height: 1;
}

.mental-health {
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    line-height: 1; /* Ensures proper alignment */
    display: flex;
    align-items: center; /* Ensures alignment with the icon */
    margin-right: 350px;
}

/* Example icons using Font Awesome */
.fa {
    color: #0088FF;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 150px;
}

nav ul {
    font-size: 20px;
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #0A2E72;
    text-decoration: none;
    font-weight: bold;
}

/* Reusable button class */
.nav-button {
    text-decoration: none;
    background-color: #005E89; /* Default button background color */
    color: white; /* Text color */
    padding: 10px 20px; /* Padding for button size */
    border-radius: 5px; /* Rounded corners */
    font-size: 16px; /* Font size */
    font-weight: bold; /* Bold text */
    transition: background-color 1s; /* Smooth hover transition */
}

/* Hover effect for buttons */
.nav-button:hover {
    background-color: #005ae0; /* Change background color on hover */
    transition: 1s; /* Smooth hover effect */
}

.chat-btn {
    background-color: #0088FF; /* Button background color */
    color: white; /* Text color */
    border: none; /* Remove default border */
    padding: 10px 20px; /* Adjust padding for size */
    border-radius: 25px 0 0 25px; /* Rounded left, square right */
    cursor: pointer; /* Add pointer on hover */
    font-size: 13px; /* Adjust font size */
    font-weight: bold; /* Make the text bold */
    margin-left: auto; 
}

/* Optional: Add hover effect */
.chat-btn:hover {
    background-color: #005ae0; 
    transition: 1s;
}
