/* Modern SPAR Website Stylesheet */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --text-color-menu: #eee;
	--text-color: #333;
    --background-color: #f4f4f4;
    --hover-color: #2980b9;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

.container {
    width: 95%;
    margin: 0 auto;
    padding: 0 15px; /* Slightly increased padding */
    box-sizing: border-box;
}

/* Ensure images within containers and content wrappers don't overflow */
.container img,
.content-wrapper img {
    max-width: 100%;
    height: auto;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Base menu styles */
#main-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
    background-color: #163f94
}

#main-menu li {
    margin: 0 10px;
}

#main-menu a {
    text-decoration: none;
    color: var(--text-color-menu);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

#main-menu a:hover {
    background-color: #163f70; /* Slightly darker shade for hover state */
    color: #fff;
    transform: translateY(-3px);
}

h1, h2 {
    color: var(--primary-color);
}

.stylish-break {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    margin: 30px 0;
}

.img-container-left, .img-container-right {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.img-container-left:hover, .img-container-right:hover {
    transform: scale(1.05);
}

.img-container-left img, .img-container-right img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.text-container, .text-container-list {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

ul {
    padding-left: 20px;
}

footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .container {
        width: 90%;
        max-width: 1200px;
    }
    
    .content-wrapper {
        width: 95%; /* Slightly smaller than the container on larger screens */
        max-width: 1150px; /* Ensures it's always slightly smaller than the container */
    }
}

/* Adjust other elements within content wrapper for better spacing */
.content-wrapper h2,
.content-wrapper p,
.content-wrapper .summary-container {
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }
    
    .content-wrapper {
        width: 100%;
        padding: 0 5px;
    }
}


/* Button styles */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: var(--hover-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Logo styles */
.logo-container {
    text-align: center;
    padding: 20px 0;
    background-color: #87CEEB; /* Sky blue hex code */
}

.logo-container img {
    max-width: 200px;
    height: auto;
}

/* SlickNav styles */
.slicknav_menu {
    display: none;
}

@media screen and (max-width: 768px) {
    #main-menu {
        display: none;
    }
    .slicknav_menu {
        display: block;
    }
}

/* Specific styles for subpages */
.biography .staff-member {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.biography .staff-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-right: 20px;
}

.biography .staff-member .text-container {
    flex: 1;
}

iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.summary-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tax-exempt {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.podcast-link {
  display: inline-block;
  padding: 12px 20px;
  background-color: #4CAF50; /* Green background */
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.podcast-link:hover {
  background-color: #45a049;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.podcast-link .icon {
  margin-right: 10px;
}

.podcast-link .text {
  vertical-align: middle;
}

.podcast-link-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}

.gallery-image {
  width: 100%;
  max-width: 300px;
  height: 400px; /* Adjust this value to your preferred vertical resolution */
  object-fit: cover;
  margin: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-image:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .gallery-image {
    height: 300px; /* Adjust for smaller screens */
  }
}

.content-wrapper {
    width: 98%; /* Slightly smaller than the container */
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.left-image, .right-image {
  position: absolute;
  width: 20%; /* Adjust as needed */
  padding-top: 20px; /* Add top padding */
  padding-bottom: 20px; /* Add bottom padding */
}

.left-image {
  left: 0;
  top: 0;
}

.right-image {
  right: 0;
  top: 0;
  width: 25%; /* As per your original specification */
}

.centered-text {
  width: 100%;
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

.text-container ul,
.text-container-list ul {
  list-style-type: none;
  padding-left: 0;
}

/* SlickNav styles */
.slicknav_menu {
    display: none;
}

@media screen and (max-width: 768px) {
    #main-menu {
        display: none;
    }
    .slicknav_menu {
        display: block;
        background-color: #163f94; /* Updated to Sky Blue */
    }
    .slicknav_btn {
        background-color: #163f94; /* Slightly darker shade for the button */
    }
    .slicknav_nav {
        background-color: #163f94; /* Updated to Sky Blue */
    }
    .slicknav_nav a {
        color: var(--text-color);
    }
    .slicknav_nav a:hover {
        background-color: #163f94; /* Slightly darker shade for hover state */
        color: #fff;
    }
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
}

/* Mobile Menu Button */
#menu-button {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  margin: 5px;
  padding: 10px;
  background-color: #163f94;
  color: #163f94;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
}

/* Show/Hide Mobile Navigation */
.menu-active .mobile-nav {
  display: block;
  position: absolute;
  top: 50px;
  right: 0;
  width: 100%;
  background-color: #163f94;
  padding: 0 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

/* Mobile Navigation Links */
.mobile-nav li {
  margin-bottom: 20px;
}

.mobile-nav a {
  display: block;
  padding: 10px;
  font-size: 18px;
  color: #222;
  text-decoration: none;
  border-radius: 4px;
}

.mobile-nav a:hover {
  background-color: #f1f1f1;
}

/* Mobile menu styles */
.slicknav_menu {
  display: none; /* Hidden by default on desktop */
}

/* Media query for mobile menu */
@media screen and (max-width: 1108px) {
  #main-menu {
    display: none !important; /* Force hide the main menu */
  }
  
  .slicknav_menu {
    display: block !important; /* Force show SlickNav menu */
    background-color: #163f94;
  }
  
  .slicknav_btn {
    margin: 5px;
  }
  
  .slicknav_nav {
    background: #163f94;
  }
  
  .slicknav_nav a {
    color: white;
    padding: 10px;
  }
  
  .slicknav_nav a:hover {
    background: #111;
    color: white;
  }
}

/* Desktop menu styles */
@media screen and (min-width: 1109px) {
  #main-menu {
    display: flex !important;
  }
  
  .slicknav_menu {
    display: none !important;
  }
}

.slider-container {
    position: relative;
    width: 600px; /* Smaller fixed width */
    height: 338px; /* 16:9 ratio */
    margin: 0 auto;
    background: #f5f5f5;
    overflow: hidden; /* Keep content within bounds */
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    display: none;
    object-fit: contain;
}

.slide.active {
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.prev {
    left: 10px; /* Move inside container */
}

.next {
    right: 10px; /* Move inside container */
}

@media (max-width: 650px) {
    .slider-container {
        width: 90%;
        height: auto;
        aspect-ratio: 16/9;
    }
}