/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: #34495e;
}

nav ul li a.active {
    background-color: #3498db;
}

main {
    padding: 6rem 2rem 2rem;
    min-height: 100vh;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
}

/* Section Styles */
.section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section.active-section {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Background images for each section */
#home {
    background-image: url('Images/Background_7.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#about {
    background-image: url('Images/Background_8.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#services {
    background-image: url('Images/Marketing_1.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#loans {
    background-image: url('Images/loan_1.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#contact {
    background-image: url('Images/About_1.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Home Section Styles */
.hero {
    text-align: center;
    padding: 3rem 0;
    background-color: rgba(52, 152, 219, 0.8);
    color: white;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.sliding-text {
    white-space: nowrap;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    animation: slideRightToLeft 15s linear infinite;
}

@keyframes slideRightToleft {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translate(-100%);
    }
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

#cta-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#cta-button:hover {
    background-color: #c0392b;
}

.image-gallery {
    text-align: center;
    margin-top: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 10px;
}

.gallery-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.gallery-container img {
    width: 30%;
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.gallery-container img:hover {
    transform: scale(1.05);
}

#add-image-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#add-image-btn:hover {
    background-color: #27ae60;
}

/* About Section Styles */
.about-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 10px;
}

.about-section h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.about-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-section img {
    width: 100%;
    max-width: 600px;
    margin: 1rem 0;
    border-radius: 5px;
}

/* Services Section Styles */
.services-section {
    max-width: 1000px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 10px;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.service-card {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: #3498db;
    margin-bottom: 0.5rem;
}

/* Loan Section Styles */
.Loans-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 10px;
}

.Loans-section h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.Loans-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Gallery Heading */
.image-gallery h2 {
    text-align: center;
    color: #34495e;
    margin: 2rem 0 1rem;
}

/* Gallery Layout */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 10px;
}

.gallery-container img {
    width: 250px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-container img:hover {
    transform: scale(1.05);
}

/* Gallery Paragraph */
.image-gallery p {
    max-width: 900px;
    margin: 2rem auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    text-align: center;
}

/* Contact Section Styles */
.contact-section {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    resize: vertical;
}

button[type="submit"] {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #2980b9;
}

#confirmation-message {
    text-align: center;
    padding: 1rem;
    background-color: #d4edda;
    color: #155724;
    border-radius: 5px;
    margin-top: 1rem;
}