* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%; /* Prevent iPhone landscape text enlargement */
}

body {
  padding-top: 70px;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff; /* You can add background image if needed */
  color: black;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: flex;
  align-items: center;
  padding: 8px 20px;
  font-weight: bold;
  font-size: 1rem;
}

nav ul {
  display: flex;
  width: 100%;
  list-style: none;
  align-items: center;
  justify-content: flex-end;
  font-size: 1rem;
}

nav li:first-child {
  margin-right: auto;
}

nav li {
  height: 50px;
}

nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 30px;
  text-decoration: none;
  color: black;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: lightblue;
}

/* Sidebar */
/* Navigation */ 
 
/*
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 10px;
  background-color: rgba(255, 255, 255, 0.95);
  overflow-y: auto;
}

.sidebar.active {
  display: flex;
}*/
/* === ANIMATED SIDEBAR VERSION === */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 10px;
  background-color: rgba(255, 255, 255, 0.95);
  overflow-y: auto;
  transform: translateX(100%);   /* Start hidden off-screen */
  opacity: 0;                    /* Hidden visually */
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  pointer-events: none;/* Disable clicks when hidden */
  
}

.sidebar.active {
  transform: translateX(0);      /* Slide in */
  opacity: 1;                    /* Fade in */
  pointer-events: auto;           /* Enable clicks again */
  
}

.sidebar li {
  width: 100%;
  margin-bottom: 15px;
}

.sidebar a {
  width: 100%;
  padding: 10px 20px;
  font-size: 1.25rem;
  color: black;
}

/*.sidebar a:hover {
  background-color: lightblue;
}*/

/* Menu button for mobile */
.menu-button {
  display: none;
  cursor: pointer;
}

/* Align the icon and text horizontally in nav */
.menu-button a {
  padding: 0;
  height: 50px;
  display: flex;
  align-items: center;
  color: black;
}

/* Logo */

.logo img {
  width: 100vw;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem auto;
  
  
}


/* Main content */
main, h1 {
  text-align: center;
  font-family: Arial, sans-serif;
  background-color: lightgrey;
  padding-bottom: 0.5em;
  color: black;
}

main > p {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Colored word */
.colored-word {
  color: red;
}

/* blog */
#blog {
  padding: 2rem 1rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 1.5rem auto;
  max-width: 700px;
  width: 90vw;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}



.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: #222;
}

.card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
  margin-bottom: 1rem;
  
}


/* blog meta and profile pic */ 
.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0;
  
}

.profile-pic img {
  display: block;
  width: 35px;
  height: 35px;
  border: 1px solid black;
  border-radius: 50%;
  object-fit: cover;
}

.profile-pic {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1rem;
  }


.author-info {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  line-height: 1.2;
}

/* Blog metadata (author & date) */

.author-name {
  font-weight: bold;
  color: #333;
}

.post-date {
  color: #888;
  font-size: 0.85rem;
}

/* “Read More” button style */
.button-primary {
  background-color: grey;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}

.button-primary a {
  color: white;
  text-decoration: none;
}

.button-primary:hover {
  background-color: lightgrey;
}

 /* Wrapper for each video block (was previously .video) */
.video-block {
  margin-bottom: 3rem;
  text-align: center;
}

.video-container {
  width: 70vw;
  max-width: 700px;
  aspect-ratio: 4 / 5; 
  margin: 1.5rem auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.10);
  background: #000;
  position: relative;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  transform: scale(1.3);
  transform-origin: center;
}

 

 

/* Fix Vimeo video zoom / black borders */
.video-container iframe[src*="vimeo"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* For local <video> files: make the <video> element behave like the iframe */
.video-container.local-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* change to contain if you prefer letterbox */
  display: block;
  border: none;
}

 

/* Carousel */
.carousel-container {
  position: relative;
  max-width: 70vw;
  margin: 2rem auto;
  overflow: hidden;
  background-color: #f0f8ff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.carousel-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  padding: 0;
  margin: 0;
  list-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex-shrink: 0;
  width: 100%;
  scroll-snap-align: center;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.carousel-navigation {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carousel-button {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-button:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-indicators {
  display: flex;
  gap: 10px;
}

.indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: #fff;
}

/* Larger screens carousel */
@media (min-width: 768px) {
  .carousel-container {
    max-width: 800px;
  }

  .carousel-navigation {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .carousel-button {
    background: rgba(0, 0, 0, 0.3);
  }
  
  .carousel-button:hover {
    background: rgba(0, 0, 0, 0.5);
  }
  
  .carousel-indicators {
    display: none;
  }
}

/* Responsive nav & sidebar */
@media (max-width: 768px) {
  .hideOnMobile {
    display: none;
  }
  .menu-button {
    display: block;
  }
}

/* Smaller sidebar on tiny screens */
@media (max-width: 400px) {
  .sidebar {
    width: 41%;
    height: 50%;
  }
}

/* .sidebar.active ~ ul .menu-button {
  display: none;
} */

 

/* Footer */
.footer {
  background-color: lightgrey;
  padding: 20px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.connect {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
}

.footer-icons {
  display: flex;
  gap: 20px;
}

/* Icon buttons */
footer .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

/* footer .icon-button.youtube {
  background-color: #ff0000;
}

footer .icon-button.envelope {
  background-color: #4a90e2;
}

footer .icon-button.phone {
  background-color: #4a90e2;
}

footer .icon-button.facebook {
  background-color: #1877F2; 
  
}

footer .icon-button.instagram {
  background: radial-gradient(circle at 30% 107%, 
    #fdf497 0%, 
    #fdf497 5%, 
    #fd5949 45%, 
    #d6249f 60%, 
    #285AEB 90%);
}

footer .icon-button.pinterest {
  background-color: #E60023; 
} */

footer .icon-button:hover {
  transform: scale(1.15);
}

footer .icon-button.facebook:hover,
footer .icon-button.instagram:hover,
footer .icon-button.youtube:hover,
footer .icon-button.pinterest:hover {
  transform: scale(1.15);
  filter: brightness(1.1);
}

@media (max-width: 500px) {
  .footer-icons {
    gap: 14px;
  }

  footer .icon-button {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

 

.blog-photo {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.pblog p {
  padding-left: 5vw;
  padding-right: 5vw;
}

 

/* Match blog page author section to homepage cards */
 .blogonly .profile-pic {
   
  padding-bottom: 13px;
}

 
/* Landscape (horizontal phone) adjustments */
@media screen and (orientation: landscape) and (max-width: 900px) {
  .card {
    max-width: 90vw;      /* make cards fit neatly on screen */
    margin: 2rem auto;    /* keep them centered */
    padding: 1rem;        /* slightly tighter padding for fit */
  }

  .card img:not(.profile-pic img) {
    margin-bottom: 0.3rem;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    max-height: 60vh;/* prevents image from overtaking the screen */
  }

  .card picture {
  display: contents;
}

  
  .profile-pic img {
    width: 35px;
    height: 35px;
    border-radius: 50%;  /* restore circular image */
    object-fit: cover;
  }
  h1, h2, p {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .card p {
  margin-bottom: 0.15rem;
  }
  .card h2 {
  margin-top: 0.15rem;
  margin-bottom: 0.15rem;
  }

  .carousel-container {
  max-width: 90vw;
  max-height: 85vh;
}

.carousel-slide img {
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}

    .video-container {
    max-width: 90vw;
    max-height: 85vh;
    aspect-ratio: 16 / 9; /* makes it fit nicely like the carousel */
  }

  .sidebar {
  width: 15%;
  height: 100vh;
}
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* full screen height */
  background-image: url('images/pipehoriz.jpeg'); /* replace with your image */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3); /* dark overlay for text readability */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay h1 {
  color: white;
  font-size: 4rem;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2.5rem;
    padding: 0 1rem;
  }
}

.signup-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 12px;
    background-color: #f2f2f2;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-family: sans-serif;
  }

  .signup-form h2 {
    margin-bottom: 15px;
    color: #333;
  }

  .signup-form input[type="email"] {
    width: 80%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
  }

  .signup-form button {
    padding: 12px 20px;
    background-color: #0077ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
  }

  .signup-form button:hover {
    background-color: #005fcc;
  }

/* footer .icon-button {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.3);

  display: flex;
  align-items: center;
  justify-content: center;

  color: black; /* or white depending on your footer 
}

 footer .icon-button:active {
  transform: scale(0.92);
} */


footer .icon-button {
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);

  color: #111;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

footer .icon-button:active {
  transform: scale(0.92);
}



 

 


 

 

 
