/* Ensure no horizontal scroll or gap */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    height: 100%;
}

/* Apply consistent box-sizing to all elements */
* {
    box-sizing: border-box; /* Prevent padding/margin from affecting overall width */
}

/* Ensure header and top-bar containers don't overflow */
.header, .top-bar-container, .welcome-section {
    width: 100%; /* Set width to viewport width */
    max-width: 100%; /* Prevent children from exceeding the parent's width */
    overflow-x: hidden; /* Prevent horizontal overflow */
}

/* Additional safeguard for elements causing overflow */
.container, .content, .main-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Reset padding/margins that may contribute to overflow */
ul, li, p, h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

/* Prevent unnecessary gaps or scrollbars for images */
img {
    max-width: 100%;
    height: auto;
    display: block; /* Avoid inline image gaps */
}

body {
    font-family: "Ubuntu Sans", sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}



.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: 80px; /* Increased height for a larger bar */
    background-color: #0088FF; /* Ensure the white background for bars */
    justify-content: space-between; /* Space out logo and navigation */
    padding: 10px 20px; /* Added padding for better spacing */
    width: 100%;
}


.navigation-bar {
   /* background-color: #0A2E72; /* Background color of left bar */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px; /* Add some padding for a better appearance */
    margin-right: 10px;
    border-radius: 15px; /* Adjust the value for the desired roundness */
}

.navigation-bar a {
    text-decoration: none;
    color: white; /* Make text visible on the blue background */
    font-weight: bold;
    font-size: 1rem;
    padding: 10px 20px; /* Increase padding for more background area */
    background-color: #0A2E72; /* Background color of the links */
    border-radius: 30px; /* Rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover effects */
}



.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;
    font-size: 10rem; /* Increase the size of the heart icon */
}



.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: 25px;
    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: 250px;
}

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 0px 0px 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;
}




.welcome-section {
    direction: ltr !important; /* Force the background container to use LTR */
    height: calc(100vh - 70px); /* Full height minus top bars' height */
    background-image: url('mother-and-child.jpg'); /* Replace with your image file path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.welcome-overlay {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    text-align: left;
    color: #0088FF;
    
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
}

.welcome-overlay h1 {
    font-family: "Ribeye", serif;
    margin: 0 0 20px 0;
    font-size: 3rem;
     text-align: left;
}

.welcome-overlay p {
    font-family: "Urbanist", sans-serif;
    margin: 0 0 20px 0; /* Add spacing below the paragraph */
    font-size: 1.5rem; /* Adjust the font size */
    color: #0A2E72; /* Keep the text color white */
    text-align: left; /* Align the text to the left */
}

/* .select {
    font-family: "Urbanist", sans-serif; /* Font for the prompt 
    font-size: 2rem; /* Adjust font size 
    font-weight: bold;
    color: #0056F9;
    text-align: center; /* Keep the text centered 
    margin-top: 20px; /* Adjust the vertical space above
    margin-bottom: 20px; /* Adjust the space below 
    display: flex; /* Use flexbox for centering 
    justify-content: center; /* Horizontally center the text 
} */


/* .language-buttons {
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}

.language-buttons button {
    margin: 0;
    padding: 10px 15px;
    width: 200px;
    border: none;
    border-radius: 20px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.language-buttons button:hover {
    background-color: #0056b3;
} */

/* resource center page*/
.resource-center-section {
    height: auto;
    background-color: #f5faff;
    padding: 5px;
}

.resource-center-section h1 {
    font-size: 3rem;
    color: #f5faff;
    text-align: center;
    margin-bottom: 20px;
}

.resource-center-section p {
    font-size: 2rem;
    color: #f5faff;
    text-align: center;
    margin-bottom: 40px;
}

.resource-heading{
    font-family: "Ribeye", serif;

}

.resource-grid {
   
  display: grid;
  grid-template-columns: auto auto auto;
  background-color: #005E89;
  padding: 10px;
}

.resource-box {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.8);
  padding: 20px;
  font-size: 30px;
  text-align: center;
}

.resource-box a {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
    color: #007bff;
}

.resource-box:hover {
    transform: scale(1.05);
    background-color: #dceeff;
}

.resource-box:hover a {
    color: #0056b3;
}
.resource-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.resource-list ul {
    list-style: none;
    padding: 0;
}

.resource-list li {
    font-size: 1.2rem;
    margin: 10px;
} 

.resource-list a {
    text-decoration: none;
    font-weight: bold;
    color: #007bff;
    background-color: #f0f8ff;
    padding: 10px 20px;
    border-radius: 10px;
    display: block;
    text-align: center;
    transition: 0.3s ease;
}

.resource-list a:hover {
    background-color: #0056b3;
    color: white;
}


/*dashboard page*/
.dashboard-body{
    display: flex;
    flex-direction: column; /* Stack children vertically */
    min-height: 100vh;
    font-family: "Ribeye", serif;
}

header.dashboard-header {
    background-color: #005E89;
    color: white;
    padding: 20px;
    text-align: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container h1 {
    margin: 0;
}

.header-container ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.header-container a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.header-container a:hover {
    background-color: #003f5c;
}

.dashboard-main {
    padding: 20px;
    flex: 1; /* This allows the main section to grow and take up available space */

}

/* Profile Section */
.profile-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}



.profile-info h2 {
    margin: 10px 0;
}

.settings-link {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #005E89;
    font-weight: bold;
    transition: color 0.3s;
}

.settings-link:hover {
    color: #003f5c;
}

/* Search Section 
.search-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.search-section form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-section input {
    width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-section button {
    padding: 10px 20px;
    background-color: #005E89;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.search-section button:hover {
    background-color: #003f5c;
}*/

/* Recommendations Section */
.saved-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.saved-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.saved-section li {
    margin: 5px 0;
}

.saved-section a {
    text-decoration: none;
    color: #005E89;
    transition: color 0.3s;
}

.saved-section a:hover {
    color: #003f5c;
}

/* Quick Links Section */
.quick-links-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.quick-links-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.quick-links-section li {
    margin: 5px 0;
}

.quick-links-section a {
    text-decoration: none;
    color: #005E89;
    transition: color 0.3s;
}

.quick-links-section a:hover {
    color: #003f5c;
}

/* Footer 
footer.dashboard-footer {
    text-align: center;
    padding: 10px;
    background-color: #005E89;
    color: white;
}*/

footer{
    position: static;
    padding: 5px;
    bottom: 0;
    width: 100%;
    height: 30px;
    background-color: #005E89;
    color: white;
    font-size: 30px;
}
/* login page */
/* General Styles */
body {
    font-family: "Ubuntu Sans", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5faff;
    color: #333;
}

/* Header */
.login-topbar {
    text-align: center;
    padding: 20px;
    background-color: #005E89;
    color: white;
}

.login-topbar .icon {
    font-size: 50px;
    color: rgb(212, 29, 29);
    display: block;
}

.login-topbar .mental-health { /* Fixed: Changed the invalid selector */
    font-size: 30px;
    font-weight: bold;
    margin: 10px 0;
}


/* Auth Section */
/* Auth Forms */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.auth-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-container label {
    text-align: left;
    font-weight: bold;
    color: #333;
}

.auth-container input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
}

.auth-container button {
    padding: 10px 15px;
    background-color: #005E89;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-container button:hover {
    background-color: #003f5c;
}

.auth-container p {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.auth-container p a {
    color: #005E89;
    text-decoration: none;
    font-weight: bold;
}

.auth-container p a:hover {
    color: #003f5c;
}

.auth-footer {
    text-align: center;
    padding: 10px;
    background-color: #005E89; /* Footer background color */
    color: white; /* Footer text color */
    flex-shrink: 0; /* Prevent the footer from shrinking */
    margin-bottom: 0;
}

/* Error Messages */
.error {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

@media (max-width: 600px) {
    .auth-container {
        max-width: 90%; /* Adjust width for smaller screens */
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background-color: #005E89;
    color: white;
    margin-top: 20px;
    font-size: 14px;
}

.add-resource-h1 {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
    font-size: 50px;
    color: #007bff;
}




#resource-form {
    background-color: #005E89;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}


.form-label {
    display: block;
    text-align: center;
    margin-bottom: 8px;
    font-size: 25px;
    color: #f5faff;
}


input[type="text"],
textarea {
    direction: rtl;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}


input[type="text"]:focus,
textarea:focus {
    border-color: #007bff;
}


textarea {
    resize: vertical;
    height: 100px;
}


.textarea-container{
    width: 100%;
}




#char-count {
    text-align: right;
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 25px;
    margin-top: -10px;
}


fieldset {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    background-color: #0A2E72;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


fieldset div {
    display: flex;
    align-items: center;
    flex-basis: 30%;
    margin-bottom: 10px;
}


legend {
    color: #f5faff;
    background-color: #0088FF;
    font-size: 25px;
    width: 100%;
    text-align: center;
    border-radius: 4px;
}


input[type="checkbox"]{
    height: 20px;
    width: 20px;
}


button[type="submit"] {
    background-color: #0088FF;
    color: #fff;
    width: 175px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}


button[type="submit"]:hover {
    background-color: #359cf7;
}


.tag-type{
    margin-left: 5px;
    font-size: 20px;
    color: #f5faff;
}


#explanation{
    text-align: center;
    color: #007bff;
    margin-bottom: 20px;
    font-size: 20px;
}


#explanation-container{
    max-width: 800px;
    margin: 0 auto;
    /*padding: 5px;*/
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


#message{
    color: #f5faff;
    font-size: 15px;
}


/*Start of accessdenied.php*/


#access-message-container {
    width: 100%;
    display: flex;
    justify-content: center; /* Horizontally center */
    margin-top: 40px; /* Adds space below the header */
}


#access-message {
    padding: 40px 60px; /* Makes the box larger with more padding */
    background-color: #f8d7da; /* Lighter red */
    color: #721c24; /* Darker text color for better readability */
    font-size: 32px; /* Larger font size */
    font-weight: bold;
    border-radius: 12px; /* Rounded corners */
    text-align: center;
    max-width: 80%; /* Limits the width to 80% of the page */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
}


