/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #fffdfd;
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 20px;
}

.navbar .container {
    display: flex;
    max-width: 1600px;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 24px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 10px;
}

/* Navbar Links with Moving Underline */
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    position: relative; /* Necessary for the ::after pseudo-element */
    display: inline-block;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff; /* Underline color */
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #011a75; /* Changes text color on hover */
}

.nav-links a:hover::after {
    width: 100%; /* Expands the underline on hover */
}


.nav-links a:hover,
.nav-links .donate-btn:hover {
    color: #067ebf;
}

.donate-btn {
    background-color: #067ebf; /* Button background color */
    color: #333; /* Text color */
    padding: 5px 30px; /* Padding for appropriate button size */
    border-radius: 5px; /* Rounded corners */
    font-size: 16px; /* Font size */
    
    
    text-align: center; /* Center the text */
    text-decoration: none; /* Remove underline */
    border: 2px solid transparent; /* Border */
    transition: all 0.3s ease-in-out; /* Smooth transition */
}

.donate-btn:hover {
    background-color: white; /* Change background on hover */
    color: #067ebf; /* Change text color on hover */
    border-color: #067ebf; /* Add border on hover */
}

/* Mobile Navigation Styles */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    position: absolute;
    right: 20px;
    top: 20px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
    transition: 0.4s;
}

/* X transformation classes */
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
    }

    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        width: 100%;
        position: absolute;
        top: 95px;
        right: -90%;      /* Changed to match width */
        height: 65vh;
        background-color: #080808;
        display: flex;
        flex-direction: column;
        padding: 20px 0;
        gap: 3px;
        transition: right 0.3s ease-in-out, opacity 0.3s ease-in-out;
        opacity: 0;       /* Start fully transparent */
        visibility: hidden;
    }

    .nav-links.active {
        right: 0;
        opacity: 0.85;
        visibility: visible;
    }

    .nav-links li {
        margin: 5px 10px;
        text-align: center;
    }

    .nav-links a {
        padding: 10px 20px;
        margin: 0;
        text-align: center;
        font-size: 15px;  /* Restored from original */
    }

    .donate-btn {
        margin: 15px 20px;
    }
}

/* Carousel */
.carousel {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-item {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(30%); /* Adjusted for a stronger fade effect */
    opacity: 0.8; /* Additional transparency for a more faded appearance */
}

.carousel-caption {
    position: absolute;
    bottom: 50px;
    left: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
    animation: fadeIn 1s ease-in-out;
}

.carousel-caption h1 {
    font-size: 36px;
}

.carousel-caption p {
    font-size: 18px;
}


/* About Section */
.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 20px;
    background-color: #e8f4f8;
}

.about-image {
    width: 40%;
    border-radius: 10px;
}

.about-content {
    width: 55%;
    background: #067ebf;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    color: #ffffff;
    margin-bottom: 15px;
}

.about-content p {
    line-height: 1.5;
}

/* Footer Styles */
.footer {
    background-color: #067ebf;
    color: white;
    padding: 10px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    text-align: center;
    width: 100%;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

/* Link Sections */
.popular-links,
.useful-links,
.contact-info {
    width: 33%;
}

.popular-links h3,
.useful-links h3,
.contact-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ffffff;
}

.popular-links ul,
.useful-links ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 10px;
}

.popular-links ul li,
.useful-links ul li {
    margin-bottom: 5px;
}

.popular-links ul li a,
.useful-links ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-links ul li a:hover {
    color: #011a75;
}

.useful-links ul li a:hover {
    color: #073dff;
}

/* Contact Info */
.contact-info {
    padding: 20px;
    text-align: left;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info i {
    margin-right: 20px;
}

/* Social Icons */
.social-icons-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
}

.social-icon-box {
    background-color: #25affa;
    padding: 10px;
    border: 2px solid #073dff;
    border-radius: 5px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.social-icon-box a {
    color: white;
    font-size: 20px;
    text-decoration: none;
}

.social-icon-box:hover {
    background-color: #62b3ff;
}

.social-icon-box a:hover {
    color: #00343f;
}

/* Logo */
.logo-img {
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

.navbar .logo {
    display: flex;
    align-items: center;
}

/* Passport Image Section */
.passport-image-section {
    text-align: center;
    margin-right: 20px;
}

.passport-image {
    width: 100px;
    height: 130px;
    border-radius: 5px;
    margin-bottom: 10px;
    border: 2px solid #ffffff;
    object-fit: cover;
}

.helping-quotes {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 5px;
    font-style: italic;
}

/* Tablet Styles */
@media screen and (max-width: 768px) {
    .footer-container {
        padding: 15px;
    }
    
    .popular-links h3,
    .useful-links h3,
    .contact-info h3 {
        font-size: 16px;
    }

    .social-icon-box {
        width: 40px;
        height: 40px;
    }

    .social-icon-box a {
        font-size: 18px;
    }

    .passport-image {
        width: 80px;
        height: 104px;
    }
}

/* Mobile Styles */
@media screen and (max-width: 480px) {
    .footer-container {
        flex-direction: column;
        padding: 10px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .popular-links,
    .useful-links,
    .contact-info {
        width: 100%;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .contact-info {
        text-align: center;
    }

    .social-icons-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .social-icon-box {
        width: 35px;
        height: 35px;
    }

    .social-icon-box a {
        font-size: 16px;
    }

    .passport-image-section {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .passport-image {
        width: 70px;
        height: 91px;
    }

    .helping-quotes {
        font-size: 12px;
    }

    .logo-img {
        height: 30px;
    }
}
footer {
  background-color: #5c5b5b; /* Fire Orange */
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 16px;
}

footer a {
  color: #31adec /* Contrast color for links */
  
  
}

footer a:hover {
  text-decoration: underline;
}
/* Small Mobile Styles */
@media screen and (max-width: 320px) {
    .footer-container {
        padding: 5px;
    }

    .popular-links h3,
    .useful-links h3,
    .contact-info h3 {
        font-size: 14px;
    }

    .social-icon-box {
        width: 30px;
        height: 30px;
    }

    .social-icon-box a {
        font-size: 14px;
    }
}    





/* Logo Styling */
.logo-img {
    height: 40px; 
    margin-right: 10px; 
    vertical-align: middle; 
}

/* Navbar Styling */
.navbar .logo {
    display: flex;
    align-items: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 20;
    }
    to {
        opacity: -20;
    }
}



/* Passport Image Section */
.passport-image-section {
    text-align: center;
    margin-right: 20px; /* Adjust spacing from Useful Links */
}

.passport-image {
    width: 100px; /* Size for passport image */
    height: 130px;
    border-radius: 5px;
    margin-bottom: 10px; /* Space below image */
    border: 2px solid #ffffff;
    object-fit: cover;
}

/* Helping Quotes */
.helping-quotes {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 5px; /* Space between quotes */
    font-style: italic;
}