
/* ./css/header.css */

/* ============================================================= */
/* HEADER: LOGO AND TITLE                                        */
/* ============================================================= */

/* Main container for the top header section */
#section0 {
    padding: 15px 2%; /* Use percentage for responsive padding */
    background-color: #f8f9fa; /* A light background to match the theme */
    text-align: center;
}

/* 
  Use Flexbox to layout the header.
  - 'align-items: center' vertically centers the logo and the title.
  - The content is centered within a max-width container for a balanced look on large screens.
*/
.header-content {
    display: flex;
    justify-content: left; /* ADDED: This centers the logo and title block */
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0;
}
/* Logo styling */
.logo-link img {
    width: 60px; /* Slightly larger for better visibility */
    height: 60px;
    display: block; /* Removes any extra space below the image */
}

/* 
  Container for the main title and subtitle.
  It will now sit to the right of the logo naturally.
*/
.title-container {
    text-align: left; /* Aligns the text to the left */
}

/* Main title styling */
.title0 {
    font-size: 1.6rem;
    font-weight: bold;
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #05668d; /* Matching theme color */
    text-decoration: none;
    display: block; /* Makes the link a block element for better spacing */
    transition: color 0.2s ease; /* Adds a subtle transition for the hover effect */
}

/* The link is still there, but the underline is removed on hover. */
.title0:hover {
    text-decoration: none;
    color: #058f6c; /* Optional: A slightly lighter color on hover to show interactivity */
}

/* Subtitle styling */
.subtitle {
    font-size: 1.1rem;
    color: #002D73;
    margin: 4px 0 0 0; /* Adds a little space above, removes default margins */
    font-weight: normal;
    font-style: italic;
}

/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
    /* On smaller screens, stack the logo and title vertically */
    .header-content {
        flex-direction: column; 
        gap: 8px; /* REDUCED: This controls the vertical space between logo and title now */
    }

    .title-container {
        margin-top: 0; /* REMOVED: No longer needed, as 'gap' handles the spacing */
        text-align: center; /* Center the text on mobile */
    }

    .title0 {
        font-size: 1.5rem; /* Adjust font size for smaller screens */
    }

    .subtitle {
        font-size: 1rem;
    }
}


/* ============================================================= */
/* NAVIGATION BAR                                                */
/* ============================================================= */

/* Navigation bar container */

.navigation-bar{
    overflow: hidden;
    background-color: #055f46;
    font-family: roboto;
    font-style: normal;
    text-decoration: none;
    text-shadow: slategrey;
    color: #427aa1;
    
    /* width: fit-content; */
}

/* Links inside navigation-bar */
.navigation-bar a{
    float: left;
    font-size: 20px;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}
/* Dropdown container */

.drop-down{
    float: left;
    overflow: hidden;
}

.drop-down .drop-btn{
    font-size: 20px;
    border: none;
    outline: none;
    color: darkslategray;
    padding: 14px 16px;
    background-color: inherit; /* Importent for vertical align on mobile phones */
    font-family: inherit; /* Importent for vertical align on mobile phones */
    font-family: inherit;
    margin: 0;
}

/* Adding some background color to navigation bar links on hover */

.navigation-bar a:hover, .drop-down:hover .drop-btn{
    background-color: #05668d;
    color: #ebf2fa;

}

/* ============================================================= */

/* Dropdown content (hidden by default) */
.dropdown-content{
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 100px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Links inside the dropdown */

.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

/* Adding background color to dropdown links on hover */
.dropdown-content a:hover {
    background-color: #ddd;
}

/* Show the dropdown menu on hover */

.drop-down:hover .dropdown-content{
    display: block;
}

/* footer should be at the last of the html or css "Write any code above to this" */

.footer{
    font-family: 'Courier New', Courier, monospace;
    /* color: #004e92;  */
    text-align: center;
    background-color: #055f46;
}

#section0 .logo img {
    padding: 2px;
    width: 50px;
    height: 50px;
    border-radius: 1px; /* Corrected the typo 'redius' to the valid CSS 'border-radius' */
}


/* ============================================================= */
/* FOOTER                                                        */
/* ============================================================= */
.footer {
    background-color: #055f46;
    padding: 10px 0; /* Use padding for vertical spacing */
}

.footer h5 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #ffffff;
    text-align: center;
    margin: 0; /* Reset default margin */
    font-size: 0.9rem; /* Use a standard font-size property */
    font-weight: normal; /* h5 is bold by default, this makes it regular */
}