/* =========================================================
   BASE & RESET
========================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 1. DEFINE YOUR CUSTOM FONT FIRST */
@font-face {
    font-family: "Raleway";
    src: url("fonts/raleway.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Caveat";
    src: url("fonts/caveat.ttf") format("truetype");
    font-weight: normal;
    font-style: normal; /* Changed to normal */
}

/* 2. YOUR EXISTING STYLES (Unchanged, but now they will work!) */
body {
    /* UI Font for standard body text */
    font-family: 'Cantarell', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    background-color: #ffffff;
}

/* Structural Headers use Raleway (or standard sans fallback) */
h1, h2, h3, h4, h5, h6, .main-nav a, .btn-primary, .portal-card h3 {
    font-family: "Raleway", "Inter", sans-serif;
    text-transform: none;
}

/* Accents use Caveat for stylized flair */
.accent-text {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    line-height: 0.9;
    color: #444;
}

.accent-text.highlight {
    color: var(--lma-primary-blue);
    font-size: 2rem;
    margin-bottom: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

:root {
    --lma-dark-blue: #2E4C8F;
    --lma-primary-blue: #2E4C8F;
    --lma-bright-blue: #4B8DD1;
    --lma-cyan: #46B6D1;
    --lma-grey: #e9ecef;
    /* AA-compliant text greys (4.5:1+ on white) added to replace low-contrast originals */
    --lma-text-grey: #5f6975;
    --lma-focus-color: #ffb400;
}

/* =========================================================
   ACCESSIBILITY: SKIP LINK
========================================================= */
.skip-link {
    position: absolute;
    left: 8px;
    top: -60px;
    background: #ffffff;
    color: #2E4C8F;
    padding: 12px 20px;
    z-index: 100000;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.15s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.skip-link:focus {
    top: 8px;
}

/* =========================================================
   ACCESSIBILITY: VISIBLE FOCUS INDICATOR
   Applies a clearly visible outline to every interactive
   element when reached via keyboard, without changing the
   look of a mouse click.
========================================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible,
.tab:focus-visible,
.dot:focus-visible,
.carousel-arrow:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #1a1a1a;
    border-radius: 2px;
}

/* Screen-reader-only utility text (visually hidden, still announced) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Respect user preference to reduce motion: stop auto-scrolling/animating content */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.001ms !important;
    }
    .advisory-track {
        animation: none !important;
        transform: none !important;
    }
    .advisory-track-wrapper {
        overflow-x: auto !important;
    }
}

/* Manual pause control for the advisory marquee (button injected by JS) */
#advisory-bar.is-paused .advisory-track {
    animation-play-state: paused;
}

.advisory-pause-btn {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.12);
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    transition: background-color 0.2s;
}
.advisory-pause-btn:hover {
    background-color: rgba(255, 255, 255, 0.26);
}

/* =========================================================
   HEADER & NAVIGATION
========================================================= */
.site-header {
    padding: 10px 0;
    margin-top: 28px;
    background: #fff;
    /* Removed the bottom border as requested */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Keeps logo and right-side vertically centered */
}

.main-logo {
    height: 60px;
    object-fit: contain;
}

/* Right Side Wrapper */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Aligns icons and nav to the right edge */
    gap: 10px; /* Space between icons and nav */
}

/* Icons (Top Right) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-icon:hover {
    transform: scale(1.25);
}

/* Navigation (Bottom Right) */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 35px; /* Space between main nav items */
}

.main-nav li {
    position: relative; /* Needed to anchor the dropdown menu */
}

/* Main Nav Links */
.main-nav a {
    display: flex;
    align-items: center;
    gap: 12px; /* Increased space between text and arrow */
    text-decoration: none;
    font-style: none;
    color: var(--lma-dark-blue);
    font-size: 15px;
    padding: 10px 0;
    font-weight: 800;
    transition: color 0.2s;
}

/* Bold the active page */
.main-nav a.active {
    font-weight: 1000; 
}

/* FIXED: The Dropdown Arrow Animation - Now using Escaped Class Name */
.menu-arrow\.png {
    display: inline-block;
    width: 30px; /* User feedback: larger arrow */
    height: auto;
    transition: transform 0.2s ease; /* Smooth spinning animation */
}

/* FIXED: Spin the arrow up when hovering over the list item */
.main-nav li:hover .menu-arrow\.png {
    transform: rotate(180deg);
}

/* Dropdown Menu Box */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: #fff;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    border-radius: 0px;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.1s ease;
    
    display: flex;
    flex-direction: column;
    z-index: 100;
    
    /* CRITICAL FIX 1: The !important forces it to ignore the main nav's 35px gap */
    gap: 0 !important; 
    margin: 0;
    padding: 0;
    overflow: hidden; 
}

/* Trigger the dropdown on hover AND keyboard focus (focus-within covers
   Tab-ing into any link inside it, so keyboard-only users can reach it) */
.main-nav li:hover .dropdown-menu,
.main-nav li:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ensure the list items themselves don't hold onto extra space */
.dropdown-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 1. The actual clickable options */
.dropdown-menu a {
    /* CRITICAL FIX 2: display: block forces the link to behave like a stacked rectangle */
    display: block; 
    box-sizing: border-box; /* Keeps padding inside the 100% width */
    
    padding: 10px 15px; 
    font-weight: 800; /* Thin UI look */
    text-transform: none; 
    width: 100%;
    color: var(--lma-dark-blue);
    
    position: relative;
    overflow: hidden; /* Keeps the overlay hidden when off-screen */
    z-index: 1; /* Ensures text stays visible above the background */
    
    /* Smooth transition for the text color change */
    transition: color 0.2s ease;
}

/* 2. The Photo Sliding Overlay background (same custom design/photo on every item) */
.dropdown-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2E4C8F; /* Fallback color while the image loads */
    background-image: url("bilder/navigation/nav-bild.png");
    background-size: cover;
    background-position: center;
    z-index: -1; 
    
    transform: scaleX(0);
    transform-origin: left;
    
    /* MODIFIED: Added a 0.08s delay at the very end for the SLIDE OUT */
    transition: transform 0.2s ease-in-out 0.05s;
}

/* 3. Hover State - Change anchor to left so it slides IN from the left */
.dropdown-menu a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
    
    /* NEW: Removes the delay on hover so the SLIDE IN starts instantly */
    transition-delay: 0s;
}

/* 4. Text color change on hover */
.dropdown-menu a:hover {
    color: #ffffff;
    transition-delay: 0.08s; 
}

/* 5. The light grey border between items */
.dropdown-menu li:not(:last-child) {
    border-bottom: 1px solid #e9ecef; 
}

/* 6. Hide arrow for dropdown items just in case */
.dropdown-menu .dropdown-arrow-svg {
    display: none; 
}

/* =========================================================
   NEW REFINED HERO SECTION
========================================================= */
.refined-hero {
    padding-bottom: 0px;
    padding-top: 0px; /* Optional: gives a little breathing room from the header */
    
    /* These two lines guarantee the box inside stays dead center */
    display: flex; 
    justify-content: center; 
}

.hero-container {
    position: relative;
    width: 100%;
    max-width: 1280px; /* Your fixed width size */
    
    /* This is the magic line that centers it horizontally */
    margin: 0 auto; 
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* =========================================================
   HERO SLIDESHOW (replaces the single .hero-image)
   Markup needed: a .hero-slideshow div wrapping several
   .hero-slide images (each with the .hero-image class),
   plus .hero-slide.active on whichever one is showing.
========================================================= */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    /* Auto-advance interval for the JS to read (ms) */
    --hero-slide-interval: 6000;
}

.hero-slideshow .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s ease-in-out, transform 6s ease-out;
    z-index: 0;
}

.hero-slideshow .hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* Forward / backward controls, styled in the brand's dark blue.
   NOTE: these controls are siblings of .hero-slideshow inside
   .hero-container, not descendants of .hero-slideshow — scoped
   to .hero-container so the rule actually matches the markup,
   and given a z-index above the fading slide image so they stay
   visible at all times, not just mid-crossfade. */
.hero-container .carousel-arrow {
    background: rgba(46, 76, 143, 0.55); /* --lma-dark-blue at 55% */
    z-index: 5;
    transition: background 0.2s ease;
}

.hero-container .carousel-arrow:hover {
    background: rgba(46, 76, 143, 0.85);
}

.hero-container .carousel-dots {
    z-index: 5;
}

.hero-container .dot.active {
    background: var(--lma-bright-blue);
}

/* Punchline highlight box   now inline per line */
.hero-text-box {
    position: absolute;
    top: 55%;
    left: 100px;
    transform: translateY(-50%);
    
    background-color: transparent; /* No background on the container */
    padding: 0;
    z-index: 2;
    max-width: 520px;
}

/* Each line gets its own tight white box */
.hero-text-box p {
    font-family: "Raleway", -apple-system, sans-serif;
    color: #2E4C8F;
    font-size: 2.50rem;
    font-weight: 100;
    line-height: 1.1;
    letter-spacing: -1px;
    font-style: none;
    text-transform: none;
    margin: 0 0 6px 0; /* Gap between line boxes */
    
    /* THE KEY CHANGE: each <p> is its own white box */
    display: inline-block;
    background-color: #ffffff;
    padding: 8px 14px;
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
    position: relative;
    height: 500px;
    background: url('images/slide1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content-box {
    background: #ffffff;
    padding: 40px;
    max-width: 480px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-content-box h2 {
    color: var(--lma-primary-blue);
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.hero-content-box .accent-text {
    margin-bottom: 30px;
}

.btn-primary {
    background: var(--lma-primary-blue);
    color: #fff;
    text-decoration: none;
    padding: 15px 30px;
    font-weight: bold;
    display: inline-block;
    letter-spacing: 1px;
}

/* Carousel Controls */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    border: none;
    font-family: inherit;
    z-index: 5;
}
.carousel-arrow.left { left: 0; }
.carousel-arrow.right { right: 0; }
.carousel-dots { position: absolute; bottom: 20px; width: 100%; text-align: center; }
.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    border: none;
    padding: 0;
}
.dot.active { background: #fff; }

.carousel-pause-btn {
    position: absolute;
    bottom: 18px;
    right: 20px;
    z-index: 6;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
}
.carousel-pause-btn:hover { background: rgba(0,0,0,0.6); }

/* =========================================================
   MAIN CONTENT GRID
========================================================= */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.intro-section h3 { color: var(--lma-primary-blue); font-size: 1.5rem; margin-bottom: 20px; }
.intro-section h4 { font-size: 1.3rem; margin-bottom: 15px; line-height: 1.2; }
.intro-section p { margin-bottom: 15px; font-weight: 500; }

.portals-section { display: flex; flex-direction: column; gap: 15px; }
.portal-card {
    height: 120px; display: flex; align-items: center; padding: 0 30px;
    text-decoration: none; color: #fff; font-size: 1.5rem; background-size: cover; background-position: center; transition: transform 0.5s;
}
.portal-card:hover { transform: scale(0.9); }

.student-portal { background: linear-gradient(to right, rgba(75, 141, 209, 0.9) 40%, rgba(75, 141, 209, 0.4)), url('images/portalstudents.jpg'); }
.staff-portal { background: linear-gradient(to right, rgba(14, 54, 108, 0.9) 40%, rgba(14, 54, 108, 0.4)), url('images/portalstaff.jpg'); }
.guest-portal { background: linear-gradient(to right, rgba(70, 182, 209, 0.9) 40%, rgba(70, 182, 209, 0.4)), url('images/portalguests.jpg'); }

.news-section h3 { color: var(--lma-primary-blue); font-size: 1.5rem; margin-bottom: 20px; }
.news-item { margin-bottom: 15px; }
.news-date { color: var(--lma-text-grey); font-size: 0.9rem; display: block; font-weight: 600;}
.news-item p { font-weight: 700; color: #222; margin-top: 2px;}
.view-all { display: inline-block; margin-top: 15px; color: var(--lma-primary-blue); font-weight: bold; text-decoration: none; font-family: "Raleway", sans-serif; }

/* =========================================================
   FOOTER
========================================================= */
.footer-pattern {
    height: 50px;
    background: url('images/pattern3.png') center; 
}

.main-footer {
    background: #2E4C8F;
    color: #fff;
    padding: 40px 0 20px 0;
}

.footer-header h2 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 15px;
    letter-spacing: 1px;
}

/* Mission & Logos Row */
.footer-mission-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mission-text p {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    line-height: 1.1;
    color: #fff;
}

.discover-more {
    display: flex;
    align-items: center;
    gap: 20px;
}

.discover-more span {
    font-family: "Raleway", sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.footer-logos {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-logos img {
    height: 40px;
    object-fit: contain;
}

/* 3-Column Links */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-links-grid a {
    color: #fff;
    text-decoration: none;
    font-family: "Raleway", sans-serif;
    font-size: 1.0rem;
    font-weight: 200;
    text-transform: none;
    display: flex;
    align-items: left;
    justify-content: left;
    gap: 10px;
    transition: color 0.2s;
}

.footer-links-grid a:hover {
    color: var(--lma-cyan);
}

.footer-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    /* Optional: filter to make black icons white if needed */
    /* filter: brightness(0) invert(1); */
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    font-size: 0.85rem;
    opacity: 0.7;
    text-align: center;
}

@media (max-width: 900px) {
    .content-grid { grid-template-columns: 1fr; }
    .footer-mission-row { flex-direction: column; text-align: center; gap: 20px; }
    .discover-more { flex-direction: column; }
    .main-nav ul { flex-wrap: wrap; gap: 10px; }
    .footer-links-grid { grid-template-columns: 1fr; }
}
/* Container for trigger + dropdown */
.action-item {
    position: relative;
    display: inline-block;
}

/* Reset native <button> chrome for controls converted from <a>/<div onclick>
   to real buttons for keyboard accessibility, so they still look identical */
.action-item > button,
.mobile-nav-label,
.mobile-subnav-back {
    background: none;
    border: none;
    font: inherit;
    text-align: left;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}
.action-item > button {
    width: auto;
    padding: 0;
    cursor: pointer;
}

.action-item > a#login-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.bubble-dropdown {
    position: absolute;
    top: 50px;
    right: -10px;
    background: #fff;
    min-width: 300px;
    z-index: 1000;
    padding: 5px 0;

    box-shadow: 0 10px 35px rgba(0,0,0,0.5);

    transform-origin: top;
    transform: scaleY(0) translateY(-5px);

    opacity: 0;
    pointer-events: none;

    transition:
        transform 0.25s ease,
        opacity 0.2s ease;
}

.bubble-dropdown.active {
    transform: scaleY(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.bubble-dropdown::after {
    content: "";
    position: absolute;

    top: -10px;
    right: 25px;

    width: 0;
    height: 0;

    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;

    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.08));
}

/* Dropdown Content Styling */
.bubble-dropdown a, 
.bubble-dropdown button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--lma-dark-blue);
    font-family: "Raleway", sans-serif;
    font-size: 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #f3f3f3;
}

.bubble-dropdown a:hover, 
.bubble-dropdown button:hover {
    background-color: #f3f3f3;
    color: #2E4C8F !important;
}

/* Login Specific Styling */
.login-bubble {
    padding: 30px;
    min-width: 400px;
    min-height: 200px;
}

.login-bubble h3,
.login-bubble .bubble-title {
    font-size: 16px; 
    margin-bottom: 15px; 
    font-weight: 700;
}

/* INPUTS: Styled with only a bottom border */
.login-bubble input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-bottom: 1.0px solid #2E4C8F;
    border-top: none;
    border-left: none;
    border-right: none;
}

/* Visible keyboard-focus style (previously outline:none with no replacement) */
.login-bubble input:focus-visible {
    outline: 3px solid var(--lma-focus-color);
    outline-offset: 1px;
}

/* BUTTON: Base styles and hover transition */
.login-bubble button {
    background-color: #2E4C8F; /* Starts as solid dark blue */
    color: #ffffff; /* Starts with white text */
    border: none;
    padding: 12px 100px;
    text-align: center;
    text-decoration: none;
    font-style: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;

    position: relative;
    overflow: hidden;
    z-index: 1;

    /* Smooth transition for text color */
    transition: color 0.3s ease;
}

/* 1. THE BACKGROUND SLIDE (White overlay slides in) */
.login-bubble button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; 
    z-index: -1; 
    
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out 0.08s;
}

/* 2. THE ANIMATING BORDER */
.login-bubble button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Changed this to your theme color (#2E4C8F) since the background turns white on hover! */
    border: 1px solid #2E4C8F; 
    box-sizing: border-box;
    z-index: 2; 
    
    /* Starts invisible and scaled down */
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    
    /* When mouse LEAVES, it fades out opacity over 0.3s and snaps the transform back instantly */
    transition: opacity 0.1s ease-in-out 0s, transform 0s ease 0.1s;
}

/* 3. HOVER STATES (Staggered animations) */

/* Background slides in instantly on hover */
.login-bubble button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
    transition-delay: 0s; 
}

/* Border scales up and fades in on hover */
.login-bubble button:hover::after {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: center;
    
    /* Tells both opacity and transform to wait 0.12s before executing on hover */
    transition: opacity 0.2s ease-in-out 0.12s, transform 0.3s ease-in-out 0.12s;
}

/* Flip text color to dark blue on hover so it stands out against the new white background */
.login-bubble button:hover {
    color: #2E4C8F;
}

/* Accessibility States */
body.high-contrast { background: #000 !important; color: #fff !important; }
body.high-contrast * { border-color: #fff !important; }
body.no-animations * { transition: none !important; animation: none !important; }
body.large-text { font-size: 180%; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =========================================================
   PORTALS (FIXED HORIZONTAL)
========================================================= */
.portals-section {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 10px;
}

.portal-card {
    flex: 1;
    height: 100px;
}

/* =========================================================
   QUICK LINKS (FLUGHAFEN FRANKFURT)
========================================================= */
.quick-links {
    padding: 70px 0;
}

.quick-links h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--lma-primary-blue);
    font-style: none;
}

/* TABS */
.tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 25px;
}

.tab {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 300;
    font-family: "Raleway", fallback-font, generic-family;
    font-style: none;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    color: #696969;
}

/* ACTIVE TAB = FRA STYLE UNDERLINE */
.tab.active {
    color: var(--lma-primary-blue);
}

.tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--lma-primary-blue);
}

/* TAB CONTENT */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* GRID */
.quick-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 50px;
}

/* ITEMS */
.ql-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 5px;
    border-bottom: 1px solid #e6e6e6;
    text-decoration: none;
    color: #444;
    font-size: 18px;
    transition: all 0.25s ease;
}

.ql-item img {
    width: 26px;
    opacity: 0.8;
    transition: transform 0.25s ease;
}

/* HOVER = FRA FEEL */
.ql-item:hover {
    color: var(--lma-primary-blue);
    transform: translateX(6px);
}

.ql-item:hover img {
    transform: translateX(4px);
    opacity: 1;
}

/* =========================================================
   LMA NEWS SECTION
========================================================= */

.lma-news-section {
    padding: 70px 0;
}

.lma-news-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--lma-primary-blue);
    font-style: none;
}

/* GRID LAYOUT */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* CARD */
.insta-card {
    border: 1px solid #eee;
    padding: 12px;
    background: #fff;
    transition: all 0.3s ease;
}

.insta-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* IMAGE */
.insta-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 12px;
    display: block;
}

/* TEXT */
.insta-card p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 14px;
    color: #333;
    min-height: 65px;
}

/* LINK */
.insta-card a {
    display: inline-block;
    color: var(--lma-primary-blue);
    font-weight: bold;
    text-decoration: none;
}

/* MOBILE */
@media (max-width: 900px) {

    .insta-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   RESPONSIVE FIXES
========================================================= */
@media (max-width: 900px) {

    .portals-section {
        flex-direction: column;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .insta-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        flex-wrap: wrap;
        gap: 15px;
    }
}
/* =========================================
   QUICK LINKS HOVER ARROW (IMAGE VERSION)
========================================= */
.ql-item {
    position: relative;
    padding-right: 40px; /* space for arrow */
}

/* Arrow (hidden initially) */
.ql-item::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);

    width: 30px;
    height: 30px;

    background-image: url("images/arrowblue.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    opacity: 0;
    transition: all 0.3s ease;
}

/* Hover animation */
.ql-item:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* =========================================================
   CONTENT PAGE
========================================================= */
.cp-hero {
    padding-bottom: 10px;
    padding-top: 0px; /* Optional: gives a little breathing room from the header */
    
    /* These two lines guarantee the box inside stays dead center */
    display: flex; 
    justify-content: center; 
}

.cp-hero-container {
    position: relative;
    width: 100%;
    max-width: 1280px; /* Your fixed width size */
    
    /* This is the magic line that centers it horizontally */
    margin: 0 auto; 
}

.cp-hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Punchline highlight box for content page hero (edited by adric) */
.cp-hero-overlay {
    position: absolute;
    top: 70%;
    left: 100px; /* Position within the hero */
    transform: translateY(-50%); /* Center vertically */
    
    background-color: #fff; /* White highlight box */
    padding: 20px 30px;
    border-radius: 0; /* Keep flat, geometric style */
    z-index: 2;
    max-width: 450px;
}

/* Italic punchline styling */
.cp-hero-text-box p {
    font-family: var(--lma-ui-font, 'Raleway'), -apple-system, sans-serif;
    color: #2E4C8F; /* Deep blue to contrast with white box */
    font-size: 2.3rem;
    font-weight: 100;
    line-height: 1.0;
    letter-spacing: -1.5px;
    
    /* THE IMPORTANT CHANGES: Italic and white highlight look */
    font-style: none; /* From Frankfurt example */
    text-transform: none; /* Just normal capitalization */
}

.content-layout {
    padding-top: 70px;
    padding-bottom: 90px;
}

.content-heading {
    max-width: 900px;
    margin-bottom: 55px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--lma-text-grey);
    margin-bottom: 18px;
}

.content-heading h1 {
    font-size: 36px;
    font-style: none;
    font-weight: 200;
    line-height: 1.00;
    color: var(--lma-bright-blue);
    margin-bottom: 15px;
}

.content-heading p {
    font-size: 18px;
    line-height: 1.9;
    color: #5f6975;
    max-width: 760px;
}

.content-feature-image {
    margin-bottom: 75px;
}

.content-feature-image img {
    width: 100%;
    display: block;
    border-radius: 0px;
}

.content-body {
    max-width: 920px;
}

.content-block {
    margin-bottom: 70px;
}

.content-block h2 {
    font-size: 34px;
    font-weight: 500;
    font-style: none;
    color: #1f2933;
    margin-bottom: 22px;
}

.content-block p {
    font-size: 17px;
    line-height: 1.95;
    color: #5d6874;
    margin-bottom: 20px;
}

.content-highlight {
    margin-top: 90px;
    background: var(--lma-dark-blue); /* was --lma-bright-blue: only 3.48:1 with white body text, fails AA */
    border-radius: 0px;
    padding: 70px;
}

.highlight-inner {
    max-width: 760px;
}

.highlight-inner h2 {
    font-size: 42px;
    font-weight: 500;
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.highlight-inner p {
    font-size: 18px;
    line-height: 1.9;
    color: #ffffff;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .content-layout {
        padding-top: 50px;
    }

    .content-heading h1 {
        font-size: 40px;
    }

    .content-block h2 {
        font-size: 28px;
    }

    .content-highlight {
        padding: 40px 30px;
    }

}

/* Officer Profile Layout */
.officer-profile-container {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: 20px;
}

.officer-photo {
    width: 180px;
    height: auto;
    border-radius: 0px; /* Gives a smooth slightly rounded edge to her photo */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Optional soft drop shadow */
    flex-shrink: 0;
    border: 1px;
}

/* Mobile Responsive adjustment */
@media (max-width: 600px) {
    .officer-profile-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .officer-photo {
        width: 150px; /* Scales down slightly on small devices */
        margin-bottom: 10px;
    }
}

/* =========================================================
   BUTTON STYLE!!!!
========================================================= */

.button {
  background-color: #2E4C8F; /* Starts as solid dark blue */
  color: #ffffff; /* Starts with white text */
  border: none;
  padding: 12px 100px;
  text-align: center;
  text-decoration: none;
  font-style: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;

  position: relative;
  overflow: hidden;
  z-index: 1;

  /* Smooth transition for text color */
  transition: color 0.3s ease;
}

/* 1. THE BACKGROUND SLIDE (White overlay slides in) */
.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff; 
  z-index: -1; 
  
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out 0.08s;
}

/* 2. THE ANIMATING BORDER */
.button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  border: 1px solid #2E4C8F; /* Note: If your button is dark blue, you might want this to be #ffffff so it's visible on hover! */
  box-sizing: border-box;
  z-index: 2; 
  
  /* FIXED: Starts invisible and scaled down */
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  
  /* FIXED: When mouse LEAVES, it fades out opacity over 0.3s and snaps the transform back instantly after a delay */
  transition: opacity 0.1s ease-in-out 0s, transform 0s ease 0.1s;
}

/* 3. HOVER STATES (Staggered animations) */

/* Background slides in instantly on hover */
.button:hover::before {
  transform: scaleX(1);
  transform-origin: left;
  transition-delay: 0s; 
}

/* Border scales up and fades in on hover */
.button:hover::after {
  opacity: 1;
  transform: scaleX(1);
  transform-origin: center;
  
  /* FIXED: Tells both opacity and transform to wait 0.12s before executing on hover */
  transition: opacity 0.2s ease-in-out 0.12s, transform 0.3s ease-in-out 0.12s;
}

/* Flip text color to dark blue on hover so it stands out against the new white background */
.button:hover {
  color: #2E4C8F;
}

/* ==========================================================================
   2-Column Library Selection Grid & Custom Animating Buttons
   ========================================================================== */

.library-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .library-grid {
        grid-template-columns: 1fr;
    }
}

.library-container {
    border: 1px solid #ddd;
    border-radius: 0px;
    overflow: hidden;
    background: #fff;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.logo-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
}

.school-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.library-photo-wrapper {
    /* Pulls image edge-to-edge inside the padded container */
    width: calc(100% + 30px);
    margin-left: -15px;
    margin-right: -15px;
    margin-bottom: 15px;
}

.library-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
}

.opening-year {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* --- Animating Button Layout Styles --- */

.select-library-btn {
    background-color: #2E4C8F; /* Starts as solid dark blue */
    color: #ffffff; /* Starts with white text */
    border: none;
    padding: 12px 30px; /* Reduced side padding slightly to fit comfortably inside columns */
    text-align: center;
    text-decoration: none;
    font-style: none;
    font-family: 'Inter', sans-serif;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Smooth transition for text color */
    transition: color 0.3s ease;
}

/* 1. THE BACKGROUND SLIDE (White overlay slides in) */
.select-library-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; 
    z-index: -1; 
    
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out 0.08s;
}

/* 2. THE ANIMATING BORDER */
.select-library-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    border: 1px solid #2E4C8F; /* Dark blue border to contrast against the white hover state */
    box-sizing: border-box;
    z-index: 2; 
    
    /* FIXED: Starts invisible and scaled down */
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    
    /* FIXED: When mouse LEAVES, it fades out opacity over 0.3s and snaps the transform back instantly after a delay */
    transition: opacity 0.1s ease-in-out 0s, transform 0s ease 0.1s;
}

/* 3. HOVER STATES (Staggered animations) */

/* Background slides in instantly on hover */
.select-library-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
    transition-delay: 0s; 
}

/* Border scales up and fades in on hover */
.select-library-btn:hover::after {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: center;
    
    /* FIXED: Tells both opacity and transform to wait 0.12s before executing on hover */
    transition: opacity 0.2s ease-in-out 0.12s, transform 0.3s ease-in-out 0.12s;
}

/* Flip text color to dark blue on hover so it stands out against the new white background */
.select-library-btn:hover {
    color: #2E4C8F;
}

.dark-button {
  background-color: #ffffff; /* Reversed: Starts as solid white */
  color: #2E4C8F; /* Reversed: Dark blue text so it's visible on the white background */
  border: none;
  padding: 12px 100px;
  text-align: center;
  text-decoration: none;
  font-style: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;

  position: relative;
  overflow: hidden;
  z-index: 1;

  /* Smooth transition for text color */
  transition: color 0.3s ease;
}

/* 1. THE BACKGROUND SLIDE (Dark blue overlay slides in) */
.dark-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #2E4C8F; /* Reversed: Slides in with dark blue */
  z-index: -1; 
  
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out 0.08s;
}

/* 2. THE ANIMATING BORDER */
.dark-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  border: 1px solid #ffffff; /* Reversed: White border for the dark background */
  box-sizing: border-box;
  z-index: 2; 
  
  /* Starts invisible and scaled down */
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  
  /* When mouse LEAVES, it fades out opacity over 0.3s and snaps the transform back instantly after a delay */
  transition: opacity 0.1s ease-in-out 0s, transform 0s ease 0.1s;
}

/* 3. HOVER STATES (Staggered animations) */

/* Background slides in instantly on hover */
.dark-button:hover::before {
  transform: scaleX(1);
  transform-origin: left;
  transition-delay: 0s; 
}

/* Border scales up and fades in on hover */
.dark-button:hover::after {
  opacity: 1;
  transform: scaleX(1);
  transform-origin: center;
  
  /* Tells both opacity and transform to wait 0.12s before executing on hover */
  transition: opacity 0.2s ease-in-out 0.12s, transform 0.3s ease-in-out 0.12s;
}

/* Flip text color to white on hover so it stands out against the dark blue sliding background */
.dark-button:hover {
  color: #ffffff; /* Reversed */
}

/* =========================================================
   GUEST INFO BANNER (below hero, flush/attached)
========================================================= */
/* =========================================================
   GUEST INFO BANNER (below hero, flush/attached)
========================================================= */
.guest-info-banner {
    display: flex;
    justify-content: center;
    background-color: transparent;
    padding: 0;
    margin-top: 0;
    margin-bottom: 80px;
}

.guest-info-inner {
    background-color: #2E4C8F;
    width: 100%;
    max-width: 1280px; 
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-radius: 0;
}

.guest-info-text {
    font-family: "Raleway", "Inter", sans-serif;
    font-style: none;
    font-size: 1.1rem;
    font-weight: 200;
    color: #ffffff;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.guest-info-btn {
    background-color: #2E4C8F !important;
    color: #ffffff !important;
    border: 1.5px solid #ffffff !important;
    padding: 12px 32px !important;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.guest-info-btn::before { background-color: #ffffff !important; }
.guest-info-btn::after { border-color: #ffffff !important; }
.guest-info-btn:hover { color: #2E4C8F !important; }

.btn-arrow-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.guest-info-btn:hover .btn-arrow-icon {
    filter: brightness(0) saturate(100%) invert(6%) sepia(96%) saturate(5000%) hue-rotate(225deg) brightness(60%);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .guest-info-banner {
        margin-bottom: 0px; /* Strips desktop margin away on mobile */
    }
    
    .guest-info-inner {
        padding: 24px 16px !important;
        margin-bottom: 0px; /* Completely kills the awkward trailing gap */
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .guest-info-text {
        font-size: 1rem;
    }

    .guest-info-btn {
        width: auto !important;
        align-self: stretch;
        justify-content: center;
        padding: 10px 20px !important;
    }
}

/* =========================================================
   AIRPORT STYLE BANNER ELEMENT (PHOTO ONLY RIGHT SIDE)
========================================================= */
.airport-banner-section {
    width: 100%;
    background-color: #ffffff;
    padding: 0px 0px;
    overflow: hidden;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
}

.banner-content {
    font-family: "Raleway", "Inter", sans-serif;
}

.banner-tagline {
    display: inline-block;
    font-size: 1rem;
    font-weight: 800;
    font-style: none;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 19px;
    margin-bottom: 15px;
}

.banner-tagline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) skewX(-15deg);
    width: 10px;
    height: 25px;
    background-color: #2E4C8F; 
}

.banner-title {
    font-family: 'Caveat', cursive;
    font-size: 4.2rem;
    font-weight: 200;
    font-style: normal;
    line-height: 1.1;
    color: var(--lma-bright-blue);
    margin: 0 0 25px 0;
    text-transform: none;
}

.banner-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444444;
    margin-bottom: 35px;
    max-width: 520px;
}

.banner-btn {
    display: inline-block;
    background-color: var(--lma-cyan);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    font-style: none;
    font-size: 1rem;
    padding: 14px 36px;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    transition: background-color 0.2s ease;
}

.banner-btn:hover {
    background-color: var(--lma-primary-blue);
}

.banner-graphic {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-perf-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .airport-banner-section {
        padding: 40px 0px 0px 0px; /* Adjusts top padding slightly to keep text legible */
        margin-bottom: 40px;
        margin-top: 18px;
    }
    
    .banner-container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 24px; 
    }
    
    .banner-title {
        font-size: 2.4rem;
    }
    
    .banner-graphic {
        display: none; 
    }
    
    .banner-btn {
        display: block;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
}