html,
body{
    min-height:100%;
}

*{
    box-sizing:border-box;
}

html{
    overflow-y:scroll;
}

body{
    margin:0;
    font-family:Arial,sans-serif;
    background:#edf2f7;
    color:#222;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    padding-bottom:58px;
}

body.article-body{
    background:
        linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)),
        url('/images/news-wallpaper.png') center center / cover fixed no-repeat;
}

/* ===========================
   HEADER
=========================== */

header{
    background:#0077bd;
    position:sticky;
    top:0;
    z-index:100;
    box-shadow:0 2px 10px rgba(0,0,0,.18);
}

nav{
    max-width:1400px;
    margin:auto;
    padding:18px 140px;
    position:relative;
    text-align:center;
}

.nav-logo{
    position:absolute;
    left:20px;
    top:50%;
    transform:translateY(-50%);
    display:flex;
    align-items:center;
}

.nav-logo img{
    height:48px;
    width:auto;
    display:block;
}

.nav-links{
    display:flex;
    justify-content:center;
    gap:24px;
}

.nav-links a{
    color:#fff;
    text-decoration:none;
    margin:0;
    font-size:18px;
    font-weight:bold;
}

.nav-links a.active{
    border-bottom:3px solid #ffd200;
    padding-bottom:6px;
}

.menu-toggle{
    display:none;
    background:none;
    border:0;
    color:#fff;
    font-size:28px;
    cursor:pointer;
}

.header-icons{
    position:absolute;
    right:20px;
    top:50%;
    transform:translateY(-50%);
    display:flex;
    gap:10px;
}

.header-icons a{
    width:40px;
    height:40px;
    border:2px solid #fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    text-decoration:none;
    margin:0;
}

.header-icons a i{
    color:#fff !important;
    font-size:22px;
}

/* ===========================
   HERO
=========================== */

:root{
    --hero-image:url('/images/hero.jpg');
}

.hero{
    background:
        linear-gradient(rgba(0,0,0,.22),rgba(0,0,0,.22)),
        var(--hero-image);
    background-size:cover;
    background-position:center;
    color:#fff;
    text-align:center;
    padding:25px 20px 130px;
}

.site-logo{
    width:260px;
    max-width:90%;
    background:#fff;
    padding:8px;
    border-radius:14px;
    box-shadow:0 5px 18px rgba(0,0,0,.35);
}

.hero h1{
    margin:22px 0 4px;
    font-size:68px;
    line-height:1.05;
    font-weight:800;
    text-shadow:0 3px 8px rgba(0,0,0,.55);
}

.hero-divider{
    width:700px;
    max-width:90%;
    height:auto;
    margin:0 auto 2px;
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
}

.hero-divider:before,
.hero-divider:after{
    content:"";
    height:3px;
    background:#ffd200;
    flex:1;
}

.hero-divider img{
    height:40px;
    width:auto;
    display:block;
    margin:0 18px;
}

.hero p{
    max-width:1000px;
    margin:0 auto;
    font-size:30px;
    line-height:1.25;
    font-weight:700;
    color:#fff;
    text-shadow:0 2px 8px rgba(0,0,0,.8);
}

/* ===========================
   CARDS
=========================== */

.cards{
    width:min(1280px,92%);
    margin:-85px auto 26px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
    position:relative;
    z-index:20;
}

.card{
    background:#fff;
    border-radius:16px;
    padding:24px 26px 22px;
    text-decoration:none;
    color:#222;
    box-shadow:0 6px 18px rgba(0,0,0,.16);
    transition:.2s;
    min-height:200px;
}

.card:hover{
    transform:translateY(-4px);
}

.card img{
    width:76px;
    height:76px;
    display:block;
    margin-bottom:12px;
}

.card h2{
    margin:0 0 10px;
    font-size:26px;
    line-height:1.1;
}

.card p{
    font-size:17px;
    line-height:1.45;
    margin:0 0 18px;
}

.btn{
    display:inline-block;
    color:#fff;
    padding:10px 16px;
    border-radius:5px;
    font-size:15px;
    font-weight:bold;
    text-decoration:none;
}

.routes h2{color:#1976d2;}
.routes .btn{background:#1976d2;}

.events h2{color:#4caf50;}
.events .btn{background:#4caf50;}

.news h2{color:#ff6f00;}
.news .btn{background:#ff6f00;}

.gallery h2{color:#8e44ad;}
.gallery .btn{background:#8e44ad;}

/* ===========================
   ABOUT SECTIONS
=========================== */

.about{
    width:min(1280px,92%);
    margin:0 auto 28px;
    padding:32px 46px;
    background:#fff;
    border-radius:16px;
    box-shadow:0 6px 18px rgba(0,0,0,.16);
    display:flex;
    align-items:center;
    gap:38px;
}

.about-icon img{
    width:140px;
    height:140px;
    display:block;
    cursor:pointer;
    transition:transform .25s ease;
}

.about-icon img:hover{
    transform:scale(1.1) rotate(5deg);
}

.about-content{
    flex:1;
}

.about h2{
    margin:0 0 14px;
    color:#1976d2;
    font-size:34px;
    line-height:1.1;
}

.about p{
    font-size:18px;
    line-height:1.55;
    margin:10px 0;
}

/* ===========================
   NEWS LIST PAGE
=========================== */

.news-page{
    background:url('/images/news-wallpaper.png') center center / cover fixed no-repeat;
    padding:70px 20px;
    min-height:100vh;
}

.news-container{
    max-width:1200px;
    margin:auto;
}

.news-list{
    max-width:1100px;
    margin:40px auto 60px;
    padding:0 20px;
}

.news-item{
    display:flex;
    align-items:center;
    gap:30px;
    background:#fff;
    border-radius:18px;
    padding:20px;
    margin-bottom:30px;
    box-shadow:0 8px 25px rgba(0,0,0,.12);
}

.news-item img{
    width:320px;
    min-width:320px;
    height:200px;
    object-fit:cover;
    border-radius:12px;
    display:block;
}

.news-text{
    flex:1;
}

.news-date{
    display:block;
    color:#777;
    font-size:.9rem;
    margin-bottom:8px;
}

.news-text h2{
    margin:0 0 15px;
    color:#1976d2;
}

.article-toolbar{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:8px;
    padding:8px;
    background:#f1f3f5;
    border:1px solid #ccc;
    border-bottom:0;
}

.article-toolbar button{
    margin:0;
    padding:8px 14px;
    font-size:15px;
    background:white;
    border:1px solid #bbb;
    border-radius:5px;
    cursor:pointer;
}

.article-toolbar button:hover{
    background:#e7f2fb;
    border-color:#1976d2;
}

#article-editor{
    margin-top:0;
}

.news-text p{
    margin:0 0 20px;
    line-height:1.7;
}

.article-external-link{
    display:inline-block;
    background:#087cc1;
    color:white;
    padding:11px 18px;
    border-radius:6px;
    font-weight:700;
    text-decoration:none;
    margin-top:5px;
}

.article-external-link:hover{
    background:#05659e;
    color:white;
}

.news-item .btn{
    display:inline-block;
    color:#fff;
    text-decoration:none;
    padding:10px 16px;
    border-radius:5px;
    font-weight:bold;
}

.btn.blue{background:#1976d2;}
.btn.green{background:#43a047;}
.btn.orange{background:#ef6c00;}
.btn.purple{background:#8e44ad;}

/* ===========================
   ARTICLE PAGE
=========================== */

.article-page{
    background:
        linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)),
        url('/images/BeachSouthPeir.jpg') center center / cover fixed no-repeat;
    padding:52px 20px 100px;
    min-height:100vh;
}

.article-box{
    width:min(920px,94%);
    margin:0 auto;
    background:rgba(255,255,255,.96);
    border-radius:14px;
    padding:48px 52px;
    box-shadow:0 12px 35px rgba(0,0,0,.28);
}

.breadcrumb{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    color:#10213d;
    font-size:16px;
    margin-bottom:34px;
}

.breadcrumb a{
    color:#005eb8;
    text-decoration:none;
    font-weight:600;
}

.article-category{
    display:inline-block;
    background:#005eb8;
    color:#fff;
    font-size:14px;
    font-weight:800;
    padding:7px 11px;
    border-radius:7px;
    margin-bottom:18px;
}

.article-box h1{
    margin:0 0 24px;
    color:#07162d;
    font-size:36px;
    line-height:1.18;
    font-weight:900;
}

.article-meta{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
    color:#23344f;
    font-size:17px;
    margin-bottom:28px;
}

.article-meta i{
    color:#005eb8;
    margin-right:8px;
    font-size:22px;
}

.meta-line{
    width:1px;
    height:22px;
    background:#cfd8e3;
}

.article-box hr{
    border:0;
    border-top:1px solid #d7dde6;
    margin:26px 0;
}

.article-intro{
    color:#07162d;
    font-size:19px;
    line-height:1.45;
    font-weight:600;
    margin:0 0 30px;
}

.article-main-image{

    display:block;
    width:100%;
    max-width:700px;
    height:400px;

    object-fit:contain;

    margin:0 auto;
    border-radius:10px;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
    cursor:zoom-in;

}

.article-toolbar{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:8px;
    padding:8px;
    background:#f1f3f5;
    border:1px solid #ccc;
    border-bottom:0;
}

.article-toolbar button{
    margin:0;
    padding:8px 14px;
    font-size:15px;
    background:white;
    border:1px solid #bbb;
    border-radius:5px;
    cursor:pointer;
}

.article-toolbar button:hover{
    background:#e7f2fb;
    border-color:#1976d2;
}

#article-editor{
    margin-top:0;
}

.article-image{

    display:flex;
    flex-direction:column;
    align-items:center;
    margin:30px 0;

}

.image-note{

    margin-top:10px;

    font-size:13px;
    color:#666;

    text-align:center;
    font-style:italic;
    user-select:none;

}

.article-inline-image{
    width:100%;
    margin:25px 0;
    text-align:center;
    overflow:hidden;
}

.article-inline-image a{
    display:block;
    width:100%;
}

.article-inline-image img{
    display:block;
    width:100%;
    max-width:700px;
    height:auto;
    margin:0 auto;
    border-radius:8px;
    object-fit:contain;
}

#poster-images{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
    gap:20px;

    max-height:650px;
    overflow-y:auto;

    padding:10px;
    border:1px solid #ddd;
    border-radius:10px;
    background:#fafafa;
}

.article-content{
    color:#07162d;
    width:100%;
    max-width:100%;
    overflow:hidden;
}

.article-content p{
    color:#07162d;
    font-size:17px;
    line-height:1.7;
    margin:0 0 24px;
}

.article-content h2{
    margin:38px 0 16px;
    color:#1976d2;
    font-size:34px;
    line-height:1.2;
}

.article-content ul{
    margin:0 0 28px 32px;
    padding:0;
}

.article-content li{
    margin-bottom:10px;
    font-size:19px;
    line-height:1.6;
}

.article-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    flex-wrap:wrap;
}

.article-tags{
    display:flex;
    align-items:center;
    gap:9px;
    flex-wrap:wrap;
    color:#07162d;
    font-size:17px;
}

.article-tags span{
    background:#005eb8;
    color:#fff;
    padding:7px 12px;
    border-radius:5px;
    font-size:15px;
    font-weight:700;
    box-shadow:0 2px 5px rgba(0,0,0,.18);
}

.article-share{
    display:flex;
    align-items:center;
    gap:13px;
    color:#07162d;
    font-size:17px;
}

.article-share a{
    width:40px;
    height:40px;
    background:#005eb8;
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:20px;
}

.article-share a:nth-of-type(2){
    background:#1da1f2;
}

.article-nav{
    display:flex;
    justify-content:space-between;
    gap:24px;
}

.article-nav-link{
    color:#005eb8;
    text-decoration:none;
    font-size:18px;
    max-width:45%;
}

.article-nav-link strong{
    display:block;
    margin-bottom:10px;
}

.article-nav-link span{
    display:block;
    color:#23344f;
    font-size:16px;
    line-height:1.4;
}

.article-nav-link.right{
    text-align:right;
}

/* ===========================
   IMAGE OVERLAY
=========================== */

.image-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0);
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    visibility:hidden;
    transition:opacity .25s ease, background .25s ease, visibility .25s;
    z-index:9999;
    cursor:pointer;
}

.image-overlay.show{
    opacity:1;
    visibility:visible;
    background:rgba(0,0,0,.85);
}

.image-overlay img{
    max-width:90%;
    max-height:90%;
    border-radius:10px;
    box-shadow:0 0 30px rgba(0,0,0,.6);
    transform:scale(.9);
    opacity:0;
    transition:transform .25s ease, opacity .25s ease;
}

.image-overlay.show img{
    transform:scale(1);
    opacity:1;
}

/* ===========================
   FOOTER
=========================== */

/* ===========================
   FOOTER
=========================== */

footer{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:90;
    background:#0077bd;
    border-top:3px solid #ffd200;
    box-shadow:0 -2px 10px rgba(0,0,0,.18);
    padding:5px 14px;
}

.footer-partners{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
}

.footer-bike{
    height:20px;
    margin-right:0;
}

.footer-title{
    color:#fff;
    font-size:14px;
    font-weight:bold;
}

.divider{
    color:#ffd200;
}

.footer-links{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:5px;
    margin-top:3px;
    font-size:12px;
}

.footer-links a{
    color:#fff !important;
    text-decoration:none !important;
    font-weight:bold;
}

.footer-links a:hover{
    text-decoration:underline !important;
}

.footer-links .divider{
    color:#ffd200;
    margin:0 2px;
    font-size:12px;
}
/* ===========================
   TABLET
=========================== */

@media(max-width:1000px){

    .cards{
        grid-template-columns:repeat(2,1fr);
    }

    .hero h1{
        font-size:46px;
    }

    .hero p{
        font-size:22px;
    }

    .hero-divider{
        width:520px;
    }

    .about{
        padding:28px;
    }

    .article-box{
        width:min(900px,94%);
        padding:42px 44px;
    }

    .article-box h1{
        font-size:44px;
    }
}

/* ===========================
   MOBILE
=========================== */

@media(max-width:900px){

    .news-item{
        flex-direction:column;
        align-items:flex-start;
    }

    .news-item img{
        width:100%;
        min-width:0;
        height:220px;
    }
}

@media(max-width:700px){
	
	body{
       padding-bottom:72px;
}

    nav{
        max-width:none;
        padding:8px 14px;
        min-height:56px;
        display:flex;
        justify-content:space-between;
        align-items:center;
        position:relative;
    }

    .nav-logo{
        position:static;
        transform:none;
        z-index:20;
        flex:0 0 auto;
    }

    .nav-logo img{
        height:34px;
        width:auto;
    }


.menu-toggle{
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    background:none;
    border:0;
    color:#fff;
    font-size:32px;
    line-height:1;
    cursor:pointer;
    z-index:20;
    padding:0;
    margin:0;
    flex:0 0 auto;
}

.header-icons{
    position:static;
    transform:none;
    display:flex;
    align-items:center;
    gap:8px;
    margin-left:auto;
    margin-right:8px;
    flex:0 0 auto;
}

.header-icons a{
    width:42px;
    height:42px;
    border-width:2px;
}

    .header-icons a i{
        font-size:17px;
    }

    .nav-links{
        display:none;
        position:absolute;
        top:100%;
        left:0;
        right:0;
        background:#0077bd;
        flex-direction:column;
        align-items:center;
        gap:18px;
        padding:20px 0;
        box-shadow:0 8px 20px rgba(0,0,0,.25);
        z-index:15;
    }

    .nav-links.open{
        display:flex;
    }

    .nav-links a{
        font-size:20px;
        margin:0;
    }

    .hero{
        padding:35px 15px 110px;
    }

    .hero h1{
        font-size:42px;
    }

    .hero p{
        font-size:21px;
    }

    .hero-divider{
        width:320px;
    }

    .hero-divider img{
        height:28px;
    }

    .cards{
        grid-template-columns:1fr;
        margin-top:-65px;
    }

    .about{
        flex-direction:column;
        text-align:center;
        padding:28px 24px;
    }

    .about h2{
        font-size:32px;
    }

    .about p{
        font-size:17px;
    }

    .news-page{
        background-attachment:scroll;
        padding:40px 12px;
    }

    .article-page{
        padding:28px 12px;
        background-attachment:scroll;
    }

    .article-box{
        width:100%;
        padding:30px 22px;
        border-radius:12px;
    }

    .breadcrumb{
        font-size:14px;
        gap:8px;
        margin-bottom:26px;
    }

    .article-box h1{
        font-size:36px;
    }

    .article-meta{
        font-size:15px;
        gap:12px;
    }

    .meta-line{
        display:none;
    }

    .article-intro{
        font-size:19px;
    }


    .article-content p{
        font-size:17px;
    }

    .article-content li{
        font-size:17px;
    }

    .article-bottom{
        align-items:flex-start;
        flex-direction:column;
    }

    .article-nav{
        flex-direction:column;
    }

    .article-nav-link,
    .article-nav-link.right{
        max-width:100%;
        text-align:left;
    }

footer{
    font-size:19px;
    padding:14px 16px;
}

.footer-partners a,
.divider{

    display:none;

}

.footer-bike{

    height:24px;

}

.footer-title{

    display:inline;
    font-size:18px;

}
}

.image-options{
    display:flex;
    gap:25px;
    margin:15px 0 25px;
}

.radio-option{
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
}

#existing-images{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
    gap:20px;
    margin-top:20px;

    max-height:650px;
    overflow-y:auto;

    padding:8px;
    border:1px solid #ddd;
    border-radius:10px;
    background:#fafafa;
}

#existing-images::-webkit-scrollbar{
    width:10px;
}

#existing-images::-webkit-scrollbar-thumb{
    background:#1976d2;
    border-radius:10px;
}

#existing-images::-webkit-scrollbar-track{
    background:#eee;
}

.image-thumb{
    display:block;
    cursor:pointer;
    border:2px solid #ddd;
    border-radius:10px;
    overflow:hidden;
    background:#fff;
    transition:.2s;
}

.image-thumb:hover{
    border-color:#1976d2;
}

.image-thumb input{
    display:none;
}

.image-thumb img{
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
    display:block;
}

.image-thumb span{
    display:block;
    padding:10px;
    font-size:14px;
    text-align:center;
    word-break:break-word;
}

.image-thumb input:checked + img{
    outline:4px solid #1976d2;
}

/* ===========================
   ABOUT US PAGE
=========================== */

.about-page{
    width:min(1100px,92%);
    margin:0 auto 40px;
    padding:40px 0;
}

.page-hero,
.join-box,
.about-section{
    background:#fff;
    border-radius:16px;
    padding:32px 40px;
    margin-bottom:26px;
    box-shadow:0 6px 18px rgba(0,0,0,.16);
}

.page-hero h1{
    margin:0 0 12px;
    color:#1976d2;
    font-size:44px;
    line-height:1.1;
}

.page-hero p,
.join-box p,
.about-section p{
    font-size:18px;
    line-height:1.6;
}

.join-box{
    border-left:7px solid #4caf50;
}

.join-box h2,
.about-section h2{
    margin:0 0 16px;
    color:#1976d2;
    font-size:34px;
}

.join-box h3{
    margin:24px 0 10px;
    color:#222;
}

.document-list{
    margin:18px 0 0;
    padding-left:22px;
}

.document-list li{
    margin-bottom:12px;
    font-size:18px;
}

.document-list a,
.about-page a{
    color:#1976d2;
    font-weight:bold;
}

.about-photo{
    margin-bottom:26px;
}

.about-photo img{
    width:100%;
    max-height:420px;
    object-fit:cover;
    object-position:center;
    display:block;
    border-radius:16px;
    box-shadow:0 6px 18px rgba(0,0,0,.16);
}

.about-gallery{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-bottom:26px;
}

.about-gallery img{
    width:100%;
    height:230px;
    object-fit:cover;
    border-radius:16px;
    box-shadow:0 6px 18px rgba(0,0,0,.16);
}

@media(max-width:700px){
    .about-gallery{
        grid-template-columns:1fr;
    }

    .about-gallery img{
        height:240px;
    }
}

.about-gallery a{
    display:block;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(0,0,0,.16);
}

.about-gallery a:hover img{
    transform:scale(1.04);
}

.about-gallery img{
    box-shadow:none;
    transition:transform .25s ease;
    cursor:zoom-in;
}

.hero-cta{
    display:inline-block;
    margin-top:14px;
    background:#4caf50;
    color:#fff !important;
    padding:12px 20px;
    border-radius:6px;
    text-decoration:none;
    font-weight:bold;
}

/* ===========================
   CONTACT FORM
=========================== */

.contact-form{
    max-width:720px;
}

.form-row{
    margin-bottom:20px;
}

.form-row label{
    display:block;
    font-weight:bold;
    margin-bottom:8px;
    color:#222;
}

.form-row input,
.form-row select,
.form-row textarea{
    width:100%;
    padding:13px 14px;
    border:1px solid #ccd6e0;
    border-radius:8px;
    font-size:16px;
    font-family:Arial,sans-serif;
}

.form-row textarea{
    resize:vertical;
}

.form-hidden{
    display:none;
}

.form-submit{
    background:#4caf50;
    color:#fff;
    border:0;
    padding:13px 22px;
    border-radius:6px;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
}

.form-submit:hover{
    background:#3f9a44;
}

.form-message{
    padding:16px 20px;
    border-radius:10px;
    margin-bottom:24px;
    font-size:18px;
    font-weight:bold;
}

.form-message.success{
    background:#e8f5e9;
    color:#1b5e20;
    border-left:6px solid #4caf50;
}

.form-message.error{
    background:#ffebee;
    color:#b71c1c;
    border-left:6px solid #d32f2f;
}

.form-note{
    margin-top:14px;
    font-size:14px;
    color:#555;
    line-height:1.5;
}
