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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
}

ul {
    list-style: disc inside;
}

/* Default link styling */
a {
  color: #0a66c2; /* Set the link color */
  text-decoration: none; /* Remove the underline */
}

/* Add underline on hover */
a:hover {
  text-decoration: underline;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #2e8b57; /* Natural green */
    color: white;
    padding: 1rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.logo img {
    height: 40px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.menu > li {
    position: relative;
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.menu a:hover {
    color: #add8e6; /* Light complementary blue */
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #3cb371; /* Slightly lighter green for dropdown */
    list-style: none;
    padding: 0.5rem;
    display: none;
    border-radius: 4px;
}

.menu > li:hover .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: white;
}

.dropdown a:hover {
    background: #add8e6; /* Light complementary blue */
    color: #2e8b57; /* Green text for contrast */
}

/* Main Layout */
.main-container {
    display: flex;
    max-width: 1200px;
    margin: 5rem auto;
    gap: 2rem;
    padding: 1rem;
}

.content {
    flex: 3;
}

.sidebar {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Image Section */
.image-section img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.6s ease;
}

.image-section.visible img {
    transform: translateY(0);
    opacity: 1;
}

/* Text Section */
.text-section {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.6s ease, transform 0.6s ease;
}

.text-section.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Sidebar Links */
.links-section {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.links-section ul {
    list-style: disc inside;
    padding: 0;
}

.links-section ul li {
    margin-bottom: 0.5rem;
}

.links-section ul li a {
    color: #0a66c2; /* Set the link color */
    text-decoration: none; /* Remove the underline */
}

.links-section ul li a:hover {
    text-decoration: underline;
}

/* Ad Section */
.ad-section {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Footer */
footer {
    background-color: #2e8b57; /* Same natural green as navbar */
    color: white;
    text-align: center;
    padding: 1.5rem 1rem;
}

footer a {
    color: #add8e6; /* Light complementary blue */
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

picture img {
  width: 100%;
  height: auto;
  max-width: 686px; /* Default size */
}

.indented-li br + span {
    display: block; /* Makes the second line act as a block */
    text-indent: 2em; /* Indent size based on character width */
}

/* Grid Container */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 20px; /* Space between grid items */
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto; /* Center the grid on the page */
}

/* Individual Quote Cards */
.quote-card {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Quote Text */
.quote-text {
  font-style: italic;
  color: #333;
}

/* Author Section */
.quote-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Author Image */
.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%; /* Rounded corners */
  object-fit: cover;
}

/* Author Details */
.author-details {
  display: flex;
  flex-direction: column;
}

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

.author-title {
  font-size: 0.875rem;
  color: #666;
}

.glowing-text {
  color: #ffd700;
  text-shadow: 
    0 0 5px #ffd700, 
    0 0 10px #ffd700, 
    0 0 20px #ffcc33, 
    0 0 30px #ffcc33, 
    0 0 40px #ffc700;
  font-weight: bold;
  animation: glow 1.5s infinite alternate;
}

@keyframes glow {
  0% {
    text-shadow: 
      0 0 5px #ffd700, 
      0 0 10px #ffd700, 
      0 0 15px #ffcc33, 
      0 0 20px #ffc700;
  }
  100% {
    text-shadow: 
      0 0 10px #ffd700, 
      0 0 20px #ffcc33, 
      0 0 30px #ffc700, 
      0 0 40px #ffcc33;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column; /* Stack content vertically */
    }

    .content {
        order: 1; /* Ensure content is at the top */
    }

    .sidebar {
        order: 2; /* Move sidebar below content */
    }
    
    .quotes-grid {
        grid-template-columns: 1fr; /* 1 column for smaller screens */
    }
    
    picture img {
        max-width: 100%; /* Full width on smaller screens */
    }
}
