/* Universal Box-Sizing for better layout predictability */
* {
    box-sizing: border-box; /* This is crucial. Padding and border are included in the element's total width and height. */
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif; /* Fallback to Arial if Segoe UI isn't loaded */
    line-height: 1.6; /* Improve readability */
    color: #333; /* Default text color */
}

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens if necessary */
    padding: 10px 30px; /* Slightly adjusted padding */
    border-bottom: 1px solid #e0e0e0; /* Lighter border */
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    position: sticky; /* Makes header sticky on scroll */
    top: 0;
    z-index: 1000; /* Ensures header stays on top */
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex; /* Makes the whole logo area a flex container */
    align-items: center;
    text-decoration: none; /* Remove underline from logo link */
    color: inherit; /* Inherit color from parent */
}

.logo img {
    height: 60px;
    margin-right: 15px; /* Slightly reduced margin */
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1; /* Adjusted line-height for better text alignment */
}

.logo-text {
    font-size: 25px;
    font-weight: bold;
    color: #1e407c;
    white-space: nowrap; /* Prevent "UNITY" from breaking */
}

.logo-subtext {
    font-size: 14px;
    margin-top: 5px; /* Adjusted margin */
    color: #1e407c;
    white-space: nowrap; /* Prevent subtext from breaking */
}

.logo-subtext .next {
    color: #ed1c64;
}

/* --- Main Navigation --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px; /* Consistent gap between items */
    flex-wrap: wrap; /* Allows nav items to wrap */
}

.main-nav a,
.dropbtn {
    font-size: 18px; /* Slightly adjusted font size */
    font-weight: 500;
    color: #4A4A4A;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 15px; /* Increased padding for better touch targets */
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav a:hover,
.dropbtn:hover {
    background-color: #f0f0f0; /* Lighter hover background */
    color: #1e407c; /* Change text color on hover for visual feedback */
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 5px); /* Add a small gap below the button */
    left: 0;
    background-color: #fff;
    min-width: 200px; /* Increased min-width for dropdown content */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Stronger shadow for depth */
    z-index: 1000;
    border-radius: 5px; /* Rounded corners for dropdown */
    overflow: hidden; /* Ensures child elements respect border-radius */
}

.dropdown-content a {
    padding: 12px 20px; /* Consistent padding */
    font-size: 15px;
    display: block;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #e9e9e9; /* Lighter hover background for dropdown items */
    color: #1e407c;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content { /* Show dropdown on hover (PC) and on click (mobile) */
    display: block;
}

.search-icon {
    width: 24px; /* Slightly adjusted size */
    height: 24px;
    cursor: pointer;
    margin-left: 10px; /* Add some space */
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none; /* Hidden by default for PC */
    font-size: 30px; /* Larger icon */
    background: none;
    border: none;
    cursor: pointer;
    color: #1e407c; /* Color the hamburger icon */
    padding: 5px 10px;
}

/* --- Banner Section --- */
.banner {
    width: 100%;
    height: 70vh; /* Responsive height, adapts to viewport height */
    max-height: 600px; /* Optional: Set a max-height to prevent it from becoming too tall on very large screens */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner picture,
.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, cropping if necessary */
    display: block;
}

/* --- Showcase / Logo Marquee Section --- */
.logo-marquee {
    padding-top: 0px;
    overflow: hidden; /* Crucial for marquee effect */
    background-color: #f8f8f8; /* Lighter background */
    padding: 4rem 2rem; /* More generous padding */
    width: 100%; /* Take full width */
    max-width: 1400px; /* Optional: Max width for content */
    margin: 40px auto; /* Add margin top/bottom */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.logo-marquee .heading {
    margin-top: -40px;
    font-size: 2.2rem; /* Larger heading */
    text-align: center;
    margin-bottom: 2.0rem; /* More space below heading */
    color: #1e407c;
}

.logo-track {
    display: flex; /* Use flex for the track */
    white-space: nowrap; /* Keep items in a single line */
    animation: scrollLeft 30s linear infinite; /* Animation defined below */
    gap: 3rem; /* Spacing between logo items */
    padding: 0 1rem; /* Padding to ensure items don't start/end abruptly */
}

.logo-item {
    flex: 0 0 auto; /* Prevent items from shrinking or growing */
    width: 280px; /* Fixed width for each item, adjust as needed */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Clearer shadow */
    overflow: hidden;
    display: flex; /* Make logo item a flex container */
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem; /* More padding inside the item */
    transition: transform 0.3s ease-in-out; /* Smooth hover effect */
}

.logo-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
}

.logo-img {
    width: 100%;
    height: 100px; /* Fixed height for consistent image display */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem; /* Space below image */
}

.logo-img img {
    max-width: 90%; /* Max width within the image container */
    max-height: 90%; /* Max height within the image container */
    object-fit: contain; /* Ensures entire logo is visible */
}

.logo-text {
    width: 100%; /* Ensure text takes full width of its parent */
    padding: 0; /* Remove existing padding that might cause issues */
    text-align: left; /* Align text within the item */
    flex-grow: 1; /* Allow text content to take available vertical space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align text to the top */
}

.logo-text h3 {
    font-size: 1.1rem; /* Adjusted font size */
    margin: 0 0 0.5rem 0; /* Adjusted margin */
    color: #1e407c;
    text-align: center; /* Center align heading */
}

.logo-text p {
    font-size: 0.85rem; /* Slightly smaller font size for body text */
    line-height: 1.5;
    color: #555; /* Darker gray for better readability */
    margin: 0;
    white-space: normal; /* Allow text to wrap naturally */
    overflow-wrap: break-word; /* Ensure long words break */
    text-align: center; /* Center align paragraph */
}

/* Marquee Animation */
@keyframes scrollLeft {
    0% {
        transform: translateX(0%);
    }
    100% {
        /* Move half the total width of the *duplicated* content to create seamless loop */
        transform: translateX(-50%);
    }
}


/* --- Placement Partners Section (Clients) --- */
.placement-partners {
    text-align: center;
    padding: 20px 0px; /* More padding */
    background-color: #f0f4f8; /* Light blueish background */
    margin-bottom: 40px; /* Space below this section */
}

.placement-partners h2 {
    font-size: 32px; /* Larger heading */
    margin-top: 0px;
    margin-bottom: 25px; /* More space below heading */
    position: relative;
    display: inline-block;
    color: #1e407c; /* Darker blue color */
}

.placement-partners h2::after {
    content: "";
    display: block;
    width: 118%; /* Line stretches full width of heading text */
    max-width: 400px; /* Max width for the underline */
    padding: auto;
    height: 3px;
    background-color: #f68013;
    margin: 0px auto 0;
    margin-left: -18px; /* Shift line 10px to the left */
}




.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Increased gap between logos */
    max-width: 1400px; /* Max width for the logo grid */
    margin: 0 auto;
}

.partners-logos img {
    max-width: 250px; /* Smaller max-width for individual logos */
    max-height: 150px; /* Smaller max-height for individual logos */
    object-fit: contain;
    padding: 15px; /* More padding inside logo box */
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Clearer shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}



/* Universal Box-Sizing for better layout predictability */
* {
  box-sizing: border-box; /* This is crucial. Padding and border are included in the element's total width and height. */
}

.contact-section {
  background: linear-gradient(135deg, #1f034f, #b54bb2);
  color: #fff;
  padding: 80px 20px; /* Use horizontal padding that is flexible */
  font-family: 'Segoe UI', sans-serif;
}

.contact-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 50px; /* Keep this gap, flex-wrap will handle it on small screens */
  align-items: flex-start;
  justify-content: center; /* Changed to center to balance items if gap causes issues */
}

.contact-text {
  flex: 1 1 45%; /* Allows it to grow/shrink, prefers 45% */
  min-width: 280px; /* Ensures it doesn't get too small before wrapping */
  /* Added padding to prevent text from touching screen edges on very small devices */
  padding: 0 15px; 
}

.contact-text h2 {
  font-size: 32px;
  color: #ff6584;
  margin-bottom: 15px;
  padding-top: 100px;
}

.contact-text span {
  color: #fff;
}

.contact-text p {
  font-size: 16px;
  line-height: 1.6;
}

.contact-form-box {
  flex: 1 1 350px; /* Changed flex-basis to a fixed min-width for the form. 
                     This makes it less prone to overflowing than a percentage on narrow screens.
                     It will still grow if space is available due to flex: 1. */
  max-width: 500px; /* Optional: Prevent form from becoming too wide on very large screens */
  background: linear-gradient(to bottom, #ff77aa33, #1e003399);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #fff;
}

.contact-form-box {
  display: flex;
  flex-direction: column;
  align-items: center; /* This will center child items like h3 */
}

.contact-form-box h3 {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
  width: 200px; /* Keep fixed width for the underline effect */
  border-bottom: 2px solid #fff;
  padding-bottom: 10px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%; /* Ensure the form itself takes full width within its box */
}

.contact-form .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap; /* Allows inputs in the row to wrap if space is tight */
  width: 100%; /* Ensure the row takes full width */
}

.contact-form .row input {
  flex: 1 1 0; /* Allows inputs to shrink to 0 if needed, but grow equally */
  min-width: 120px; /* Prevents inputs from becoming too narrow on wrap */
}

.contact-form input,
.contact-form textarea {
  width: 100%; /* This now works correctly due to box-sizing: border-box */
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #eee;
}

.contact-form .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  width: 100%; /* Ensure checkbox line doesn't overflow */
}

.contact-form .checkbox input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0; /* Prevent checkbox from shrinking */
  width: 16px;
  height: 16px;
}

.contact-form .checkbox a {
  color: #00cfff;
  text-decoration: underline;
  word-break: break-word; /* Allows long words to break to prevent overflow */
}

.submit-button-container {
  text-align: center;
  margin-top: 10px;
  width: 100%; /* Ensure button container takes full width */
}

button[type="submit"] {
  background-color: transparent;
  color: #f8207a;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border: 2px solid #f8207a;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  max-width: 100%; /* Ensure button doesn't overflow if text is too long */
}

button[type="submit"]:hover {
  background-color: #f8207a;
  color: white;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
    gap: 30px; /* Slightly reduced gap for smaller screens */
  }

  .contact-text,
  .contact-form-box {
    width: 100%; /* Take full width on smaller screens */
    flex: none; /* Remove flex properties here to rely on width: 100% */
  }

  /* Adjust padding for the contact form box on smaller screens if desired */
  .contact-form-box {
      padding: 20px; /* Slightly less padding on smaller screens */
  }

  .contact-text {
      padding: 0 20px; /* More generous horizontal padding for text */
  }

  .contact-form .row {
      flex-direction: column; /* Stack first and last name inputs */
  }

  .contact-form .row input {
      min-width: unset; /* Remove min-width when stacking inputs */
  }
}

/* Optional: Even smaller screen adjustments for extreme cases */
@media screen and (max-width: 480px) {
    .contact-section {
        padding: 40px 15px; /* Reduce overall padding on very small screens */
    }
    .contact-form-box {
        padding: 15px; /* Even less padding */
    }
    .contact-form-box h3 {
        width: 150px; /* Smaller underline for heading */
        font-size: 20px;
    }
    .contact-form .checkbox {
        font-size: 13px; /* Smaller font for checkboxes */
    }
}


/* --- Footer --- */
.footer {
    background-color: #1d4c87;
    color: #fff;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

.footer-logo {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #8ab5e2;
    margin-bottom: 20px; /* Add margin below logo */
}

.footer-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.footer-logo img {
    height: 60px;
    margin-right: 15px;
}

.footer-company-name {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Distributes columns evenly */
    padding: 20px 100px 50px 100px; /* Adjusted padding */
    border-bottom: 1px solid #8ab5e2;
    align-items: flex-start;
}

.footer-column {
    flex: 1;
    min-width: 180px; /* Increased min-width for columns */
    margin: 10px 15px;
}

.footer-column h3 {
    font-size: 18px; /* Consistent font size for headings */
    margin-bottom: 18px; /* Slightly more space below heading */
    color: #ffcc00; /* Highlight column headings */
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px; /* More space between list items */
}

.footer-column ul li a {
    color: #d3e6ff;
    text-decoration: none;
    font-size: 14px; /* Slightly larger font size for links */
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    text-decoration: underline;
    color: #fff; /* White on hover */
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px; /* Increased padding */
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px; /* Consistent font size */
    color: #cce3ff;
}

.footer-bottom a {
    color: #a7d0ff;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 15px; /* Space between icons */
}

.social-icons a {
    display: inline-block;
}

.social-icons img {
    width: 28px; /* Slightly larger icons */
    height: 28px;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1); /* Pop effect on hover */
}

/* --- Responsive Adjustments --- */

/* Tablet and Smaller Desktops */
@media (max-width: 992px) {
    header {
        padding: 10px 20px;
    }

    .main-nav {
        gap: 15px;
    }

    .main-nav a,
    .dropbtn {
        padding: 8px 12px;
        font-size: 16px;
    }

    .footer-top {
        padding: 20px 50px;
    }

    .footer-bar {
        padding: 15px 50px;
    }

    .contact-section {
        padding: 60px 15px; /* Adjust padding for smaller screens */
    }

    .contact-text h2 {
        font-size: 34px;
    }

    .contact-form-box {
        padding: 30px;
    }

    .logo-marquee {
        padding: 3rem 1.5rem;
    }

    .logo-item {
        width: 250px; /* Slightly smaller items */
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    header {
        flex-direction: row; /* Keep logo and hamburger on same row */
        justify-content: space-between; /* Space between logo and hamburger */
        align-items: center;
        padding: 15px 20px;
    }

    .logo-text-group {
        align-items: flex-start; /* Ensure text aligns left with logo */
    }

    .hamburger {
        display: block; /* Show hamburger icon */
    }

    .main-nav {
        display: none; /* Hide navigation by default */
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        position: absolute;
        top: 80px; /* Position below header */
        left: 0;
        padding: 20px;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        z-index: 999; /* Below header sticky z-index */
        border-top: 1px solid #eee;
    }

    .main-nav.active {
        display: flex; /* Show navigation when active */
    }

    .main-nav a,
    .dropbtn {
        width: 100%; /* Full width for menu items */
        text-align: left; /* Align text to left */
        padding: 12px 15px; /* Larger touch targets */
    }

    .dropdown-content {
        position: static; /* Dropdowns are inline when menu is active */
        box-shadow: none;
        width: 100%;
        padding-left: 20px; /* Indent dropdown items */
        background-color: #f9f9f9; /* Lighter background for nested items */
        border-radius: 0;
    }

    .dropdown-content a {
        padding: 10px 15px; /* Adjusted padding for nested items */
    }

    /* Hide dropdown content by default on mobile until dropdown is "active" */
    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .search {
        display: none; /* Hide search icon on mobile for simplicity, or implement a mobile-specific search */
    }

    .banner {
        height: 50vh; /* Shorter banner on mobile */
    }

    .logo-marquee {
        padding: 2rem 1rem;
        margin: 20px auto;
    }

    .logo-track {
        animation-duration: 20s; /* Faster scroll for less content */
        gap: 2rem;
    }

    .logo-item {
        width: 200px; /* Smaller width for mobile items */
    }

    .logo-text h3 {
        font-size: 1rem;
    }

    .logo-text p {
        font-size: 0.8rem;
    }

    .placement-partners {
        padding: 40px 15px;
    }

    .placement-partners h2 {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .placement-partners h2::after {
        max-width: 250px; /* Shorter underline */
    }

    .partners-logos img {
        max-width: 150px;
        max-height: 60px;
        padding: 10px;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .contact-text,
    .contact-form-box {
        width: 100%;
        flex: none;
    }

    .contact-form-box {
        padding: 25px;
    }

    .contact-text h2 {
        font-size: 28px;
        margin-bottom: 15px;
        text-align: center;
    }

    .contact-text p {
        font-size: 15px;
        text-align: center;
    }

    .contact-form .row {
        flex-direction: column;
        gap: 10px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px;
        font-size: 15px;
    }

    .contact-form .checkbox {
        font-size: 13px;
        line-height: 1.4;
    }

    button[type="submit"] {
        font-size: 15px;
        padding: 12px 25px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .footer-column {
        min-width: auto;
        width: 100%;
        margin: 10px 0;
    }

    .footer-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
        align-items: center;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
        width: 100%;
    }
}

/* Very Small Mobile Devices (e.g., iPhone SE) */
@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }

    .logo-text {
        font-size: 22px;
    }

    .logo-subtext {
        font-size: 12px;
    }

    .main-nav a,
    .dropbtn {
        font-size: 15px;
        padding: 10px 15px;
    }

    .dropdown-content {
        padding-left: 10px;
    }

    .banner {
        height: 40vh;
    }

    .logo-marquee .heading {
        font-size: 1.8rem;
    }

    .logo-item {
        width: 180px; /* Even smaller width */
        padding: 1rem;
    }

    .logo-img {
        height: 80px;
    }

    .logo-text h3 {
        font-size: 0.95rem;
    }

    .logo-text p {
        font-size: 0.75rem;
    }

    .placement-partners h2 {
        font-size: 22px;
    }

    .partners-logos img {
        max-width: 120px;
        max-height: 50px;
        padding: 8px;
    }

    .contact-section {
        padding: 30px 10px;
    }

    .contact-text h2 {
        font-size: 24px;
    }

    .contact-form-box {
        padding: 20px;
    }

    .contact-form-box h3 {
        font-size: 22px;
        width: 180px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px;
        font-size: 14px;
    }

    .contact-form .checkbox {
        font-size: 12px;
    }

    button[type="submit"] {
        font-size: 14px;
        padding: 10px 20px;
    }

    .footer-column h3 {
        font-size: 16px;
    }

    .footer-column ul li a {
        font-size: 13px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .social-icons img {
        width: 24px;
        height: 24px;
    }
}