/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrolling */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styles */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 0; /* Remove gap below the header */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo and Text Alignment */
.logo-and-text {
    display: flex;
    align-items: center; /* Align logo and text vertically */
    gap: 1rem; /* Space between logo and text */
}

.logo img {
    height: 70px; /* Slightly larger logo */
    width: auto; /* Maintain aspect ratio */
}

.logo-text {
    font-family: 'Roboto', Arial, sans-serif; /* Roboto or fallback */
    font-size: 70px; /* Font size */
    font-weight: bold; /* Make the text bold */
    color: #679EC8; /* Custom color */
    line-height: 1.2; /* Improve readability */
    white-space: nowrap; /* Prevent text wrapping */
}

/* Navigation Menu */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
}

    .main-nav ul li {
        position: relative; /* Required for positioning the drop-down menu */
    }

        .main-nav ul li a {
            text-decoration: none; /* Remove underline by default */
            color: #333;
            font-size: 1rem;
            padding: 0.5rem 1rem;
            display: block;
        }

            .main-nav ul li a:hover {
                color: #007BFF;
            }

/* Hero Section */
.hero-section {
    background-image: url('/background.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-color: #333;
    color: #fff;
    padding: 4rem 0; /* Reduced padding to reduce gap */
    position: relative;
    min-height: 450px; /* Reduced height to reduce gap */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    text-align: center; /* Ensure text inside is centered */
}

.title-container {
    margin-bottom: 1rem; /* Reduced spacing between title and banner */
}

.hero-section h1 {
    font-size: 2rem; /* Reduced font size */
    margin: 0; /* Remove default margins for better alignment */
}

.scrolling-banner {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    height: 3rem;
    margin-bottom: 1rem; /* Reduced spacing */
    position: relative;
}

.banner-container {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-horizontal 60s linear infinite; /* Slower scrolling speed */
}

.banner-text {
    font-size: 1.5rem; /* Reduced font size */
    font-weight: bold;
    color: #fff; /* Text color changed to white */
    display: inline-block;
    padding: 0 1rem; /* Add spacing between phrases */
}

/* Animation for horizontal scrolling */
@keyframes scroll-horizontal {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.scrolling-banner:hover .banner-container {
    animation-play-state: paused; /* Pause animation on hover */
}

/* About Section */
.about-section {
    padding: 2rem 0; /* Reduced padding */
    text-align: center;
    background-color: #f9f9f9; /* Light background for contrast */
}

    .about-section h2 {
        font-size: 2rem; /* Reduced font size */
        margin-bottom: 1rem;
    }

    .about-section p {
        font-size: 1rem; /* Reduced font size */
        margin-bottom: 1rem;
        color: #555;
    }

/* Cards Container */
.cards-container {
    display: flex; /* Use Flexbox for horizontal layout */
    justify-content: space-between; /* Distribute cards evenly across the screen */
    gap: 1rem; /* Decreased gap between cards */
    margin-top: 0; /* Removed top margin */
    padding: 0 1rem; /* Add padding to align with screen edges */
    overflow: hidden; /* Hide any overflow if content exceeds container width */
    flex-wrap: wrap; /* Allow cards to wrap to the next line on smaller screens */
}

.card {
    flex: 1 1 calc(16.66% - 1rem); /* Allow cards to grow/shrink based on available space */
    max-width: calc(16.66% - 1rem); /* Limit the maximum width for each card */
    background-color: #fff;
    padding: 1rem; /* Reduced padding for spacing inside the card */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    text-align: center; /* Center all content inside the card */
    transition: transform 0.3s ease; /* Smooth transition for hover effects */
}

    .card:hover {
        transform: translateY(-5px); /* Slight lift effect on hover */
    }

    .card h3 {
        font-size: 1rem; /* Reduced font size for headings */
        margin-bottom: 0.5rem;
        white-space: nowrap; /* Prevent headings from wrapping */
        color: #007BFF; /* Blue color for the heading text */
        font-weight: bold; /* Make the heading bold */
        cursor: pointer; /* Show pointer cursor */
        transition: color 0.3s ease; /* Smooth color transition on hover */
    }

        .card h3 a {
            text-decoration: none; /* Remove underline by default */
            color: inherit; /* Inherit the blue color from the parent h3 */
            font-weight: inherit; /* Inherit the bold font weight */
            cursor: pointer; /* Show pointer cursor */
            transition: color 0.3s ease; /* Smooth color transition on hover */
        }

            .card h3 a:hover {
                color: #0056b3; /* Darker blue on hover */
                text-decoration: underline; /* Add underline on hover */
            }

    .card p {
        font-size: 0.8rem; /* Further reduced font size for descriptions */
        line-height: 1.4;
        color: #666;
    }

/* Footer Styles */
.site-footer {
    text-align: center;
    padding: 2rem 0;
    background-color: #333;
    color: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.5rem;
}

    .social-links a:hover {
        text-decoration: underline;
    }

.copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Custom Button Styles */
.custom-button {
    font-size: 0.9em;
    padding: 5px 15px;
    border-radius: 20px; /* Rounded corners */
    background-color: #e3f2fd; /* Light blue background */
    border: 1px solid #b3d4fc; /* Subtle border */
    color: #0d6efd; /* Blue text color */
    transition: all 0.3s ease; /* Smooth hover effect */
    cursor: pointer; /* Pointer cursor on hover */
}

    .custom-button:hover {
        background-color: #bbdefb; /* Slightly darker blue on hover */
        border-color: #90caf9; /* Slightly darker border on hover */
    }

/* Form Styles */
.case-container {
    max-width: 700px; /* Increased width */
    margin: 20px auto; /* Reduced top/bottom margin */
    padding: 15px; /* Reduced padding */
    border: 1px solid #e0e0e0; /* Softer border */
    border-radius: 8px; /* Rounded corners */
    background-color: #ffffff; /* White background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* Common system fonts */
}

    .case-container h4 {
        text-align: center;
        color: #333;
        margin-top: 5px; /* Reduced space above heading */
        margin-bottom: 5px; /* Reduced space below heading */
        font-size: 1rem; /* Further reduced font size */
        font-weight: 500; /* Slightly lighter than bold */
    }

.form-group {
    display: flex; /* Use Flexbox for inline layout */
    align-items: center; /* Align label and input vertically */
    margin-bottom: 8px; /* Reduced space between form groups */
}

    .form-group label {
        flex: 0 0 200px; /* Fixed width for labels */
        margin-right: 15px; /* Space between label and input */
        color: #555;
        font-size: 0.8rem; /* Reduced font size */
        font-weight: 500;
        text-align: right; /* Align label text to the right */
        white-space: nowrap; /* Prevent label text from wrapping */
        overflow: hidden; /* Hide overflow if text is too long */
        text-overflow: ellipsis; /* Add ellipsis if text overflows */
    }

    .form-group input[type="email"],
    .form-group input[type="text"],
    .form-group textarea,
    .form-group select {
        flex: 1; /* Allow inputs to take up remaining space */
        padding: 6px; /* Reduced padding inside input */
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box; /* Include padding and border in the element's total width */
        font-size: 0.85rem; /* Reduced font size */
        height: 30px; /* Fixed height for inputs */
    }

    .form-group textarea {
        resize: vertical; /* Allow vertical resizing */
        min-height: 50px; /* Further reduced minimum height for the textarea */
        height: auto; /* Allow dynamic height */
    }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            border-color: #007bff; /* Highlight on focus */
            outline: none; /* Remove default outline */
            box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25); /* Subtle focus shadow */
        }

.button-row {
    display: flex;
    justify-content: space-between; /* Align buttons to opposite sides */
    margin-top: 8px; /* Reduced space above the buttons */
}

.submit-button,
.cancel-button {
    padding: 6px 12px; /* Smaller button size */
    font-size: 0.85rem; /* Reduced font size */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease; /* Smooth hover effect */
}

.submit-button {
    background-color: #007bff; /* Example primary color (blue) */
    color: white;
}

    .submit-button:hover {
        background-color: #0056b3; /* Darker shade on hover */
    }

.cancel-button {
    background-color: #ccc; /* Light gray */
    color: black;
    text-decoration: none; /* Remove underline */
}

    .cancel-button:hover {
        background-color: #aaa; /* Darker gray on hover */
    }

/* Error message styling */
.error-message {
    color: #dc3545; /* Red color for errors */
    font-size: 0.8rem; /* Reduced font size */
    margin-top: 5px; /* Reduced space above the error message */
    text-align: left;
}
