        @import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');
       
       
        /* --- RESET & VARIABLES --- */
        :root {
            --primary-blue: #0E3371;
            --dark-blue: #003366;
            --dark-text: #222222;
            --light-text: #555555;
            --bg-light: #f4f6f8;
            --white: #ffffff;
            --border-color: #e0e0e0;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        


        body {
            font-family: "Noto Sans", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--bg-light);
            color: var(--dark-text);
            line-height: 1.6;
        }

        a {
            text-decoration: none;
            color: var(--primary-blue);
            transition: 0.3s;
        }

        a:hover {
            text-decoration: underline;
        }

        /* --- HEADER --- */
        header {
            display: flex;
            flex-direction: column;
            width: 100%;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }

        /* 1. TOP BAR (Blue Background) */
        .top-bar {
            background-color: var(--white);
            color: var(--primary-blue);
            padding: 8px 0;
            font-size: 13px;
            font-weight: 600;
        }

        .top-bar-flex {
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo left, button right */
}

        .auth-link {
            color: rgba(255, 255, 255, 0.9);
            text-transform: uppercase;
            font-size: 12px;
            letter-spacing: 0.5px;
        }

        .auth-link:hover {
            color: var(--white);
            text-decoration: underline;
        }

        /* Round Profile Icon */
        .profile-circle {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
            border-radius: 50%; /* Makes it perfectly round */
            color: var(--white);
            border: 1px solid rgba(255,255,255,0.4);
            transition: 0.3s;
        }

        .profile-circle:hover {
            background-color: var(--white);
            color: var(--primary-blue);
        }

        /* 2. MAIN HEADER (White Background) */
        .main-header {
            background-color: var(--primary-blue);
            padding: 15px 0;
            border-bottom: 3px solid var(--primary-blue);
        }

        .nav-flex {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }


        /* LOGO STYLING */
        .logo {
            display: flex;
            align-items: center;
            gap: 15px; /* Space between logo and text */
            font-family: "Noto Sans";
            font-size: 20px;
            font-weight: 700;
            color: var(--white);
            letter-spacing: -0.5px;
        }

        .logo-img {
            height: 40px; /* Adjust height as needed */
            width: auto;
            display: block;
        }

        .logo span {
            color: var(--primary-blue);
        }

        /* Base menu */
.top-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.top-nav li {
    position: relative; /* IMPORTANT for dropdown */
}

.top-nav a {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 4px;
    display: block;
}

/* ===== Dropdown ===== */
.top-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 8px 0;
    z-index: 999;
}

/* Dropdown items */
.top-nav .dropdown li {
    width: 100%;
}

.top-nav .dropdown li a {
    color: #222;
    font-size: 13px;
    font-weight: 500;
    text-transform: none; /* keep dropdown readable */
    padding: 10px 16px;
}

/* Hover to show dropdown */
.top-nav .has-dropdown:hover .dropdown {
    display: block;
}

/* Hover effect */
.top-nav .dropdown li a:hover {
    background-color: #f3f5f7;
}

/* Small dropdown arrow */
.top-nav .has-dropdown > a::after {
    content: "▾";
    font-size: 15px;
    margin-left: 6px;
    opacity: 0.7;
}

/* Optional: slightly darker on hover */
.top-nav .has-dropdown:hover > a::after {
    opacity: 1;
}



        /* --- HERO SECTION (Updated) --- */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 100px 0;
    text-align: left;
}

.hero-manuscript {
    background:
        linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
        url('../img/manuscript.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-submission {
    background:
        linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
        url('../img/submission.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-articles {
    background:
        linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
        url('../img/articletypes.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-editorial {
    background:
        linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
        url('../img/editorial.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-review {
    background:
        linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
        url('../img/review.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-feedback {
    background:
        linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
        url('../img/feedback.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-openaccess {
    background:
        linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
        url('../img/openaccess.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Adds a subtle shadow to text for extra readability */
}

.hero p {
    font-size: 20px; /* Slightly larger for readability */
    max-width: 800px;
    opacity: 1; /* Increased opacity for better contrast against photo */
    line-height: 1.5;
    text-align: left;
}

.breadcrumb {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

        /* --- MAIN LAYOUT --- */
        .layout-grid {
            display: grid;
            grid-template-columns: 250px 1fr;
            gap: 40px;
            padding: 40px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }
        

        /* --- SIDEBAR --- */
        aside {
            border-right: 1px solid var(--border-color);
            padding-right: 20px;
        }

        .sidebar-menu h3 {
            font-size: 16px;
            margin-bottom: 15px;
            color: var(--dark-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .sidebar-menu ul {
            list-style: none;
        }

        .sidebar-menu li {
            margin-bottom: 12px;
        }

        .sidebar-menu a {
            color: var(--light-text);
            font-size: 15px;
            display: block;
            padding: 5px 0;
        }

        .sidebar-menu a:hover {
            color: var(--primary-blue);
            padding-left: 5px; /* Slight movement effect */
        }

        .cta-box {
            background-color: var(--primary-blue);
            color: white;
            padding: 20px;
            border-radius: 4px;
            margin-top: 30px;
            text-align: center;
        }

        .cta-box h4 { margin-bottom: 10px; }
        .cta-box p { font-size: 13px; margin-bottom: 15px; opacity: 0.9; }
        .btn-white {
            background-color: white;
            color: var(--primary-blue);
            padding: 8px 16px;
            border-radius: 4px;
            font-weight: bold;
            display: inline-block;
        }

        /* --- CONTENT AREA --- */
        .content-section h2 {
            font-size: 28px;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--bg-light);
        }

        .intro-text {
            font-size: 18px;
            color: var(--light-text);
            margin-bottom: 40px;
        }

        /* --- CARDS GRID (The BMJ "Blocks" Look) --- */
        .resource-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
        }

        .card {
            background: var(--white);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 25px;
            transition: transform 0.2s, box-shadow 0.2s;
            position: relative;
            overflow: hidden;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.08);
            border-color: var(--primary-blue);
        }

        .card-icon {
            margin-bottom: 12px;
            color: #1f4fd8; /* journal blue */
        }

        .card-icon svg {
            width: 28px;
            height: 28px;
            stroke-width: 1.6;
        }


        .card h3 {
            font-size: 20px;
            margin-bottom: 10px;
        }

        .card p {
            color: var(--light-text);
            font-size: 14px;
            margin-bottom: 15px;
        }

        .card-link {
            font-weight: 700;
            font-size: 14px;
            text-transform: uppercase;
        }
        
        .card-stretch-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-decoration: none;
}

        /* =========================
   EDITORIAL BOARD
   ========================= */

/* =========================
   EDITORIAL BOARD GRID
   ========================= */

.editor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* max 3 per row */
    gap: 24px;
    width: 100%;
}


.editor-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px 22px;
}

.editor-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--dark-text);
}

.editor-role {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.editor-expertise {
    font-size: 12px;
    font-weight: 700;
    color: #C89B09;
    margin-bottom: 4px;
}

.editor-workplace {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 4px;
}

.editor-affiliation {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.5;
}

/* Optional: tighten spacing for single-name cards */
.editor-card:only-child {
    max-width: 400px;
}

.editorial-board {
    grid-column: 1 / -1; /* span full layout grid */
}

.editorial-board h2 {
    font-size: 22px;              /* smaller than global */
    margin-top: 48px;             /* more space from previous cards */
    margin-bottom: 18px;          /* tighter to card grid */
    padding-bottom: 0;            /* remove divider spacing */
    border-bottom: none;          /* remove divider line */
}

        /* --- INFO BANNER --- */
        .info-banner {
            background-color: #eef4f9;
            border-left: 5px solid var(--primary-blue);
            padding: 20px;
            margin-top: 40px;
            border-radius: 0 4px 4px 0;
        }

 /* =========================
   FOOTER
   ========================= */

.site-footer {
    background-color: #121212;
    color: #9ca3af;
    padding: 56px 0 28px;
    margin-top: 80px;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-col h5 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-col a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

/* Footer bottom */

.footer-bottom {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.footer-powered a {
    color: #FAFAFA;
    text-decoration: none;
}

.footer-powered a:hover {
    color: #ffffff;
}

.footer-dual-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.brand-left img {
    height: 28px;
    width: auto;
}

/* Keep SHPAA logo slightly larger for balance */
.brand-right img {
    height: 40px;
    width: auto;
}

/* Left: Journal */
.brand-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* Right: Sponsor */
.brand-right {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-right-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.support-line-1 {
    font-size: 0.85rem;
    opacity: 0.8;
}

.support-line-2 {
    font-size: 0.9rem;
    font-weight: 500;
}



/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}


        /* --- RESPONSIVE --- */
        @media (max-width: 768px) {
            .layout-grid {
                grid-template-columns: 1fr;
            }
            .nav-flex {
                flex-direction: column;
                gap: 10px;
            }
            .sidebar-menu {
                display: none; /* Hide sidebar on mobile for simplicity */
            }
            
        }   
        
        
         /* --- SLIDER STYLES --- */
    .latest-articles-section {
        padding: 60px 0;
        background-color: #ffffff; /* Contrast against the grey hub */
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 24px;
        color: #005696;
        margin-bottom: 5px;
    }

    /* The Scroll Container */
    .article-slider {
        display: flex;
        overflow-x: auto; /* Enables horizontal scroll */
        gap: 20px;
        padding: 20px 0 40px 0;
        scroll-snap-type: x mandatory; /* Makes cards "snap" into place */
        -webkit-overflow-scrolling: touch; /* Smooth scroll for iOS */
    }

    /* Hide standard scrollbar for a cleaner look (optional) */
    .article-slider::-webkit-scrollbar {
        height: 8px;
    }
    .article-slider::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    .article-slider::-webkit-scrollbar-thumb {
        background: #005696;
        border-radius: 10px;
    }

    /* Individual Article Cards */
    .article-card {
        flex: 0 0 300px; /* Card is exactly 300px wide, no shrinking */
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
        scroll-snap-align: start;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .article-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    }

    .article-thumb {
        height: 200px;
        background-size: cover;
        background-position: center;
        position: relative;
    }

    .category-tag {
        position: absolute;
        bottom: 10px;
        left: 10px;
        background: #005696;
        color: white;
        padding: 4px 10px;
        font-size: 11px;
        font-weight: bold;
        text-transform: uppercase;
        border-radius: 3px;
    }

    .article-content {
        padding: 20px;
    }

    .article-date {
        font-size: 12px;
        color: #888;
        margin-bottom: 10px;
    }

    .article-content h3 {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 10px;
        height: 50px; /* Keeps card heights even */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal; /* Override slider nowrap */
        color: #333;
    }

    .article-excerpt {
        font-size: 14px;
        color: #666;
        margin-bottom: 15px;
        height: 45px;
        overflow: hidden;
        white-space: normal;
    }

    .read-more {
        font-weight: bold;
        font-size: 13px;
        color: #005696;
    }
    
    /* --- SEE MORE CARD --- */
    
  /* --- SEE MORE CARD (ENHANCED) --- */
.article-card-more {
    flex: 0 0 320px;              /* slightly wider */
    min-height: 360px;            /* TALLER */
    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(135deg, #f4f8ff, #ffffff);

    border: 2px dashed #c7d2e3;
    text-align: center;
    text-decoration: none;
    scroll-snap-align: start;

    opacity: 0;                   /* start hidden */
    transform: translateY(30px);  /* fade-up */
    transition:
        opacity 0.6s ease,
        transform 0.6s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

/* Hover polish */
.article-card-more:hover {
    background:
        linear-gradient(135deg, #eef5ff, #ffffff);
    border-color: #005696;
    transform: translateY(-6px);
}

/* Inner layout */
.see-more-content {
    padding: 40px 30px;
}

.see-more-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
    stroke: #005696;
    stroke-width: 2;
    fill: none;
}

.see-more-text {
    display: block;
    font-size: 21px;
    font-weight: 700;
    color: #005696;
    margin-bottom: 8px;
}

.see-more-sub {
    font-size: 14px;
    color: #555;
}

/* Scroll-based fade-in */
@supports (animation-timeline: view()) {
    .article-card-more {
        animation: see-more-fade both linear;
        animation-timeline: view();
        animation-range: entry 20% cover 40%;
    }
}

@keyframes see-more-fade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


    @media (max-width: 768px) {
        .article-card {
            flex: 0 0 260px; /* Slightly narrower on mobile */
        }
    }
    
    /* --- HAMBURGER MENU STYLES --- */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: 0.3s;
    border-radius: 3px;
}

/* --- MOBILE RESPONSIVE UPDATES --- */
@media (max-width: 768px) {
    .nav-flex {
        flex-direction: row !important; /* Keep logo and hamburger on same line */
        justify-content: space-between;
        position: relative;
    }

    .menu-toggle {
        display: flex; /* Show hamburger on mobile */
    }

    .top-nav {
        display: none; /* Hide the menu by default */
        position: absolute;
        top: 100%; /* Sits right under the header */
        left: 0;
        width: 100%;
        background-color: var(--primary-blue);
        box-shadow: var(--primary-blue);
        z-index: 1000;
    }

    .top-nav.active {
        display: block; /* Show menu when 'active' class is added via JS */
    }

    .top-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .top-nav ul li {
        border: none !important;
    }

    .top-nav a {
        padding: 15px 20px;
        display: block;
    }

    /* Animation: Turns the 3 lines into an 'X' when clicked */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* --- MOBILE LOGO & TITLE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .logo {
        font-size: 18px; /* Smaller font for mobile */
        gap: 8px;       /* Tighter space between logo and text */
        white-space: nowrap; /* Forces text to stay on one line */
        flex-shrink: 1;      /* Allows logo to shrink if needed */
    }

    .logo-img {
        height: 35px;   /* Shrink logo image on mobile (was 50px) */
    }

    /* Adjust the main header padding to give more room */
    .main-header {
        padding: 10px 0;
    }
}

/* For extra small screens (phones under 400px wide) */
@media (max-width: 400px) {
    .logo {
        font-size: 15px; /* Even smaller for tiny screens */
    }
    
    .logo-img {
        height: 30px;
    }
}

/* --- PROFILE DROPDOWN (FIXED) --- */

.profile-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-menu {
    position: relative;
    display: inline-block;
}

/* Dropdown panel */
.profile-dropdown {
    position: absolute;
    right: 0;
    top: 100%;              /* directly below icon */
    background: #ffffff;
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 9999;

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.15s ease;
}

/* Invisible hover bridge (THIS is the key) */
.profile-dropdown::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

/* Show dropdown */
.profile-menu:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Links */
.profile-dropdown a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
}

.profile-dropdown a:hover {
    background: #f4f6f8;
}

.profile-dropdown hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 6px 0;
}

.submit-btn {
    background: #0E3371;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.4);
}

.submit-btn:hover {
    background: #95C8F0;
    color: #005696;
    text-decoration: none;
}

/* --- GUIDELINE PAGE --- */

.guideline-list {
    margin-left: 20px;
    margin-bottom: 30px;
}

.guideline-list li {
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--light-text);
}

.content-section p strong {
    color: var(--dark-text);
}

/* --- GUIDELINE PAGE TUNING --- */

.guideline-page h2 {
    font-size: 22px;
    margin-bottom: 8px;      /* tighter spacing */
    padding-bottom: 0;
    border-bottom: none;     /* remove divider line */
}

.guideline-page ul {
    margin-top: 0;
}

.guideline-page ul.guideline-list {
    margin-top: 6px;
    margin-bottom: 24px;
}

.guideline-page h2 {
    margin-top: 32px;
}

.guideline-page p strong {
   
    margin-top: 20px;
    margin-bottom: 6px;
    font-size: 16px;
}


/* --- LOGO LINK: NO UNDERLINE EVER --- */
.logo-link,
.logo-link:hover,
.logo-link:focus,
.logo-link:active {
    text-decoration: none !important;
}

/* ===== MOBILE OVERRIDES (LAST) ===== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 30px !important;
        line-height: 1.25;
    }

    .hero-content p {
        font-size: 15px !important;
        line-height: 1.55;
    }
}

.cta-box.secondary {
    background-color: #83BBF2;
    color: #222;
}

/* Disable hover effect for form / content cards */
.guideline-page .card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color);
}

/* =========================
   HERO ANIMATION
   ========================= */

/* Create a sliding background layer */
.hero {
    position: relative;
    overflow: hidden;
}

/* Pseudo-element for background animation */
.hero.hero-home::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
        url('../img/Sarawak.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transform: translateX(-100%);
    animation: hero-bg-slide 1.2s ease-out forwards;

    z-index: 0;
}


/* Ensure text stays above background */
.hero.hero-home .container {
    position: relative;
    z-index: 1;
}

/* Background slide animation */
@keyframes hero-bg-slide {
    to {
        transform: translateX(0);
    }
}

/* =========================
   HERO TEXT ANIMATION
   ========================= */

.hero.hero-home .breadcrumb,
.hero.hero-home h1,
.hero.hero-home p {
    opacity: 0;
    transform: translateY(20px);
    animation: hero-text-fade 0.8s ease-out forwards;
}

.hero.hero-home .breadcrumb { animation-delay: 0.6s; }
.hero.hero-home h1         { animation-delay: 0.8s; }
.hero.hero-home p          { animation-delay: 1s; }

/* Text motion */
@keyframes hero-text-fade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero.hero-home::before,
    .hero.hero-home .breadcrumb,
    .hero.hero-home h1,
    .hero.hero-home p {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* =========================
   ANNOUNCEMENTS SECTION
   ========================= */

.announcements-section {
    padding: 60px 0;
    background: #f9fafb;
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.announcement-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 6px solid var(--primary-blue);
    border-radius: 6px;
    padding: 22px 26px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
}

.announcement-card:hover {
    background: #f8fbff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    text-decoration: none;
}

.announcement-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.announcement-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #1f2937;
}

.announcement-card p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

/* Offset anchor scroll for sticky header */
#announcement {
    scroll-margin-top: 120px; /* adjust to your header height */
}


@media (max-width: 1024px) {
    .editor-grid {
        grid-template-columns: repeat(2, 1fr); /* tablets */
    }
}

@media (max-width: 600px) {
    .editor-grid {
        grid-template-columns: 1fr; /* mobile */
    }
}

/* Search nav link */
.nav-search a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

/* SVG styling */
.search-svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}




        
        