/* styles.css - Complete Mobile-Friendly Version */

:root {
    --medium-blue: #3498db;
    --darker-blue: #2980b9;
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --black: #000000;
}

/* General Reset & Base */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--white);
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

.hero {
    text-align: left;
}

.hero h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    margin-left: 2rem;
}

.hero h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
    margin-left: 2rem;
}

.hero p {
    font-size: 1.25rem;
    color: #555;
    margin: 0 2rem 2rem 2rem;
}

.hero ul {
    font-size: 1.25rem;
    color: #555;
    margin: 0 auto 0.5rem 2rem;
}

.bio-image {
	width:100px; 
	vertical-align: middle;
	margin-right: 2rem;
}

/* ====================== GALLERY SLIDESHOW ====================== */
.gallery-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.slideshow {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: #f8f8f8;
}

.slideshow img {
    width: 100%;
    height: auto;
    display: none;
    object-fit: contain;
}

.slideshow img.active {
    display: block;
}

.slideshow .prev,
.slideshow .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slideshow .prev:hover,
.slideshow .next:hover {
    background: rgba(0, 0, 0, 0.85);
}

.slideshow .prev { left: 15px; }
.slideshow .next { right: 15px; }

.slideshow .counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.95rem;
}

/* ====================== BLOG TABLE ====================== */
.blog-table {
    width: 100%;
    max-width: 600px;
    margin: 1rem 0 1rem 2.5rem;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #e3f2fd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #000000;
}

.blog-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #bbdefb;
    font-size: 1.05rem;
}

.blog-table tr td:first-child {
  max-width: 75px;
}

.blog-table tr:last-child td {
    border-bottom: none;
}

.blog-table a {
    color: #1565c0;
    text-decoration: none;
}

.blog-table a:hover {
    text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    main {
        padding: 1.5rem 0.75rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .blog-table {
        margin: 2rem 0.75rem;
        max-width: 100%;
    }
    
    .blog-table td {
        padding: 12px 14px;
        font-size: 1rem;
    }
    
    .blog-table td:last-child {
        text-align: left;
        font-size: 0.95rem;
        color: #555;
    }
    
    .slideshow .prev,
    .slideshow .next {
        width: 46px;
        height: 46px;
        font-size: 1.6rem;
    }
}

/* New mobile menu */
/* Add a black background color to the top navigation */
.topnav {
  background-color: var(--medium-blue);
  overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  display: block;
  color: var(--white);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: var(--darker-blue);
  color: var(--light-gray);
}

/* Add an active class to highlight the current page */
.topnav a.active {
  background-color: var(--black);
  color: white;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
}

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}
