/* public/assets/style.css */
:root {
    --mwu-green: #FFF0F5;       /* Deep Forest Green */
    --mwu-gold: #F2C111;        /* Bright Academic Gold */
    --mwu-gold-dark: #C69B0A;   
    --hospital-teal: #7FFFD4;   /* Clinical Teal */
    --hospital-blue: #F0F8FF;   
    --bg-light: #F8F9FA;        
    --text-dark: #2C3E50;       
    --white: #FFFFFF;
    --header-height: 400px;      /* Standard locked baseline tracking */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding-top: 0px; /* Prevents content from sliding behind the locked header */
    line-height: 1.6;
}

/* 1. LOCKED / STICKY HEADER WRAPPER CONTAINER */
.main-header {
	position:sticky;
	top:0;
	z-index: 1000;
  display: grid;
  grid-template-columns: 1fr 250px 80px; 
  grid-template-rows: auto 300px auto; 
  align-items: center;
  gap: 15px;
  height: var(--header-height);
  padding: 15px;
  background-color:transparent; /* #87CEEB; /* Sky blue background */
   background-image: 
                    url('./images/hospital.jpeg'); 
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Adds depth over scrolling content */

 /* filter: blur(...); 
  opacity: 1; */
	
  }

/* 2. Enhanced Banner Style 
.banner {
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: #1c3d5a;
  background-color: transparent; /* Makes text readable over the background image 
  padding: 8px 12px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Safely truncates text if it overflows its grid cell 
}*/

/* 3. Automatic Hiding & Responsive Breakpoints */
@media (max-width: 1024px) {
  /* Hides the banner on tablets and smaller devices */
  .banner {
    display: none;
  }
  
  /* Re-adjusts grid columns to fill the missing 4fr banner space */
  .main-header {
    grid-template-columns: 2.0fr 2.0fr 0.8fr 3fr; 
  }
}

@media (max-width: 600px) {
  /* Extra optimization for mobile viewports */
  .main-header {
    grid-template-columns: 1fr auto; /* Stack logo and menu row elements */
    gap: 10px;
    padding: 10px 15px;
  }
  
  /* Hides search bar and language selector on small phones to prevent layout breaking */
  .search-bar, .lang-nav {
    display: none;
  }
}

.lang-nav{
    grid-row: 3 / 4 ;
    grid-column: 3 / 4;
    justify-self: end;
    align-self: baseline;
}
.header-item {
  padding: 10px;
  background-color: transparent; /* Semi-transparent white to pop against sky blue */
  border-radius: 0px;
  text-align: center;
}
.banner {
 /* text-align: center;
  font-size: 1.000rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1c3d5a; /* Deep navy text for contrast */
  grid-row: 2 / 3;
  grid-column: 1 / -1;
  background-color: #2c3e50;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  

}

.search-form {
  display: flex;
  width: 100%;
}

.search-form input {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.search-bar {
grid-row: 3 / 4;
grid-column: 2 / 3;
align-self: baseline;

}
.search-form button {
  padding: 1px 1px;
  background-color: #98c1e4;
  color: white;
  border: 1px solid #333;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.search-form button:hover {
  background-color: #555;
}



/* Logo and Institutional Signage Branding */
.logo-zone {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    align-self: center;
    font-weight: bold;
    font-size: 24px;
}
.login-btn-nav a {
    grid-row: 1 / 2;
    grid-column: 3 / 4;
    justify-self: end;
    align-self: center;
    padding: 8px 16px;
}
.mwu-logo-img {
    height: 15px;
          	/* Fits elegantly inside the 80px header height layout */
    width: 15px;
	
}

.logo-text h2 {
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.logo-text p {
    margin: 2px 0 0 0;
    color: var(--mwu-gold);
    font-size: 0.85rem;
    font-weight: 600;
}
/******************************************************************************************/
/* Base Navbar Styling */
.portal-main-nav {
    /*
    background: transparent;
    color:#F8FAFC;
    padding: 12px 20px;
    border-bottom: 0px ;
    font-family: sans-serif;
    position: relative;
    z-index: 1000;*/
    grid-row: 3 / 2;
    grid-column: 2/ 3;
    display: flex;
    gap: 20px;
    align-self: baseline;
    top:400px
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
gap: 3rem;
}
/* Base style for top-level menu items */
.nav-item-link, .dropdown-trigger-btn {
    color: var(--white);
    text-decoration: none;
    padding: 0 15px;
    height: var(--header-height);
    line-height: var(--header-height);
    font-weight: bold;
    display: inline-block;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.nav-menu a {
    color: #FFF;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}
.nav-menu a.active, 
.nav-menu a:hover {
    color:#BAE6FD ;
}


/* Dropdown Container */
.dropdown {
    position: relative;
}
.dropdown-toggle .arrow {
    font-size: 10px;
    margin-left: 4px;
}
/* Dropdown Menu (Desktop Hidden) */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #6A4A5A;
    border: 0px  ;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    padding: 10px 0;
    z-index: 1001;
}
.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-weight: normal;
}
/* Show Dropdown on Hover (Desktop Only) */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Mobile Hamburger Button (Hidden on Desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: #FFF;
    transition: all 0.3s ease;
}

/* Mobile Responsive Styling (Break Point: 768px) */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex; /* Show Hamburger */
    }
    .nav-menu {
        display: none; /* Hide standard menu */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #2A1A2A;
        padding: 20px;
        box-sizing: border-box;
        border-bottom: 3px solid var(--mwu-gold);
        gap: 15px;
        align-items: flex-start;
    }
    /* Toggle Mobile Classes via JS */
    .nav-menu.open {
        display: flex;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(250,250,250,0.05);
        width: 100%;
        padding-left: 15px;
        border: none;
    }
    .dropdown.open .dropdown-menu {
        display: block;
    }
}


/******************************************************************************************/

/* Deep Ocean Footer Structure */
.ocean-footer {
    background-color: #0C4A6E; /* Deep Ocean Blue for grounding authority */
    color: #F8FAFC; /* Crisp Cloud White Text */
    padding: 4rem 2rem 2rem 2rem;
    margin-top: auto; /* Pushes footer to bottom if content is short */
    border-top: 4px solid #0369A1; /* Wave Accent Border */
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

/* Brand & Emergency Column */
.footer-brand-pane {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    color: #FFFFFF;
}
.footer-tagline {
    font-size: 0.9rem;
    color: #BAE6FD; /* Soft sky blue secondary text */
    line-height: 1.5;
}
.emergency-banner {
    background-color: #991B1B; /* Deep clinical red for urgent triage notice */
    border-left: 4px solid #EF4444;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}
.emergency-banner p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FEE2E2;
}
.emergency-phone {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FFFFFF;
    text-decoration: none;
    display: block;
    margin-top: 0.25rem;
}

/* Link Columns */
.footer-column h4 {
    color: #BAE6FD; /* Sky Blue headers */
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.footer-links a {
    color: #E0F2FE;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-links a:hover {
    color: #FFFFFF;
    padding-left: 4px; /* Subtle organic shift */
}

/* Compliance & Copyright Sub-bar */
.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(224, 242, 254, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #BAE6FD;
}
.compliance-links {
    display: flex;
    gap: 1.5rem;
}
.compliance-links a {
    color: #BAE6FD;
    text-decoration: none;
}
.compliance-links a:hover {
    color: #FFFFFF;
}

/* ==================================================== */
/* MOBILE FOOTER OPTIMIZATIONS                          */
/* ==================================================== */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}
@media (max-width: 640px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .compliance-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}
/* Core Workspace Positioning */
.workspace-wrapper {
    max-width: 1400px;
    margin: 2.5rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Generic Content Block Shell */
.content-block {
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.02), 0 2px 4px -1px rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.04);
}
.content-block h4 {
    color: #0F172A; /* Deep Navy */
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.card-desc {
    font-size: 0.9rem;
    color: #475569; /* Soft Slate */
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* Sky Blue Themed Accent Cards */
.card-sky { background-color: #E0F2FE; border-color: #BAE6FD; }
.card-white { background-color: #FFFFFF; }

/* Dynamic Layout Grids */
.portal-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}
.grid-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* News Section Styling */
.block-news {
    background-color: #FFFFFF;
    border-left: 5px solid #0369A1; /* Ocean blue anchor border */
}
.block-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.block-badge {
    background-color: #BAE6FD;
    color: #0C4A6E;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}
.news-ticker {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.news-item-mini {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}
.news-date {
    color: #0369A1;
    font-weight: 700;
    min-width: 80px;
}

/* List Formatting */
.quick-links-list, .talks-schedule {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.quick-links-list a {
    color: #0369A1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}
.quick-links-list a:hover { text-decoration: underline; }

/* Internal Embedded Boxes */
.research-highlight-box, .calendar-milestones .milestone {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}
.tag-status {
    font-size: 0.7rem;
    background: #DCFCE7;
    color: #14532D;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
}
.research-highlight-box h5 { margin-top: 0.5rem; color:#0F172A; }
.research-highlight-box .author { font-size: 0.8rem; color:#64748B; }

/* Psychological Split Row Layout */
.wellness-split-zone {
    background-color: #F0F9FF; /* Calm misty background */
    border: 1px solid #BAE6FD;
    border-radius: 16px;
    padding: 2.5rem;
}
.block-heading-center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}
.block-heading-center h3 { color: #0F172A; font-size: 1.5rem; margin-bottom: 0.5rem; }
.block-heading-center p { color: #475569; font-size: 0.95rem; }
.wellness-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.wellness-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.wellness-card h5 { font-size: 1.2rem; color: #0C4A6E; }
.wellness-card p { font-size: 0.9rem; color: #475569; line-height: 1.6; }
.btn-care-link {
    margin-top: auto;
    color: #0369A1;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}
.btn-care-link:hover { color: #0C4A6E; }

/* ==================================================== */
/* RESPONSIVE LAYOUT MATRIX                             */
/* ==================================================== */
@media (max-width: 1024px) {
    .portal-grid-layout, .wellness-grid {
        grid-template-columns: 1fr;
    }
    .workspace-wrapper {
        padding: 0 1rem;
        margin: 1.5rem auto;
        gap: 1.5rem;
    }
}

