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

/* Full-Screen Background */
body {
  font-family: 'Arial', sans-serif;
  background: url('logo.jpeg') no-repeat center bottom fixed;
  background-size: cover; /* Ensure full background coverage */
  min-height: 100vh; /* Fill the full screen */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden; /* Prevent side scrolling */
}

/* Ensure the bottom text in the background is visible on mobile */
@media (max-width: 768px) {
  body {
    background-size: contain; /* Prevents cutting off bottom text */
    background-attachment: scroll; /* Fixes scrolling issue */
  }
}

/* Header */
header {
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  text-align: center;
  width: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 0;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 10px 15px;
  border-radius: 5px;
  transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(255, 255, 255, 0.3);
}

/* Main Container */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 20px;
  width: 100%;
}

/* Tab Content Container */
.tab-content {
  display: none;
  width: 100%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 10px;
  color: black;
  height: 70vh; /* Fill 70% of viewport height */
  overflow-y: auto;
  text-align: left;
}

/* Ensure Tab Content is Fully Visible */
.tab-content.active {
  display: block;
}

/* ASMYA in About Tab (Now Black) */
.black-text {
  color: black;
}

/* Slogan in About Tab */
.slogan {
  font-size: 18px;
  color: #4B0082; /* Dark Purple */
  margin-bottom: 15px;
  font-weight: bold;
}

/* Blog Posts */
#blog-posts .blog-post {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  text-align: left;
  color: black;
}

/* Blog Title and Date */
.blog-title {
  font-size: 20px;
  font-weight: bold;
  color: black;
}

.blog-date {
  font-size: 14px;
  color: #4B0082;
}

/* Responsive Fixes for Mobile */
@media (max-width: 768px) {
  body {
    background-size: contain; /* Ensure full background visibility */
    background-position: center bottom; /* Keep bottom text visible */
  }

  nav ul li a {
    font-size: 16px;
    padding: 8px 12px;
  }

  .tab-content {
    height: 60vh; /* Adjusted for smaller screens */
  }

  .slogan {
    font-size: 16px;
  }

  .blog-title {
    font-size: 18px;
  }
}
