/* Joomla 3 template: Scotland Layout */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: Arial, Helvetica, sans-serif;
    color: #19324a;
    background: #f3f6f8;
    line-height: 1.55;
}
img { max-width: 100%; height: auto; }
button { font: inherit; }

.site-wrap {
    width: 100%;
    min-height: 100vh;
    background: #fff;
}

/* ---------- HERO SLIDESHOW ---------- */
.hero-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 5;
    min-height: 260px;
    max-height: 620px;
    overflow: hidden;
    background: #183c5a;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-caption {
    position: absolute;
    left: 6%;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.55);
    max-width: 60%;
}
.hero-caption h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 54px);
    line-height: 1.1;
}
.hero-caption p {
    margin: 0;
    font-size: clamp(16px, 2vw, 25px);
}
.hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    border: 0;
    background: rgba(0,0,0,.35);
    color: #fff;
    width: 50px;
    height: 70px;
    cursor: pointer;
    font-size: 32px;
}
.hero-prev:hover, .hero-next:hover { background: rgba(0,0,0,.6); }
.hero-prev { left: 0; border-radius: 0 6px 6px 0; }
.hero-next { right: 0; border-radius: 6px 0 0 6px; }

.hero-dots {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
}
.hero-dot.is-active { background: #fff; }

/* ---------- MENU ---------- */
.main-navigation {
    background: #114f7f;
    min-height: 54px;
    position: relative;
    z-index: 20;
}
.main-navigation .mod-menu,
.main-navigation ul.nav {
    list-style: none;
    display: flex;
    align-items: stretch;
    padding: 0;
    margin: 0;
}
.main-navigation li {
    margin: 0;
    padding: 0;
}
.main-navigation a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 25px;
    min-height: 54px;
    font-weight: 600;
}
.main-navigation a:hover,
.main-navigation .active > a {
    background: #247db9;
}

/* ---------- 20 / 60 / 20 GRID ---------- */
.content-grid {
    display: grid;
    grid-template-columns: 20% 60% 20%;
    gap: 0;
    width: 100%;
    padding: 14px;
    align-items: stretch;
}
.column {
    min-width: 0;
    padding: 14px;
}
.column-left {
    background: #e4f1ff;
    border: 1px solid #b9d9f3;
}
.column-mid {
    background: #fff;
    border: 1px solid #d9e1e7;
}
.column-right {
    background: #e7f5e4;
    border: 1px solid #bddbb8;
}
.column-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #123b61;
}
.main-content { min-height: 400px; }
.side-content { margin-bottom: 12px; }

.subcolumns {
    display: flex;
    gap: 10px;
}
.subcolumns.is-split .subcolumn { flex: 1 1 0; min-width: 0; }
.subcolumns.is-stacked {
    display: block;
}
.subcolumns.is-stacked .subcolumn + .subcolumn { margin-top: 10px; }

.moduletable {
    margin-bottom: 16px;
    padding: 14px;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(30,80,120,.15);
    border-radius: 4px;
}
.moduletable h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

/* Joomla content */
.item-page h2, .blog h2, .item-page h1, .blog h1 { color: #123b61; }
a { color: #1769aa; }
table { max-width: 100%; }

/* ---------- FOOTER ---------- */
.site-footer {
    margin-top: 10px;
    padding: 22px 5%;
    background: #163b59;
    color: #fff;
    text-align: center;
}
.site-footer a { color: #fff; }
.footer-default { opacity: .9; }

/* ---------- MOBILE ---------- */
.mobile-menu-toggle { display: none; }
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .column-left, .column-mid, .column-right {
        width: 100%;
    }
    .main-navigation .mod-menu,
    .main-navigation ul.nav {
        flex-wrap: wrap;
    }
}
@media (max-width: 650px) {
    .hero-slideshow {
        aspect-ratio: 16 / 8;
        min-height: 210px;
    }
    .hero-caption { max-width: 78%; left: 5%; }
    .hero-caption h1 { font-size: 28px; }
    .hero-caption p { font-size: 15px; }
    .hero-prev, .hero-next { width: 40px; height: 55px; font-size: 24px; }
    .main-navigation .mod-menu,
    .main-navigation ul.nav {
        display: block;
    }
    .main-navigation a {
        min-height: auto;
        padding: 12px 18px;
        border-top: 1px solid rgba(255,255,255,.12);
    }
    .subcolumns.is-split {
        display: block;
    }
    .subcolumns.is-split .subcolumn + .subcolumn {
        margin-top: 10px;
    }
}
