/* =========================================================
   BASE & RESET
========================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 1. DEFINE YOUR CUSTOM FONT FIRST */
@font-face {
    font-family: "Stone Sans";
    src: url("fonts/stone_sans_italic.ttf") format("truetype");
    font-weight: normal;
    font-style: italic; /* Match this to your actual file's style */
}

/* 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 Stone Sans (or standard sans fallback) */
h1, h2, h3, h4, h5, h6, .main-nav a, .btn-primary, .portal-card h3 {
    font-family: "Stone Sans", "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: #0A2240;
    --lma-primary-blue: #000366;
    --lma-bright-blue: #4B8DD1;
    --lma-cyan: #46B6D1;
    --lma-grey: #e9ecef;
}

/* =========================================================
   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: italic;
    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 */
.main-nav li:hover .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 Dark Blue Sliding Overlay background */
.dropdown-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000366; /* Your dark blue hover color */
    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: 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; 
}

.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;
}


/* Punchline highlight box */
.hero-text-box {
    position: absolute;
    top: 50%;
    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 */
.hero-text-box p {
    font-family: var(--lma-ui-font, 'Stone Sans'), -apple-system, sans-serif;
    color: #000366; /* Deep blue to contrast with white box */
    font-size: 2.5rem;
    font-weight: 100;
    line-height: 1.0;
    letter-spacing: -1.5px;
    
    /* THE IMPORTANT CHANGES: Italic and white highlight look */
    font-style: italic; /* From Frankfurt example */
    text-transform: none; /* Just normal capitalization */
}

/* =========================================================
   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;
}
.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; }
.dot.active { background: #fff; }

/* =========================================================
   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: #888; 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: "Stone Sans", sans-serif; }

/* =========================================================
   FOOTER
========================================================= */
.footer-pattern {
    height: 50px;
    background: url('images/pattern3.png') center; 
}

.main-footer {
    background: #000366;
    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: "Stone Sans", 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: "Stone Sans", 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;
}

.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: "Stone Sans", 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: #000366 !important;
}

/* Login Specific Styling */
.login-bubble {
    padding: 30px;
    min-width: 400px;
    min-height: 200px;
}

.login-bubble h3 { 
    font-size: 16px; 
    margin-bottom: 15px; 
}

/* INPUTS: Styled with only a bottom border */
.login-bubble input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-bottom: 1.0px solid #000366;
    border-top: none;
    border-left: none;
    border-right: none;
}

/* FIXED: Removes the default black/blue outline when clicking into the input */
.login-bubble input:focus {
    outline: none;
}

/* BUTTON: Base styles and hover transition */
.login-bubble button {
    background-color: #000366; /* Starts as solid dark blue */
    color: #ffffff; /* Starts with white text */
    border: none;
    padding: 12px 100px;
    text-align: center;
    text-decoration: none;
    font-style: italic;
    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 (#000366) since the background turns white on hover! */
    border: 1px solid #000366; 
    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: #000366;
}

/* 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: italic;
}

/* TABS */
.tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 25px;
}

.tab {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 600;
    font-family: "Stone Sans", fallback-font, generic-family;
    font-style: italic;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    color: #777;
}

/* 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: italic;
}

/* 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, 'Stone Sans'), -apple-system, sans-serif;
    color: #000366; /* Deep blue to contrast with white box */
    font-size: 2.5rem;
    font-weight: 100;
    line-height: 1.0;
    letter-spacing: -1.5px;
    
    /* THE IMPORTANT CHANGES: Italic and white highlight look */
    font-style: italic; /* 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: #7a8793;
    margin-bottom: 18px;
}

.content-heading h1 {
    font-size: 36px;
    font-style: italic;
    font-weight: 200;
    line-height: 1.00;
    color: #000366;
    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: italic;
    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: #000366;
    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: #000366; /* Starts as solid dark blue */
  color: #ffffff; /* Starts with white text */
  border: none;
  padding: 12px 100px;
  text-align: center;
  text-decoration: none;
  font-style: italic;
  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 #000366; /* 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: #000366;
}

/* ==========================================================================
   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: #000366; /* 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: italic;
    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 #000366; /* 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: #000366;
}

.dark-button {
  background-color: #ffffff; /* Reversed: Starts as solid white */
  color: #000366; /* 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: italic;
  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: #000366; /* 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 */
}