/* General Body and Container Styles */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif; /* Modern sans-serif font */
    background-color: #f0f2f5; /* Light grey background */
    color: #333; /* Default text color */
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for dark mode */
}

.container {
    max-width: 100dvw; /* Slightly wider container */
    margin: 0 auto; /* Center the container */
    padding: 0; /* Remove padding from container to allow sections to control it */
    background-color: #ffffff; /* White background for the main content area */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
    overflow: hidden; /* Clear floats */
}



/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .container {
    background-color: #2c2c2c;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .nav-section {
    background-color: #1a1a1a;
}

body.dark-mode .nav-section nav a {
    color: #e0e0e0;
}
body.dark-mode .nav-section nav a .fas {
    color: #e0e0e0; /* Adjust icon color in dark mode */
}

/* Updated for dynamic text color */
body.dark-mode .hero-section h1,
body.dark-mode .hero-section p {
    color: var(--dynamic-text-color-dark, #e0e0e0); /* Use specific dark mode variable */
}

body.dark-mode .card-section .card {
    background-color: #3a3a3a;
    color: #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .other-section {
    background-color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) inset;
}

body.dark-mode .contact-form-section {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

body.dark-mode .contact-form-section input,
body.dark-mode .contact-form-section textarea {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border: 1px solid #555;
}
body.dark-mode .contact-form-section input::placeholder,
body.dark-mode .contact-form-section textarea::placeholder {
    color: #aaa;
}

body.dark-mode .last-card-section .footer-card {
    background-color: #3a3a3a;
    color: #e0e0e0;
}

body.dark-mode .last-card-section .footer-card ul li {
    color: #e0e0e0;
}

body.dark-mode footer {
    background-color: #1a1a1a;
    border-top: 1px solid #3a3a3a;
}

/* Navigation Section (Horizontal Top Nav) */
.nav-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2c3e50; /* Dark blue-grey */
    color: white;
    padding: 15px 40px; /* Increased padding */
    position: sticky; /* Make nav sticky */
    top: 0;
    z-index: 1000; /* Ensure it stays on top */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: background-color 0.3s ease;
    gap:15px ;
}

.nav-section .logo-link img {
    height: 60px; /* Slightly larger logo */
    transition: transform 0.3s ease;

}

.nav-section .logo-link:hover img {
    transform: scale(1.05); /* Slight zoom on hover */
}

.nav-section nav ul {
    list-style: none;
    display: flex; /* Make main nav items horizontal */
    gap: 27px; /* Gap between links */
    margin: 0;
    padding: 0;
}

.nav-section nav li {
    position: relative; /* Essential for dropdown positioning */
}

.nav-section nav a {
    color: white;
    text-decoration: none;
    font-weight: 600; /* Bolder font */
    font-family: 'Montserrat', sans-serif; /* Modern font for navigation */
    padding: 5px 0; /* Padding for horizontal nav links */
    position: relative;
    transition: color 0.3s ease;
    display: flex; /* Allow icon to align */
    align-items: center;
    gap: 5px; /* Space between text and icon */
}

.nav-section nav a .fas {
    font-size: 0.8em; /* Smaller icon */
    transition: transform 0.3s ease;
}

/* Dropdown Content (Vertical positioning below parent) */
.dropdown-content {
    padding: 4px;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background-color: #2c3e50; /* Same as nav bar for seamless look */
    width: max-content; /* Adjust width to fit content */
    box-shadow: 0 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 0 0 5px 5px; /* Rounded bottom corners for dropdown */
    list-style: none;
    top: 100%; /* Position BELOW the parent link */
    left: 0; /* Align with the start of the parent link */
    transform: translateY(10px); /* Initial slight slide down */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
}

/* Show dropdown on hover of the parent li */
.dropdown:hover > .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content li {
    position: relative; /* For nested dropdowns */
}

.dropdown-content a {
    color: white;
    padding: 2px; /* Padding for dropdown items */
    text-decoration: none;
    display: block;
    text-align: left;
    white-space: normal; /* Allow text to wrap within the min-width */
    word-wrap: break-word; /* Break long words */
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 220px; /* Increased min-width to accommodate longer text */
}

.dropdown-content a:hover {
    background-color: #34495e; /* Slightly lighter shade on hover */
    color: #3498db; /* Accent color for hovered item */
}

/* Styling for nested dropdowns (also VERTICAL position below parent) */
.sub-dropdown {
    left: 100%; /* Position to the right of the parent menu item */
    top: 0; /* Align with the top of the parent menu item */
    margin-left: 5px; /* Small gap between parent and sub-dropdown */
    border-radius: 5px; /* Adjust border-radius for side-stacked dropdown */
}

/* Show nested dropdown on hover of its parent li */
.dropdown-content .dropdown:hover > .sub-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0); /* Slide to exact position */
}

/* Arrow rotation for dropdowns on hover */
.dropdown:hover > .dropdown-toggle .fa-caret-down {
    transform: rotate(180deg);
}

/* Arrow for nested items also rotates right */
.dropdown-content .dropdown:hover > .dropdown-toggle .fa-caret-right {
    transform: rotate(90deg); /* Rotate down for nested dropdowns */
}

.nav-section nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #3498db; /* Accent color for underline */
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
    display: block; /* Ensure it's displayed for the underline effect */
}

/* Apply underline only to non-dropdown links on hover */
.nav-section nav li:not(.dropdown) > a:hover::after {
    width: 100%;
}

.nav-section nav li:not(.dropdown) > a:hover {
    color: #3498db; /* Change color on hover */
}

.nav-section button.donate-button {
    background-color: #e74c3c; /* Red for donate */
    color: white;
    padding: 12px 25px; /* More prominent button */
    border: none;
    border-radius: 30px; /* Pill shape */
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
    margin-left: 9px;
}

.nav-section button.donate-button:hover {
    background-color: #c0392b; /* Darker red on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.6);
}

/* Responsive Nav Toggle Button */
.nav-toggle-button {
    display: none; /* Hidden by default, shown via media query */
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.hero-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  z-index: 2;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
              url('image2.jpg') no-repeat center center/cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  color: #fff;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.4); /* optional dark overlay */
  border-radius: 12px;
}


.features-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: space-between;
}

.feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  flex: 1 1 250px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(4px);
}

.feature-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 94, 94, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  font-size: 1.8rem;
  color: #ff5e5e;
}

.feature-text h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.feature-text p {
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.5;
}





.content-box h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.content-box p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.cta-group .btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: #ff5e5e;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-group .btn:hover {
  background-color: #e04b4b;
}

.info-badges {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge-item i {
  font-size: 1.5rem;
  color: #ff5e5e;
}

.badge-content span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.badge-content strong {
  font-size: 1.1rem;
  font-weight: 600;
}

.features-wrapper {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1 1 300px;
}

.feature-icon {
  background-color: rgba(255, 94, 94, 0.2);
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  font-size: 1.8rem;
  color: #ff5e5e;
}

.feature-text h3 {
  margin: 0 0 0.5rem;
}

.feature-text p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Rotating Container */
.rotating-content-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.rotating-content-wrapper {
    display: flex;
    height: 100%;
    width: 300%; /* 3 slides */
    transition: transform 1.2s ease-in-out;
}

.rotating-item {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
    color: inherit;
}

/* Headings & Text */
.rotating-item h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: inherit;
}

.rotating-item p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: auto auto 30px auto;
    color: inherit;
}

/* Button Styles */
.hero-section .learn-more-button {
    background-color: #2980b9;
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.8px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(41, 128, 185, 0.4);
}

.hero-section .learn-more-button:hover {
    background-color: #216ea0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(41, 128, 185, 0.6);
}

/* Dark Mode Specific Styles for rotating content */
body.dark-mode .hero-section {
    filter: brightness(0.7); /* Adjust brightness in dark mode */
}

/* Use a CSS variable for the dynamically changing text color within the hero section */
/* This will allow JS to set the --dynamic-text-color based on the data-text-color attribute */
.hero-section h1,
.hero-section p {
    color: var(--dynamic-text-color, white); /* Default to white */
}

/* New Styles for Hero Navigation Dots */
.hero-pagination {
    position: absolute;
    bottom: 20px; /* Position below the content */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px; /* Space between dots */
    z-index: 10;
}

.hero-pagination-dot {
    width: 30px; /* Make it a line */
    height: 4px; /* Thin line */
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
    border-radius: 2px; /* Slightly rounded edges */
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease;
}

.hero-pagination-dot.active {
    background-color: #3498db; /* Blue accent for active dot */
    width: 40px; /* Slightly wider for active state */
}

/* Hero Navigation Arrows */
.hero-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: white;
    border: none;
    padding: 15px 10px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 11; /* Above dots and content */
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 5px; /* Slight rounding */
}

.hero-prev-arrow {
    left: 10px;
}

.hero-next-arrow {
    right: 10px;
}

.hero-nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1); /* Slight enlarge on hover */
}


/* Dark Mode specific styles for pagination */
body.dark-mode .hero-pagination-dot {
    background-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .hero-pagination-dot.active {
    background-color: #f39c12; /* Orange accent in dark mode */
}

body.dark-mode .hero-nav-arrow {
    background-color: rgba(0, 0, 0, 0.6);
}

body.dark-mode .hero-nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Dark Mode Toggle Button Styling */
.dark-mode-toggle {
    background-color: #34495e;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    margin-left: 20px; /* Space it out from donate button */
    transition: background-color 0.3s ease;
}

body.dark-mode .dark-mode-toggle {
    background-color: #555;
}

body.dark-mode .dark-mode-toggle:hover {
    background-color: #777;
}

.dark-mode-toggle:hover {
    background-color: #4a627a;
}

/* Photos Section */
.photos-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Increased gap */
    justify-content: center;
    padding: 40px 20px; /* Added padding */
    background-color: #f8f8f8;
}

.photos-section img {
    width: 280px; /* Slightly larger image size */
    height: 190px; /* Maintain aspect ratio */
    object-fit: cover; /* Ensures images cover their area without distortion */
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    filter: grayscale(0.2); /* Slight grayscale */
}

.photos-section img:hover {
    transform: scale(1.05); /* Zoom effect on hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* More prominent shadow on hover */
    filter: grayscale(0); /* Remove grayscale on hover */
}

/* Card Section */
.card-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width */
    gap: 30px; /* More spacing between cards */
    padding: 60px 40px; /* Generous padding */
    background-color: #ffffff;
}

.card-section .card {
    background-color: #ecf0f1; /* Light grey card background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* More noticeable shadow */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-section .card:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.card-section .card h3 {
    font-size: 1.8rem;
    color: #2c3e50; /* Dark blue-grey for headings */
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.card-section .card .card-divider {
    width: 60px;
    height: 4px;
    background-color: #3498db; /* Accent color divider */
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

.card-section .card p {
    font-size: 0.95rem;
    color: #555;
}

/* Other Section (Call to Action) */
.other-section {
    background: linear-gradient(to right, #3498db, #2980b9); /* Gradient background */
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-top: 50px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1) inset; /* Inner shadow for separation */
}

.other-section h2 {
    font-size: 2.8rem; /* Larger heading */
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.other-section h3 {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.other-section button.donate-button {
    background-color: #f39c12; /* Orange accent */
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 15px rgba(243, 156, 18, 0.4);
}

.other-section button.donate-button:hover {
    background-color: #e67e22; /* Darker orange */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.6);
}

/* Contact Form Section */
.contact-form-section {
    padding: 60px 40px;
    background-color: #f0f2f5; /* Light grey background */
    text-align: center;
}

.contact-form-section h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 40px;
    font-family: 'Montserrat', sans-serif;
}

.contact-form-section #contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-section .form-group {
    margin-bottom: 25px;
    text-align: left;
}

.contact-form-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.contact-form-section input[type="text"],
.contact-form-section input[type="email"],
.contact-form-section textarea {
    width: calc(100% - 20px); /* Account for padding */
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-section input[type="text"]:focus,
.contact-form-section input[type="email"]:focus,
.contact-form-section textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

.contact-form-section textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 120px;
}

.contact-form-section .submit-button {
    background-color: #27ae60; /* Green submit button */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.8px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.4);
}

.contact-form-section .submit-button:hover {
    background-color: #229a58;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.6);
}

/* Footer Card Section */
.last-card-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 60px 40px;
    background-color: #ebf5fb; /* Lighter blue background */
    border-top: 1px solid #e0e0e0;
}

.last-card-section .footer-card {
    background-color: #ffffff; /* White background for footer cards */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.last-card-section .footer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.last-card-section .footer-card h3 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.last-card-section .footer-card .card-divider {
    width: 50px;
    height: 3px;
    background-color: #3498db;
    margin-bottom: 20px;
    border-radius: 2px;
}

.last-card-section .footer-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.last-card-section .footer-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.last-card-section .footer-card ul li {
    margin-bottom: 10px;
    color: #555;
    font-size: 0.9rem;
    display: flex; /* For icon alignment */
    align-items: center;
}

.last-card-section .footer-card ul li i {
    margin-right: 10px;
    color: #3498db; /* Icon color */
}

.last-card-section .footer-card ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.last-card-section .footer-card ul li a:hover {
    color: #3498db;
}

.last-card-section .footer-card-address .address-separator {
    width: 100%;
    height: 1px;
    background-color: #ddd;
    margin: 20px 0;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 25px;
    border-top: 1px solid #3a3a3a;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: #3498db; /* Accent color on hover */
    transform: translateY(-3px) scale(1.1);
}

/* Dark Mode Toggle Button */
button { /* Reset default button styles for consistency */
    font-family: 'Open Sans', sans-serif;
}

/* Back to Top Button */
.back-to-top-btn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position */
    bottom: 30px; /* 30px from the bottom */
    right: 30px; /* 30px from the right */
    z-index: 99; /* High z-index to be on top */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: #3498db; /* Blue background */
    color: white; /* White text */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 50%; /* Rounded shape */
    font-size: 22px; /* Increase font size */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.2s ease;
    opacity: 0; /* Initially transparent */
}

.back-to-top-btn.show {
    opacity: 1; /* Show when 'show' class is added */
}

.back-to-top-btn:hover {
    background-color: #2980b9; /* Darker blue on hover */
    transform: translateY(-3px) scale(1.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-section {
        padding: 15px 20px;
    }
    .nav-section nav ul {
        gap: 15px;
    }
    .hero-section h1 {
        font-size: 3rem;
    }
    .hero-section p {
        font-size: 1.1rem;
    }

    /* Adjust dropdown positioning for slightly smaller screens */
    .dropdown-content {
        min-width: 180px; /* Adjust min-width for dropdown content */
    }
}

@media (max-width: 768px) {
    /* FOR MOBILE: Revert to click behavior for better UX on small screens */
    .dropdown:hover > .dropdown-content {
        opacity: 0; /* Hide on hover on mobile */
        visibility: hidden;
        transform: translateY(10px);
    }
    .dropdown:hover > .dropdown-toggle .fa-caret-down,
    .dropdown-content .dropdown:hover > .dropdown-toggle .fa-caret-right {
        transform: none; /* Reset arrow rotation on mobile hover */
    }

    .nav-section {
        flex-wrap: wrap; /* Allow items to wrap */
        justify-content: center;
        position: relative; /* For absolute positioning of toggle */
        padding-bottom: 20px;
    }

    .nav-section .logo-link {
        order: 1; /* Keep logo first */
        margin-bottom: 10px;
    }

    .nav-section button.donate-button {
        order: 3; /* Move donate button below nav for mobile */
        margin-top: 10px;
        width: 100%; /* Full width button */
    }

    .nav-section nav {
        order: 2; /* Nav comes after logo */
        width: 100%;
        text-align: left; /* Align text to left for mobile menu */
        background-color: #2c3e50; /* Ensure background matches */
        position: static; /* No longer absolute to avoid being covered */
    }

    .nav-section nav ul {
        flex-direction: column;
        display: none; /* Hidden by default on small screens */
        width: 100%;
        padding: 10px 0;
    }

    .nav-section nav ul.nav-open {
        display: flex; /* Show when open */
    }

    .nav-section nav li {
        width: 100%; /* Full width list items */
    }

    .nav-section nav a {
        padding: 10px 15px; /* Padding for mobile links */
        display: block; /* Make links full width */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Separator */
    }

    .nav-section nav li:last-child > a { /* For last main nav item without dropdown */
        border-bottom: none;
    }

    /* Mobile Dropdown Spacing */
    .dropdown-content {
        position: static; /* Remove absolute positioning for mobile */
        width: 100%; /* Full width for mobile dropdowns */
        box-shadow: none; /* No shadow for mobile dropdowns */
        border-radius: 0;
        transform: translateY(0); /* Remove transform */
        visibility: visible; /* Always visible if parent is active */
        opacity: 1; /* Always opaque if parent is active */
        background-color: #34495e; /* Slightly different background for sub-menus */
        padding-left: 20px; /* Indent sub-items */
    }

    .sub-dropdown {
        left: 0; /* Stack vertically for sub-dropdowns too */
        top: auto;
        margin-left: 0;
        padding-left: 20px; /* Further indent */
    }

    /* Hero section adjustments for smaller screens */
    .hero-section {
        padding: 60px 15px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .photos-section {
        padding: 20px 10px;
        gap: 10px;
    }

    .photos-section img {
        width: 48%; /* Two images per row */
        height: auto; /* Auto height for responsiveness */
    }

    .card-section {
        padding: 40px 20px;
        gap: 20px;
    }

    .contact-form-section,
    .last-card-section {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .nav-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-section .logo-link {
        margin-bottom: 15px;
    }

    .nav-section nav ul {
        padding-top: 0;
    }

    .nav-section button.donate-button {
        width: auto; /* Reset width for small screens if needed */
        align-self: center; /* Center button */
    }

    .photos-section img {
        width: 100%; /* One image per row */
    }

    .hero-section h1 {
        font-size: 2rem;
    }
}