/* Global styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Top Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    padding: 10px 20px;
    color: #fff;
}

/* Graduate School Admissions Box */
.hero-text {
    position: absolute;
    top: 95%; /* Keep this to control how much the box overlaps the image */
    left: 50%;
    transform: translateX(-5%) scale(0.8); /* Adjust translateX for horizontal movement, scale for resizing */
    background-color: #5c0008;
    color: #fff;
    padding: 10px 20px; /* Reduced padding for a closer fit */
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: bold;
    z-index: 10; /* Ensure the box is on top */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: -50px; /* Add negative margin to overlap the next section */
    max-width: 840px; /* Optional: set a max-width if needed */
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 600px; /* Set this to the actual height of your hero image */
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Intro Text Section */
.intro-text {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
    margin-top: 0; /* Remove any margins that push the section down */
}


/* Add margin to the section below to ensure it doesn't overlap */
.intro-text {
    margin-top: 100px; /* Adjust this value to make room for the red box */
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

.hero {
    position: relative; /* This ensures the hero image is the reference for positioning the box */
}

.header-logo img {
    height: 50px;
}

.gateways a {
    color: #fff;
    margin-right: 15px;
    text-decoration: none;
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 5px;
    font-size: 14px;
}

.search-bar button {
    background-color: #444;
    color: #fff;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
}

/* Navigation Bar */
.navbar {
    background-color: #5c0008;
    padding: 10px 0;
    text-align: center;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
}

.navbar ul li a:hover {
    color: #fffc; /* Accent color on hover */
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 600px; /* Set this to the actual height of your hero image */
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #5c0008;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.hero-text h1 {
    font-size: 3rem;
    margin: 0;
    text-transform: uppercase;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 400px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
}

/* Banner Section */
.banner {
    background-color: #5c0008; /* USC Maroon */
    color: white;
    text-align: center;
    padding: 20px 0;
}

.banner h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin: 0;
}

/* Introductory Text Section */
.intro-text {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

.intro-text .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.intro-text h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

/* Explore Programs Section (for future content) */
.explore-programs {
    background-color: #f7f7f7;
    padding: 40px 20px;
    text-align: center;
}

.explore-programs h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Explore Degree Programs Section */
.explore-programs {
    display: flex;
    justify-content: space-between;
    background-color: #5c0008; /* USC Maroon */
    padding: 0; /* Ensure there is no padding */
    color: white;
    margin-bottom: 0; /* Remove any potential margin */
}

/* Remove any margin from the next section */
.investment-section {
    margin-top: 0; /* Remove top margin to eliminate gap */
    padding-top: 0; /* Ensure padding is not causing the gap */
    background-color: #f1f1f1;
}

.explore-programs .container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    justify-content: space-between;
    align-items: stretch; /* Ensure the image and text box are the same height */
}

.program-content {
    display: flex;
    align-items: stretch; /* Ensure both elements stretch to equal height */
    width: 100%;
}

.program-image img {
    width: 100%; /* Adjust the width as necessary */
    height: 100%; /* Set the height to match the red box */
    object-fit: cover; /* Scale the image properly without distortion */
}

.program-text {
    width: 50%; /* Adjust the width to match the image */
    padding: 40px; /* Add padding for spacing */

    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the text vertically */
    height: 100%; /* Make the red box match the image height */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .program-content {
        flex-direction: column; /* Stack image and text vertically */
    }

    .program-image img {
        width: 100%; /* Full width for image on mobile */
        height: auto; /* Let height adjust automatically */
    }

    .program-text {
        width: 100%; /* Full width for text on mobile */
        text-align: center;
    }

    .cta-button {
        margin: 20px auto 0 auto; /* Center button on mobile */
    }
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .program-content {
        flex-direction: column;
    }

    .program-text {
        padding-left: 0;
        margin-top: 20px;
        text-align: center;
    }

    .cta-button {
        margin: 20px auto 0 auto;
    }
}

/* Your Educational Investment Section */
.investment-section {
    background-color: #f1f1f1; /* Light grey background */
    padding: 60px 20px;
    text-align: center;
}

.investment-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.investment-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #5c0008; /* USC Maroon */
    margin-bottom: 20px;
    text-transform: uppercase;
}

.investment-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    background-color: #5c0008;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .investment-section h2 {
        font-size: 2rem;
    }

    .investment-section p {
        font-size: 1.1rem;
    }

    .cta-button {
        font-size: 1.1rem;
        padding: 12px 25px;
    }
}

/* Paying for School Section */
.paying-for-school {
    background-color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.paying-for-school .container {
    max-width: 1200px;
    margin: 0 auto;
}

.paying-for-school h2 {
    font-size: 2.5rem;
    color: #5c0008;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.paying-for-school p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 40px;
}

.funding-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.funding-option {
    flex-basis: 22%;
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.funding-option img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.funding-option h3 {
    font-size: 1.3rem;
    color: #5c0008;
    margin-bottom: 10px;
}

.funding-option h3 a {
    color: #5c0008;
    text-decoration: none;
}

.funding-option h3 a:hover {
    text-decoration: underline;
}

.funding-option p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .funding-options {
        flex-direction: column;
    }

    .funding-option {
        flex-basis: 100%;
        margin-bottom: 40px;
    }
}

/* Take the Next Step Section */
.next-step {
    background-color: #000; /* Black background */
    color: #fff;
    display: flex;
    padding: 0; /* Remove padding for a clean layout */
    justify-content: space-between;
    align-items: stretch; /* Make sure both image and text stretch equally */
    margin-bottom: 0; /* Ensure no extra margin is added */
}

.next-step .container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    justify-content: space-between;
    align-items: stretch; /* Ensure image and text stretch to match height */
}

/* Image in the next-step section */
.step-image img {
    width: 100%; /* Make the image take full width of its container */
    height: 100%; /* Ensure the image matches the height of the text box */
    object-fit: cover; /* Maintain aspect ratio */
}

/* Text content in the next-step section */
.step-text {
    width: 50%; /* Make the text container take half of the width */
    padding: 40px; /* Add padding around the text for spacing */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center the text */
}

/* Button styling */
.step-text .cta-button {
    background-color: #5c0008; /* Dark red background */
    color: #fff;
    padding: 15px 10px;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #fff; /* Add white border to the button */
    transition: background-color 0.3s ease;
    max-width: 150px;
}

/* Button hover effect */
.step-text .cta-button:hover {
    color: #5c0008; /* Text becomes dark red on hover */
    background-color: #fff; /* White background on hover */
    border-color: #5c0008; /* Dark red border on hover */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .next-step {
        flex-direction: column; /* Stack image and text vertically on smaller screens */
    }

    .step-image img {
        width: 100%; /* Full width for image on smaller screens */
        height: auto; /* Auto adjust the height */
    }

    .step-text {
        width: 100%; /* Full width for text container on smaller screens */
        text-align: center;
    }

    .step-text .cta-button {
        margin: 20px auto 0 auto; /* Center the button on mobile screens */
    }
}


/* Global Button Styles */
.cta-button {
    background-color: #5c0008;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    color: #5c0008;
    background-color: #fff;
}

/* Specific Styles for the Black Button */
.cta-button-black {
    background-color: #000; /* Black background */
    border: 2px solid #fff; /* White border */
}

.cta-button-black:hover {
    color: #5c0008; /* Red text on hover */
    background-color: #fff; /* White background on hover */
}

/* Footer Section */
.site-footer {
    background-color: #73000A;
    color: #fff;
    padding: 40px 20px;
}

/* Footer Top Section - Containing Logo */
.site-footer .footer-top {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.site-footer .footer-top img {
    max-width: 200px;  /* Keep the logo size manageable */
    height: auto;
    margin-bottom: 20px;
}

/* Footer Links Section */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-top: 20px;
}

/* Footer Column for each category */
.footer-column {
    flex-basis: 30%;  /* Each column takes 30% of the available width */
}

/* Heading in each footer column */
.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #fff;  /* Add white line below section titles */
    padding-bottom: 10px;  /* Add padding to give space between line and links */
}

/* Footer Links */
.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    text-decoration: none;  /* Remove underline from links */
    color: #fff;  /* Keep link color white */
}

/* Optional hover effect for links */
.footer-links ul li a:hover {
    text-decoration: underline;  /* Add underline on hover */
}

/* Social Media Icons */
.footer-social {
    text-align: center;
    margin-bottom: 20px;
}

.footer-social a img {
    margin: 0 10px;
    width: 30px;
    height: 30px;
}

/* Footer Bottom Section */
.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #fff;  /* Add white line above the footer bottom */
    padding-top: 20px;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #000; /* Black background */
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
    padding: 10px 0;
    border-top: 1px solid #fff; /* White line at the top of the black bar */
}

/* Footer Bottom Links */
.footer-bottom a {
    color: #fff;
    text-decoration: none;  /* Remove underline from links */
}

/* Footer Bottom Links Hover Effect */
.footer-bottom a:hover {
    text-decoration: underline;  /* Add underline on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;  /* Stack columns vertically on small screens */
    }

    .footer-column {
        flex-basis: 100%;  /* Full width for each column on mobile */
        margin-bottom: 20px;
    }
}