/* ==========================================
   Basic Reset
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================
   Global Styles
========================================== */

body {

    font-family: Arial, Helvetica, sans-serif;

    line-height: 1.6;

    color: #333;

    background: #ffffff;
}



/* Centre content */

.container {

    width: min(1500px, 94%);
    margin: auto;
}

/* ==========================================
   Header
========================================== */

.site-header {

    padding: 20px 0;
}

.logo-area {

    display: flex;
    align-items: center;
    gap: 20px;
}

.beacon {

    width: 80px;
    height: auto;
}

.site-title h1 {

    font-size: 2rem;
}

.site-title p {

    color: #666;
}

/* ==========================================
   Navigation
========================================== */

.main-nav {

    background: #222;
}

.main-nav ul {

    display: flex;
    list-style: none;
}

.main-nav a {

    display: block;
    padding: 15px 20px;

    color: white;

    text-decoration: none;
}

.main-nav a:hover {

    background: #f59e0b;
}


/* ===========================
   History Dropdown Menu
=========================== */

.main-nav > .container > ul > li {
    position: relative;
}

.main-nav ul.dropdown-menu {

    display: none;

    position: absolute;
    top: 100%;
    left: 0;

    background: #222;

    min-width: 270px;

    padding: 0;
    margin: 0;

    list-style: none;

    flex-direction: column;

    border-top: 2px solid #f59e0b;

    z-index: 999;
}


.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 12px 18px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #f59e0b;
}

.dropdown:hover > .dropdown-menu {
    display: flex;
}

/* ==========================================
   Hamburger Button
========================================== */

.menu-toggle {

    display: none;

    background: none;

    border: none;

    color: white;

    font-size: 2rem;

    cursor: pointer;

    padding: 10px 15px;
}
/* ==========================================
   Hero Slider
========================================== */

.hero-slider {

    position: relative;

    width: min(1500px, 94%);

    margin: 0 auto;

    aspect-ratio: 16 / 9;

    overflow: hidden;
}

.slide {

    position: absolute;

    inset: 0;

    opacity: 0;

    transition: opacity 1.5s ease;
}

.slide.active {

    opacity: 1;
}

.slide img {

    width: 100%;
    height: 100%;

    object-fit: contain;
}



/* ==========================================
   Welcome Section
========================================== */

.welcome-section {

    padding: 40px 0;
}

.welcome-section h2 {

    margin-bottom: 20px;
}

.welcome-section p {

    margin-bottom: 20px;
}

.home-acknowledgements {
    text-align: center;
    margin-top: 40px;
}

.home-acknowledgements img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* ==========================================
   Archive Highlights (may not be needed) 
========================================== */

.highlights {

    padding: 40px 0;

    background: #f5f5f5;
}

.highlights h2 {

    text-align: center;

    margin-bottom: 40px;

    font-size: 2rem;
}

.highlight-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 25px;
}

.highlight-card {

    background: white;

    padding: 25px;

    border-radius: 10px;

    box-shadow: 0 2px 10px rgba(0,0,0,0.08);

    transition: 0.3s;
}

.highlight-card:hover {

    transform: translateY(-5px);
}

.highlight-card h3 {

    margin-bottom: 15px;

    color: #d97706;
}

/* ==========================================
   Feature Grid
========================================== */

.feature-grid {

    padding-bottom: 60px;
}

.feature-grid .container {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 25px;
}

.card {

    padding: 25px;

    border: 1px solid #ddd;

    border-radius: 10px;

    background: #fafafa;
}

.card h3 {

    margin-bottom: 10px;

    color: #f59e0b;
}

/* ==========================================
   History Series
========================================== */

.history-series {

     padding: 40px 0 60px 0;

    background: #ffffff;
}

.history-series h2 {

    text-align: center;

    margin-bottom: 20px;

    font-size: 2.2rem;
}

.section-intro {

    text-align: center;

    max-width: 800px;

    margin: 0 auto 50px auto;

    color: #666;
}

.history-grid {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 30px;
}
.history-card {

    background: white;

    border-radius: 12px;

    overflow: hidden;
	
	width: 260px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.08);

    transition: 0.3s;
}

.history-card:hover {

    transform: translateY(-6px);
}

.history-card img {

    width: 100%;

    height: 160px;

    object-fit: cover;
}

.history-content {

    padding: 20px;
}

.history-content h3 {

    color: #d97706;

    margin-bottom: 8px;
}

.history-content h4 {

    margin-bottom: 15px;
}

.history-content p {

    margin-bottom: 20px;
}

.card-button {

    display: inline-block;

    background: #d97706;

    color: white;

    text-decoration: none;

    padding: 10px 18px;

    border-radius: 6px;

    transition: 0.3s;
}

.card-button:hover {

    background: #b45309;
}

.history-image-pair {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.history-image-pair img {
    width: calc(50% - 10px);
    border-radius: 8px;
    display: block;
}

@media (max-width: 768px) {
    .history-image-pair img {
        width: 100%;
    }
}

.history-screen-large {

    width: 100%;
    max-width: 1200px !important;
    border-radius: 8px;

}

.history-key-image {

    width: 100%;
    max-width: 1200px !important;
    border-radius: 8px;

}

.history-findings {

    margin: 1.5rem 0 2rem 2rem;

}

.history-findings li {

    margin-bottom: 1rem;

    line-height: 1.7;

}

.history-image-block video {
    width: 100%;
    max-width: 1200px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* ==========================================
   Explore The Archive
========================================== */

.archive-section {

    padding: 40px 0;

    background: #f7f7f7;
}

.archive-section h2 {

    text-align: center;

    margin-bottom: 20px;

    font-size: 2.2rem;
}

.archive-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;

    margin-top: 50px;
}

.archive-card {

    background: white;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0,0,0,0.08);

    transition: 0.3s;
}

.archive-card:hover {

    transform: translateY(-6px);
}

.archive-card img {

    width: 100%;

    height: 280px;

    object-fit: cover;
}

.archive-content {

    padding: 25px;
}

.archive-content h3 {

    margin-bottom: 15px;

    color: #d97706;
}

.archive-content p {

    margin-bottom: 20px;
}

@media (max-width: 1100px) {

    .archive-grid {

        grid-template-columns: 1fr;
    }
}

/* ==========================================
   From The Webmaster
========================================== */

.webmaster-section {

    padding: 60px 0;

    background: #fafafa;
}

.webmaster-content {

    display: grid;

    grid-template-columns: 320px 1fr;

    gap: 50px;

    align-items: start;
}

.webmaster-image img {

    width: 100%;
	
	 padding: 80px 0 0 0;

    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.webmaster-text h2 {

    margin-bottom: 25px;

    font-size: 2rem;
}

.webmaster-text p {

    margin-bottom: 20px;

    line-height: 1.8;
}

@media (max-width: 900px) {

    .webmaster-content {

        grid-template-columns: 1fr;

        text-align: center;
    }

    .webmaster-image {

        max-width: 300px;

        margin: 0 auto;
    }
}

.signature {

    margin-top: 30px;

    font-weight: 700;

    font-size: 1.1rem;

    color: #444;

    border-top: 2px solid #f59e0b;

    padding-top: 15px;

    display: inline-block;
}

.chapter-navigation .container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* ==========================================
   Footer
========================================== */

.site-footer {

    background: #222;

    color: white;

    text-align: center;

    padding: 30px;
}

/* ===================================================
   History Pages Master for 5 All above is for index
=================================================== */

.history-hero {

    position: relative;

    width: min(1300px, 94%);

    margin: 0 auto;

    overflow: hidden;

    border-radius: 12px;
}

.history-hero img {

    width: 100%;

    height: 100%;

    object-fit: cover;
}

.hero-overlay {

    position: absolute;

    bottom: 40px;
    left: 40px;

    background: rgba(0,0,0,0.45);

    color: white;

    padding: 25px;

    border-radius: 10px;

    max-width: 500px;
}

.hero-overlay h1 {

    color: #f59e0b;

    margin-bottom: 10px;
}

.hero-overlay h2 {

    margin-bottom: 10px;
}

.history-intro {

    padding: 50px 0;

    text-align: center;
}

.history-intro p {

    max-width: 900px;

    margin: auto;

    font-size: 1.15rem;
}

.history-content {

    padding-bottom: 20px;
}

.history-content h2 {

    margin-bottom: 20px;

    color: #d97706;
}

.history-content p {

    margin-bottom: 20px;

    line-height: 1.8;
}

.history-image-large {

    width: 100%;

    max-width: 1000px;

    display: block;

    margin: 30px auto;

    border-radius: 10px;
}

.history-note {

    background: #f8f8f8;

    border-left: 5px solid #f59e0b;

    padding: 25px;

    margin: 20px 0;
}

.chapter-navigation {

    padding: 60px 0;
}

.chapter-card {

    display: block;

    max-width: 400px;

    margin: auto;

    padding: 25px;

    text-align: center;

    text-decoration: none;

    color: inherit;

    border: 1px solid #ddd;

    border-radius: 10px;

    transition: 0.3s;
}

.chapter-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}


.history-image-right {

    float: right;

    width: 360px;

    margin: 0 0 20px 30px;

    border-radius: 8px;
}

.history-image-block {

    text-align: center;

    margin: 40px 0;
}

.history-image-block img {

    max-width: 800px;

    width: 100%;

    border-radius: 8px;
}

.history-image-block.montage img {
    max-width: 1200px;
}

blockquote {

    margin: 20px 0;

    padding: 20px 25px;

    background: #f7f7f7;

    border-left: 4px solid #d97706;

    font-style: italic;

    color: #555;
}

.image-caption {

    text-align: center;

    font-size: 0.9rem;

    color: #666;

    font-style: italic;

    margin-top: 8px;
}

.history-image-right {

    float: right;

    margin: 0 0 20px 30px;

    max-width: 320px;

    text-align: center;
}

.history-image-right img {

    width: 100%;

    height: auto;

    display: block;
}

.image-caption {

    margin-top: 8px;

    font-size: 0.9rem;

    color: #666;

    font-style: italic;

    line-height: 1.4;
}

/* ===================================================
  Logo Sizesx
=================================================== */


.nbrc-logo {
    width: 160px;
}

.redrover-logo {
    width: 200px;
}

.falck-logo {
    width: 140px;
}

/* Historical equipment images */

.history-beacon-left {
    float: left;
    width: 110px;
    margin: 0 20px 10px 0;
    border: 5px solid #fff;
}

.history-beacon-right {
    float: right;
    width: 110px;
    margin: 0 0 10px 20px;
    border: 5px solid #fff;
}

/* ==========================================
   Mobile Navigation
========================================== */

@media (max-width:768px){

    .logo-area{
        flex-direction:column;
        text-align:center;
    }

    .main-nav .container{
        display:flex;
        flex-wrap:wrap;
        align-items:center;
    }

    .menu-toggle{
        display:block;
        margin-left:auto;
    }

    .main-nav .nav-menu{

        display:none;

        flex-direction:column;

        width:100%;
    }

    .main-nav .nav-menu.active{

        display:flex;
    }

    .main-nav .nav-menu li{

        width:100%;
    }

    .main-nav .nav-menu a{

        width:100%;
    }

}
.history-hero {
    margin-top: 20px;
}

.hero-overlay {
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: none;
    padding: 18px;
}

.hero-overlay h1 {
    font-size: 1.8rem;
}

.hero-overlay h2 {
    font-size: 1.3rem;
}

.hero-overlay p {
    font-size: 1rem;
}
/* ==========================================
   Extra Small Phones (Galaxy Fold etc.)
========================================== */

@media (max-width: 360px) {

    .hero-overlay {
        position: static;
        background: rgba(0,0,0,0.85);
        border-radius: 0;
        max-width: 100%;
        padding: 16px;
    }

    .hero-overlay h1 {
        font-size: 1.5rem;
    }

    .hero-overlay h2 {
        font-size: 1.2rem;
    }

    .hero-overlay p {
        font-size: 0.95rem;
    }

    .site-title h1 {
        font-size: 1.8rem;
    }

    .site-title p {
        font-size: 0.95rem;
    }
}

@media (max-width:768px){

    .dropdown-menu.active{

        display:flex;

        position:static;

        flex-direction:column;
    }

}

