/* Updated style.css for a Modern, Space-Oriented, Professional Look */

/* CSS Custom Properties for Consistent Theming */
:root {
  --primary-color: #45bcec; /* Vibrant space blue */
  --secondary-color: #59469c; /* Deep purple accent */
  --background-color: #fafafa; /* Dark, cosmic navy */
  --accent-color: #ddd;
  --text-color: #0d0d1a;
  --font-family-sans: "Roboto", sans-serif;
  --transition: 0.3s ease;
}

/* Global Resets and Base Typography */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-family-sans);
  line-height: 1.6;
}

/* Fixed Header with Backdrop Blur */
header {
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.7);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(5px);
}

.logo-container {
  position: relative;
  display: inline-block;
  height: 50px; /* Adjust height as needed */
}

.logo-container img {
  height: 100%;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.logo-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.logo-default {
  filter: invert(1);
}

.logo-container:hover .logo-hover {
  opacity: 1;
}

.logo-container:hover .logo-default {
  opacity: 0;
}

/* Navigation Menu Styling */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--background-color);
  font-weight: bold;
  transition: color var(--transition);
}

nav a:hover,
.menu-item.active-item a {
  color: var(--primary-color);
}

/* Sub-menu Styling */
.sub-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 10px;
}

.sub-menu a {
  font-size: 16px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

.sub-menu a:hover {
  color: var(--primary-color);
}

/* Cover Section with Space Imagery and Overlay */
#cover {
  padding-top: 200px; /* Offset for fixed header */
  height: 400px;
  background: url("img/cover.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#cover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
}

/* Heading Styling for the Cover Section */
.heading {
  position: relative;
  font-size: 3rem;
  text-align: center;
  z-index: 1;
  color: var(--background-color);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Main Content Container */
.flexbox {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ISA Head Paragraph Styling */
.isa-head-paragraph {
  max-width: 1000px;
  font-size: 18px;
  margin-top: 30px;
  border-left: solid 4px var(--secondary-color);
  padding: 5px 10px;
  font-weight: 500;
}

/* Main Article Sections (e.g., About, Mission) */
.main-article {
  width: 90%;
  margin: 2rem auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.article-details {
  flex: 1;
  padding: 1rem;
}

.article-img {
  flex: 1;
  max-height: 25em;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Footer Styling */
footer {
  padding: 1rem 2rem;
  background: rgba(230, 230, 230, 0.8);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.footer-social {
  color: var(--text-color);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color var(--transition);
}

.footer-social:hover {
  color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  header {
    flex-direction: column;
  }
  nav ul {
    gap: 0.5rem;
  }
  .main-article {
    flex-direction: column;
  }
  .heading {
    font-size: 2rem;
  }
  .article-img {
    max-width: 70%;
  }
}
/* Ensure the dropdown parent is positioned relative */
.menu-item.dropdown {
  position: relative;
}

/* Updated Dropdown Menu Positioning */
.menu-item.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0; /* Align the dropdown to the right edge */
  background: var(--background-color);
  padding: 0.5rem 0;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  min-width: 200px;
}

/* Show dropdown on hover */
.menu-item.dropdown:hover .dropdown-menu {
  display: block;
}

/* Dropdown Menu Items Styling */
.dropdown-item {
  padding: 0.5rem 1rem;
}

.dropdown-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--transition);
}

.dropdown-item a:hover {
  color: var(--primary-color);
}
/* --- Animations --- */

/* Fade In Up Animation for Sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Animation for Cover */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Pulse Animation for Logo Hover */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

/* --- Apply Animations --- */

/* Fade in main sections on load */
.flexbox,
.cards-wrapper,
.main-article {
  animation: fadeInUp 0.8s ease-out;
}

/* Parallax effect on the cover */
#cover {
  background-attachment: fixed;
  animation: fadeIn 1s ease-out;
}

/* Hover effect for navigation items */
nav a:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Enhance card hover with a slight scale-up */
.card:hover {
  transform: translateY(-8px) scale(1.02);
  transition: transform 0.3s ease;
}

/* Logo hover pulse effect */
.logo-container:hover .logo-hover {
  animation: pulse 1s infinite;
}

a.download-link,
a.donation-button {
  display: inline-block;
  padding: 10px 20px;
  margin: 10px;
  color: #fff;
  background-color: var(
    --primary-color
  ); /* Uses your primary color variable (#45bcec) */
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

a.download-link:hover,
a.donation-button:hover {
  background-color: var(--primary-color);
  transform: scale(1.05);
}
.financial-report-card {
  width: 400px; /* Adjust width as needed */
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
  margin: 20px;
  overflow: hidden; /* Ensures rounded corners for children */
}

/* Teal header */
.financial-report-header {
  background-color: var(--primary-color); /* Teal color */
  color: #fff;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: bold;
}

/* Body content wrapper */
.financial-report-body {
  padding: 12px 16px;
}

/* Row containing the file name and download icon */
.report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.report-row span {
  font-size: 0.95rem;
  color: #333;
}

/* Horizontal separator line */
.separator {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0;
}

/* Download icon link */
.download-icon {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Optional icon styling if using an SVG */
.download-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--primary-color); /* Greenish color */
  transition: fill 0.3s ease;
}
.download-icon:hover svg {
  fill: var(--primary-color);
}
.organization-details th {
  text-align: right;
  padding-right: 1rem;
}
