/* ===========================
   Font Styles
   ========================== */
/* Montserrat from Google Fonts */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');

html, body {
    margin: 0;
    padding: 0;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Make the body a flex container, column direction, full height */
html, body {
    height: auto;
    overflow: auto;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Make the main content expand to fill available space */
.main-content {
    flex: 1;
}

/* ===============
Front Page Announcement Banner Style
================== */
.simple-banner {
    background-color: rgb(0, 63, 99); /* Blue */
    color: #F0F0F0;            /* Yellow */
    padding: 1em;
    text-align: center;
    font-weight: bold;
    position: relative;
    font-size: 1.2em;
}

/* Front Page Banner Image Styles */
.image-banner.frontpage-banner.frontpage-banner-parallax-bg {
    position: relative;
    background-image: url('https://raw.githubusercontent.com/RTTMsec/Img/main/Isle%20of%20Skye.JPG');
    background-size: cover;
    background-position: center 80%;
    width: 100%;
    min-height: 240px;   /* Ensures reasonable height on mobile */
    height: 35vh;        /* Responsive height: 35% of viewport height */
    max-height: 450px;   /* Prevents banner from being too tall on large screens */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Make banner taller on standard desktop screens */
@media (min-width: 900px) {
    .image-banner.frontpage-banner.frontpage-banner-parallax-bg {
        height: 45vh;    /* Slightly taller on desktop */
        min-height: 350px;
        max-height: 450px;
        background-position: center 80%;
    }
}

/* Responsive vertical position for banner text overlay */
.image-banner.frontpage-banner.frontpage-banner-parallax-bg .banner-text-overlay {
    position: absolute;
    top: 5%; /* Moves text overlay toward the top */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    text-align: center;
    padding: 1em 1em;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* ==============
Narrow Banner Image Styles
=============== */
.image-banner.narrow-banner {
    height: 240px;
    background-image: url('https://raw.githubusercontent.com/RTTMsec/Img/main/Isle%20of%20Skye.JPG');
    background-size: cover;
    background-position: center 75%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Make narrow banner taller on desktop screens */
@media (min-width: 1200px) {
    .image-banner.narrow-banner {
        height: 250px;
        background-position: center 70%;
    }
}

/* Align banner text overlay near the top for narrow banners */
.image-banner.narrow-banner .banner-text-overlay {
    position: absolute;
    top: 5%; /* Moves text overlay closer to top */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    text-align: center;
    padding: 0em;
    color: #f0f0f0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    box-sizing: border-box;
}

/* ==============
Join Pack Button
=============== */
.join-pack-btn {
    display: block;
    margin: 0.6em auto 0 auto;
    padding: 0.8em 2em;
    background: #07511b;
    color: #F0F0F0;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s;
    max-width: 350px;
}
.join-pack-btn:hover {
    background: #003366;
    color: #fff;
}

/* ===========================
   Responsive Navbar Styles
   =========================== */
.main-navbar {
  background: #fff;
  font-family: 'Lato', Arial, sans-serif;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1em;
}

.navbar-logo img {
  height: 60px;
  width: auto;
  margin: 8px 0;
}

.navbar-links {
  display: flex;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.navbar-links > li {
  flex: 1 1 0;
  text-align: center;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  min-width: 0;
  /* Prevents text from stretching the menu item */
}

/* Remove bullets from all navbar lists and dropdowns */
.navbar-links,
.navbar-links ul,
.navbar-links li,
.navbar-links .dropdown-menu {
  text-align: left;  
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  color: rgb(0, 63, 99);
  text-decoration: none;
  padding: 1em 0.8em;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}

.navbar-links a:hover,
.navbar-links .dropdown:hover > a {
  background: #003366;
  color: #fff;
}

/* Dropdown styles */
.dropdown-menu {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 180px;
  top: 100%;
  left: 0;
  z-index: 1001;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  padding: 0.8em 1em;
  color: rgb(0, 63, 99);
  background: #fff;
}

.dropdown-menu a:hover {
  background: #003366;
  color: #fff;
}

/* Hamburger menu styles */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  height: 40px;
  width: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1em;
}

.navbar-toggle .bar {
  height: 4px;
  width: 28px;
  background: rgb(0, 63, 99);
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Responsive styles */
@media (max-width: 900px) {
  .navbar-container {
    flex-wrap: wrap;
  }
  .navbar-links {
    flex-direction: column;
    width: 100%;
    display: none;
    background: #fff;
  }
  .navbar-links li {
    width: 100%;
    text-align: left;
  }
  .navbar-links .dropdown-menu {
    position: static;
    box-shadow: none;
    min-width: 0;
  }
  .navbar-toggle {
    display: flex;
  }
  .navbar-links.active {
    display: flex;
  }
}

.block-title {
    font-size: 2em;
    margin: 0.67em 0;
    font-weight: bold;
    color: rgb(0, 63, 99);
    text-align: center;
}

/* Center and size the frontpage logo under the welcome message */
.frontpage-logo {
    display: block;
    margin: 1em auto 0 auto;
    width: 90%; /* Start with 90% of the heading width, will be limited by max-width */
    max-width: 400px; /* Prevents it from being too large on big screens */
}

#welcome .container {
  padding-left: 2em;
  padding-right: 2em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.site-footer {
    background: #003366;
    color: #ffd600;
    padding: 2em 0 1em 0;
    text-align: center;
    margin-top: 2em;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 1em 0;
    display: flex;
    justify-content: center;
    gap: 2em;
}

.footer-links li {
    display: inline;
}

.footer-links a {
    color: #F0F0F0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    font-size: 0.95em;
    margin: 0;
    color: #F0F0F0;
}

.back-to-top {
    display: none;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
    background: rgb(0, 63, 99);
    color: #F0F0F0;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 2em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.2s;
}



html, body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Arial, sans-serif;
}