/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    width: 100%;
    z-index: 1000;
}

/* Hero Section */
.hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

/* Hero Text - Adding Shadow for Better Readability */
.hero-title, 
.hero-subtitle {
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
}

/* Featured Section - Ensure Same Height Cards */
featured-section {
    text-align: center;
    background: #ffffff !important; /* Ensures the background is white */
    padding: 40px 0;
}

.featured-section .row {
    display: flex;
    align-items: stretch; /* Ensures all cards stretch equally */
}

/* Feature Cards - Force Same Height */
.feature-card {
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%; /* Forces equal height */
    background: #ffffff; /* Matches the page background */
    border: 1px solid #ddd; /* Adds a subtle border for separation */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Lighter shadow */
}

/* Ensures all cards fill the height equally */
.feature-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

/* Add hover effect */
.feature-card:hover {
    transform: translateY(-5px);
}

/* Fix Contact Page Background Image */
.contact-page {
    background: url('images/contact_pete-alexopoulos-hQkkePMVcZg-unsplash.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Contact Container - Centers both text and form */
.contact-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

/* Contact Form Card */
.contact-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    margin-top: 20px;
}

/* Feedback Message Styles */
#formFeedback {
    font-size: 1rem;
    text-align: center;
  }
  
  /* Success message styling */
  #formFeedback.success {
    color: green;
  }
  
  /* Error message styling */
  #formFeedback.error {
    color: red;
  }  

  
/* Ensure Main Content Fills Space */
.main-content {
    flex: 1;
}

/* Marketing Section Below Featured Cards */
.marketing-section {
    max-width: 800px;
    margin-top: 10px; /* Further reduced space between features & marketing copy */
    margin-bottom: 15px; /* Keeps footer spacing smaller */
    padding: 5px; /* Minimal padding to keep it clean */
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

/* Article List */
.article-list {
    max-width: 900px; /* Increased width */
    margin: 0 auto;
}

/* Article Entries */
.article-entry {
    background: white;
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    transition: background 0.2s ease-in-out;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.article-entry:hover {
    background: #f9f9f9;
}

/* Article Year Column - Left Aligned */
.article-year {
    font-weight: bold;
    color: #555;
    flex: 0 0 80px; /* Fixed width for alignment */
    text-align: left; /* Align text to the left */
}

/* Article Info Column - Left Aligned */
.article-info {
    text-align: left;
    color: #222;
    flex-grow: 1; /* Makes it take up the remaining space */
}

/* Article Details Drawer */
.article-details {
    background: white;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

/* View Story Link - Left Aligned */
.view-story {
    text-align: left;
    margin-bottom: 10px;
}

.view-story a {
    text-decoration: none;
    font-weight: bold;
    color: #007bff;
}

.view-story a:hover {
    text-decoration: underline;
}

/* Enlarged Screenshot Styling */
.article-screenshot {
    width: 100%; /* Full width of the container */
    max-width: 1000px; /* Makes it almost full page width */
    border-radius: 5px;
    display: block;
    margin: 10px auto;
}

/* Footer */
.footer {
    background: #222;
    color: white;
    padding: 20px;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

/* Social Links */
.social-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.social-links a:hover {
    text-decoration: underline;
}
