/* Basic styling */
body.off-white-bg {
    background-color: #e6dfd6; /* Off-white */
    margin: 0;
    padding: 0;
    font-family: 'Roboto Mono', serif;
}

/* Header styling */
header {
    text-align: center;
    padding: 2.5rem;
    background-color: #e6dfd6;
}

/* Header logo styling */
.header-logo {
    max-width: 100%; /* Ensure the image scales down if necessary */
    height: 50px; /* Maintain aspect ratio */
    display: block; /* Removes any extra space below the image */
    margin: 0 auto; /* Center the image horizontally */
}

.slideshow-container {
    position: relative; /* Ensure the caption can be positioned inside */
    overflow: hidden; /* Prevent overflow issues */
    width: 100%;
    height: 80vh; /* Keep slideshow at the full height */
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.accordion {
    font-family: 'Roboto Mono', monospace;
  }

/* Caption styling */
.caption {
    text-align: left;
    color: #414141;
    padding: 2px;
    font-size: 14px;
    font-family: 'Roboto Mono', serif;
    margin-top: 2px; /* Space between image and caption */
    margin-left: 25px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative; /* Ensure it stays in flow with other elements */
    z-index: 2; /* Ensure it's above the button if necessary */
    cursor: pointer;
}

.caption a:hover {
    color: #b6332e;
    text-decoration: underline;
}

.caption .icon {
  font-size: 16px;
  transition: transform 0.3s;
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: #fafafa;
  padding-left: 20px;
}

.submenu a {
  display: block;
  font-size: 12px;
  padding: 5px 10px;
  color: #b6332e;
  text-decoration: none;
}

.submenu a:hover {
  text-decoration: underline;
}

/* Optional: Responsive tweaks */
@media (max-width: 600px) {
  .caption {
    font-size: 13px;
  }

  .submenu a {
    font-size: 11px;
  }

  }

  h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #444;
    font-size: 17px;
  }

  .category {
    margin-bottom: 0rem;
    border: 0px solid #ccc;
    border-radius: 0px;
    overflow: hidden;
  }

  .category-title {
    color: #b6332e;
    font-size: 16px;
    max-width: 800px;  /* or whatever width you prefer */
    margin: 10px auto;
    padding: 10px 20px;
    background-color: #f0f0f0; /* optional styling */
    border-radius: 0px;         /* optional styling */
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
  }
  

  .tutorial-links {
    display: none;
    font-size: 14px;
    max-width: 800px;  /* or whatever width you prefer */
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #f0f0f0; /* optional styling */
    border-radius: 8px;         /* optional styling */
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
  }

  .tutorial-links a {
    display: block;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: #0077cc;
  }

  
  .tutorial:hover {
    background-color: #e0e0e0;
  }
  
  .video-container video {
    width: 100%;
    max-width: 560px;
    height: auto;
    border-radius: 8px;
  }
  
  .video-container iframe {
    width: 100%;
    max-width: 760px;
    height: 515px;
    border-radius: 8px;
  }
  

  .category.open .tutorial-links {
    display: block;
  }

  .back-link {
    display: block;
    margin-top: 2rem;
    text-align: center;
    color: #444;
    text-decoration: none;
    font-size: 0.9rem;
  }

  .back-link:hover {
    color: #000;
  }
  .program-icons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 40px auto;
    max-width: 90%;
  }

  .program-icons-container a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
  }
  
  
  .program-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100px;
  }
  
  .program-icon:hover {
    transform: scale(1.1);
  }
  
  .program-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 8px;
  }
  
  .program-icon span {
    font-size: 0.9rem;
    text-align: center;
    color: #333;
  }

  .tutorial-section {
    display: none; /* Show only when selected */
    margin: 30px auto;
    max-width: 800px;
  }
  .subcategory {
    margin-top: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .subcategory-title {
    font-size: 14px;
    color: #444;
    max-width: 800px;  /* or whatever width you prefer */
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #f0f0f0a8; /* optional styling */
    border-radius: 8px;         /* optional styling */
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
  }
  
  .subcategory-title:hover {
    background-color: #cccccc00;
  }
    

.slide {
    display: none;
}

/* Image responsiveness */
.responsive-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the entire image fits within the container, maintaining aspect ratio */
    object-position: center; /* Centers the image */
    max-width: 100%; /* Ensures the image doesn't go beyond the viewport width */
    max-height: 70vh; /* Ensures the image doesn’t exceed the viewport height */
    background-color: #e6dfd6; /* Off-white background around the image */
}

/* Animation for fade effect */
.fade {
    animation-name: fade;
    animation-duration: 2.5s;
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #e6dfd6;
    position: relative;
}
/* Next and previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 40%;
    width: 7px; /* Adjust width to make arrows smaller */
    height: 7px; /* Adjust height to make arrows smaller */
    padding: 8px; /* Adjust padding to make arrows fit better */
    margin-top: 20px; /* Center vertically */
    color: #b6332e;
    font-size: 37px; /* Adjust font size for smaller arrows */
    text-align: center; /* Center text in button */
    line-height: 10px; /* Align text vertically */
    transition: 0.3s ease;
    border-radius: 50%; /* Make buttons circular */
    background-color: rgba(0, 0, 0, 0); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Position arrows closer to the slideshow */
.next {
    right: 10%; /* Distance from the right edge of the slideshow */
}

.prev {
    left: 10%; /* Distance from the left edge of the slideshow */
}

/* Hover effect on the buttons */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0); /* Darker background on hover */
    color: #ffffff;
}
/* Container with image */
.image-container {
    position: relative;
}

/* Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0); /* Transparent overlay */
    z-index: 1; /* Place on top of the image */
}

/* Gallery container using Flexbox */
.gallery-container {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
    display: flex;
    flex-wrap: wrap; /* Allows the gallery items to wrap into multiple rows */
    justify-content: space-between; /* Space out items evenly */
    gap: 2px; /* 2px gap between images */
    margin: 20px 0px 2px 0px;
    width: 100%; /* Ensure the gallery takes full available width */
    box-sizing: border-box; /* Include padding and borders in element’s width */
}

.gallery-visible {
    opacity: 1;
    visibility: visible;
}

/* Each gallery item */
.gallery-item {
    flex: 1 1 calc(33.33% - 2px); /* Make each item take up 1/3rd of the width, accounting for the 2px gap */
    max-width: calc(33.33% - 2px); /* Ensure it doesn't exceed 1/3rd of the container's width */
    position: relative;
    margin: 0; /* Remove default margins */
    padding-top: 33.33%; /* This gives each item a square aspect ratio */
    box-sizing: border-box;
    overflow: hidden; /* Make sure images don't overflow their container */
}

/* Gallery image */
.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the entire square without distortion */
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Responsive behavior for smaller screens */
@media (max-width: 900px) {
    .gallery-item {
        flex: 1 1 calc(50% - 2px); /* 2 columns for medium screens */
        max-width: calc(50% - 2px); /* Ensure it doesn't exceed half of the container's width */
        padding-top: 50%; /* Maintain square aspect ratio */
    }
}

@media (max-width: 600px) {
    .gallery-item {
        flex: 1 1 100%; /* 1 column for small screens */
        max-width: 100%; /* Full width on smaller screens */
        padding-top: 100%; /* Maintain square aspect ratio */
    }
}


/* Modal (fullscreen image display) */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Black background with opacity */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    padding: 20px;
    object-fit: contain; /* Ensure the image scales without being distorted */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.5); /* Add a subtle shadow for better focus */
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
}

/* Scroll arrow styling */
.scroll-arrow {
    text-align: center;
    font-size: 2rem; /* Make the arrow large */
    color: #b6332e; /* Gray color for the arrow */
    margin-top: 10px; /* Space above the arrow */
    cursor: pointer; /* Make it look clickable */
    animation: bounce 2s infinite; /* Add a bounce animation */
    transition: opacity 0.3s ease; /* Smooth fade-out transition */
}

/* Styling for the "Scroll for more" text */
.scroll-text {
    color: #414141;
    margin-top: 10px;
    font-size: 12px;
    font-family: 'Roboto Mono', serif;
}

/* Bounce animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Fade out and hide arrow when scrolled */
.scroll-arrow-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Form container styling */
#contact-form {
    text-align: center;
    padding: 1rem;
    background-color: #e6dfd6; /* Same background color as footer */
    border-radius: 8px;
    max-width: 400px; /* Limit form width for a clean look */
    margin: 20px auto; /* Center the form and add some spacing */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    font-family: 'Roboto Mono', serif;
}

#contact-form input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
    font-size: 12px;
    background-color: #fff;
    font-family: 'Roboto Mono', serif;
}

#contact-form input[type="submit"] {
    background-color: #414141; /* Dark grey button */
    color: white;
    border: none;
    padding: 12px;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    width: 100%; /* Make the button full width */
    box-sizing: border-box;
    font-family: 'Roboto Mono', serif;
}

#contact-form input[type="submit"]:hover {
    background-color: #333333; /* Darker grey on hover */
    font-family: 'Roboto Mono', serif;
}

.contact-btn {
    background-color: #b6332e9a;
    color: white;
    border: none;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    border-radius: 20px;
    display: block;
    margin: 0px auto;
    font-family: 'Roboto Mono', serif;
    font-weight:100;
    position: relative; /* Ensure the button doesn't overlap the caption */
    z-index: 1;
}

/* Hover effect for the "Get in touch" button */
.contact-btn:hover {
    background-color: #ffffff; /* Slightly darker on hover */
    color: #b6332e;;
}

/* Ensure proper spacing on mobile */
@media (max-width: 600px) {
    .contact-btn {
        margin-top: 30px; /* Increase margin on mobile to ensure proper spacing */
    }
}

/* Header container styling */
.header-container {
    display: flex;
    justify-content: space-between; /* Space between logo and icons */
    align-items: center;
    padding: 0px;
    background-color: #e6dfd6;
    position: relative; /* Enable positioning for absolute centering */
}

/* Center the logo */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Shift logo to center */
}

/* Social Media Floating Island Bar */
.social-media-bar {
    position: fixed;
    bottom: 30px; /* Detach from the bottom */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center using transform */
    width: 200px; /* Smaller width */
    height: 30px; /* Desired smaller height */
    background-color: #e6dfd6; /* Slightly more opaque black background */
    display: flex;
    justify-content: space-around; /* Spread icons evenly */
    align-items: center; /* Center the icons vertically */
    border-radius: 15px; /* Adjusted for smaller bar */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for the "floating" effect */
    visibility: hidden; /* Hidden by default */
    opacity: 0; /* Start with 0 opacity */
    transition: visibility 0s, opacity 0.5s ease; /* Smooth fade-in and fade-out */
    z-index: 9999; /* Ensure it’s on top of other elements */
    padding: 0px 0px 10px 0px; /* Remove any internal padding */
}

/* Social Media Icons Styling */
.social-media-bar a {
    color: #b6332e;
    font-size: 15px; /* Smaller icon size to fit within 30px height */
    text-decoration: none;
    display: flex; /* Flexbox for centering */
    justify-content: center; /* Horizontally center the icon */
    align-items: center; /* Vertically center the icon */
    width: 25px; /* Adjust width for smaller icon size */
    height: 25px; /* Adjust height to fit within the 30px bar */
    border-radius: 50%; /* Circular icons */
}

.social-media-bar a:hover {
    color: #ffffff; /* Change color on hover */
}


/* Show the bar when user scrolls down */
.social-media-bar.show {
    visibility: visible;
    opacity: 1; /* Show the bar */
}

/* Footer styling */
.site-footer {
    width: 100%; /* Ensure it spans the entire width */
    background-color: transparent;
    padding: 10px;
    text-align: left; /* Align the text to the left */
    box-sizing: border-box; /* Include padding in width calculation */
    font-family: 'Roboto Mono', serif;
}

.site-footer p {
    font-size: 12px;
    color: #414141;
    margin: 0;
    font-family: 'Roboto Mono', serif;
}





