/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Raleway, sans-serif;
    color:#184b5d;
    font-size: 14px;
    font-weight: bold;
    background-color: #f0f0f0;
}

h1 {
  font-family: "Squada One", sans-serif;
  font-weight: 400;
  font-size: 120px;
  padding: 0;
  font-style: normal;
}

h2 {
  font-family: "Squada One", sans-serif;
  font-weight: 400;
  font-size: 50px;
  padding: 0;
  font-style: normal;
}

h3 {
  font-family: "Squada One", sans-serif;
  font-weight: 400;
  font-size: 65px;
  padding: 0;
  color: #ff8600;
  font-style: normal;
}

h4 {
  font-family: "Squada One", sans-serif;
  font-weight: 400;
  font-size: 50px;
  padding: 0;
  color: #f2ecdc;
  font-style: normal;
}

  .fixed-header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: #184b5d;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 10px 0;
        }

        .header-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            width: 100%;
            max-width: 1200px;
        }

  

/*APPLY NOW BUTTON*/


.apply-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ff8600;
    color: white;
    padding: 16px 30px;
    font-family: "Squada One", sans-serif;
    font-size: 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.apply-btn:hover {
    background-color: #65c7c2;
    transform: scale(1.1);
}

/* Mobile adjustments for Apply Button */
@media (max-width: 768px) {
    .apply-btn {
        display: none !important; /* Completely hides the button on mobile */
    }
}

.header-line {
    height: 5px;
    background-color: #65c7c2;
}

.header-line-secondary {
    height: 3px;
    background-color:#65c7c2;
}

.logo {
    max-height: 80px;
    height: auto;
    align-self: center;
    
}


/* HERO SECTION */

.hero-section {
    width: 100vw;
    height: 40vw;
    max-height: 65vh;
    background: url('http://www.careersatdanvilleva.com/assets/photo.png') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    padding: 5vw;
}

/* Centered Text */
.hero-text {
    max-width: 80%;
    padding-top: 80px;
}

/* Title */
.hero-title {
    font-size: 7vw;
    font-weight: bold;
    font-family: "Squada One", sans-serif;
    margin: 5px 0;    
}

/* Subtitle */
.hero-subtitle {
    font-size: 3.5vw;
    font-weight: bold;
    font-family: "Squada One", sans-serif;
    margin: 5px 0;
}

/* Fix Hero Shadow */

/* Standardized shadow for all browsers */
.hero-title, .hero-subtitle {
    text-shadow: 3px 3px 7px rgba(0, 0, 0, 0.4); /* Slightly softened but uniform */
}

/* Remove conflicting Safari overrides */
@supports (-webkit-touch-callout: none) {
    .hero-title, .hero-subtitle {
        text-shadow: 3px 3px 7px rgba(0, 0, 0, 0.4) !important; /* Same shadow as default */
    }
}

/* Ensure Safari Desktop follows the same style */
@media (min-width: 769px) and (-webkit-min-device-pixel-ratio:0) {
    .hero-title, .hero-subtitle {
        text-shadow: 3px 3px 7px rgba(0, 0, 0, 0.4) !important;
    }
}


/* Tablet Adjustments */
@media (max-width: 1024px) {
    .hero-section {
        height: 35vw;
    }

    .hero-text {
        padding-top: 90px;
    }

    .hero-title {
        font-size: 8vw;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Softer shadow */
    }

    .hero-subtitle {
        font-size: 4vw;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Softer shadow */
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 40vh;
    }

    .hero-text {
        padding-top: 100px;
    }

    .hero-title {
        font-size: 9vw;
        line-height: 1;
        text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5); /* Even softer for mobile */
    }

    .hero-subtitle {
        font-size: 4.5vw;
        text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5); /* Even softer for mobile */
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-section {
        height: 40vh;
    }
    

    .hero-text {
        padding-top: 85px;
        line-height:1;
    }

    .hero-title {
        font-size: 12vw;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); /* Lightest shadow */
    }

    .hero-subtitle {
        font-size: 6vw;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); /* Lightest shadow */
    }
}


.line-above-featured, .line-above-benefits {
    height: 6px;
    background-color: #65c7c2;
}

/*  Wrapper for Featured Jobs Section */

/* Job Buttons */
.job-button {
    background-color: #ff8600 !important; /* Forces orange */
    color: white !important; /* Ensures text stays white */
    font-family: "Squada One", sans-serif;
    font-size: 30px;
    font-weight: 400;
    padding: 15px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    width: 100%;
    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    text-decoration: none;
    word-break: break-word;
}

/* Hover Effect */
.job-button:hover {
    background-color: #65c7c2 !important; /* Keeps hover effect */
}

.featured-jobs-container {
    background: url('http://www.careersatdanvilleva.com/assets/benefit-bg.png') no-repeat center center;
    background-size: cover;
    padding: 50px 10%; /* Add padding for spacing */
    text-align: center;
}

/* Title - Ensure Proper Spacing */
.featured-jobs-title {
    font-size: 65px;
    color: #f2ecdc;
    font-family: "Squada One", sans-serif;
    font-weight: 400;
    margin-bottom: 40px; /* Space between title & buttons */
}

/* Keep Job Buttons in Grid */
.featured-jobs {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr)); /* 2-column layout */
    gap: 20px;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
}

/* Mobile Version */
@media (max-width: 768px) {
    .featured-jobs {
        font-size: 30px;
        grid-template-columns: 1fr; /* Switch to 1 column */
    }
    .job-button {
        font-size: 20px}

    .featured-jobs-title {
        font-size: 40px;
        margin-bottom: 40px;
        margin-top: 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .featured-jobs-title {
        font-size: 40px;
        margin-bottom: 30px;
    }
    /* Reduce space above the "FEATURED JOBS" section */
    .featured-jobs-container {
        margin-top: 0 !important;
        padding-top: 30px !important; 
    }
    .line-above-featured
    {margin:0px;
    padding:0px}

    /* Ensure "FEATURED JOBS" title isn't pushed down */
    .featured-jobs-title {
        margin-top: 0 !important;
        padding-top: 6px !important;
    
}
    @media (max-width: 768px) {

   

    /* Remove any extra space from the blue line */
    .line-above-featured {
        margin-bottom: -3px !important; 
    }
}

}

/* Additional Job Opportunities Button */
.additional-jobs-button {
    background-color: #65c7c2; /* Turquoise */
    color: white;
    font-family: "Squada One", sans-serif;
    font-size: 30px;
    font-weight: 400;
    padding: 27px;
    border: none;
    cursor: pointer;
    text-align: center;
    width: 100%; /* Default full width */
    max-width: 600px; /* Limits width on very large screens */
    margin: 30px auto 0; /* Centers it below the job grid */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

/* Hover Effect */
.additional-jobs-button:hover {
    background-color: #ff8600; /* Changes to orange on hover */
}

/* Desktop: Make Button Span Two Columns */
@media (min-width: 768px) {
    .additional-jobs-button {
        grid-column: span 2; /* Makes it span two columns */
        width: 100%;
        max-width: none;
    }
}

/* Mobile: Stays as a Single Stacked Button */
@media (max-width: 768px) {
    .additional-jobs-button {
        font-size: 20px;
        padding: 30px;
    }
}

/* Section Title */
.why-choose-title {
    text-align: center;
    font-size: 65px;
    color: #ff8600;
    font-family: "Squada One", sans-serif;
    font-weight: 400;
    margin-bottom: 40px;
}

/* General Styling for "Why Choose Danville?" Section */
.why-choose-danville {
    padding: 40px 20px;
    background-color: #ffffff;
}

.why-choose-content {
    max-width: 1200px;
    margin: 0 auto;
}

.row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    align-items: flex-start;
}

.column {
    width: 48%; /* Each column takes up 48% of the row */
}

.left {
    text-align: left;
}

.right {
    text-align: left;
}


/* Drop Quote Styling */
.drop-quote {
    font-family: "Squada One", sans-serif;
    font-weight: 400;
    font-size: 30px;
    color: #184b5d;
    border-left: 5px solid #ff8600;
    padding-left: 20px;
    margin: 20px 0;
    line-height: 1.5;
    position: relative;
}

/* Attribution Text Styling */
.attribution {
    font-family: Raleway, sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: #184b5d;
    text-align: center;
    margin-top: 10px;
}

/* Video Container */
.video-container {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Mobile adjustments Why Choose Danville - override order on mobile */

@media (max-width: 768px) {
    .why-choose-content .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .why-choose-title {
    text-align: center;
        font-size: 40px;}
    
    .drop-quote {
        font-size: 20px;
        padding-left: 0;
        border-left: none;
        text-align: center;
        margin-top: 20px;
        position: relative;
    }

    /* Orannge bar */
    .drop-quote::before {
        content: "";
        display: block;
        width: 50px;  /* Length */
        height: 4px;  /* Thickness */
        background-color: #ff8600; 
        margin: 0 auto 15px auto;  /* Centers and adds spacing */
    }

    .column {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Force quote to always come first */
    .row:nth-child(odd) .left {
        order: 1;
    }

    .row:nth-child(odd) .right {
        order: 2;
    }

    .row:nth-child(even) .left {
        order: 2;
    }

    .row:nth-child(even) .right {
        order: 1;
    }
}

/* Default layout for larger screens */
.why-choose-content .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.column {
    width: 48%;
}

/* Make sure videos are responsive */
.video-container {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Mobile layout: Stack quotes and videos */
@media (max-width: 768px) {
    .why-choose-content .row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .column {
        width: 100%;
        margin-bottom: 20px;
    }

    .drop-quote {
        font-size: 20px;
        padding-left: 0;
        border-left: none;
        text-align: center;
        margin-bottom: 10px;
    }

    .attribution {
        font-size: 16px;
        text-align: center;
        margin-bottom: 20px;
    }
}

/* Benefits Section - Keep Background Consistent */
.benefits-container {
    background-color:#f2ecdc;
    background-size: cover;
    padding: 50px 10%;
    text-align: center;
}

/* Benefits Title */
.benefits h3 {
    font-size: 65px;
    margin-bottom: 20px; /* Add space below the heading */
}


.benefits {
    text-align: center;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    justify-items: center;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 150px;
}

.benefit-grid {
    margin-top: 50px; /* Adds spacing between the heading and the icons */
}
.benefit-item img {
    width: 90px;  
    height: 90px;
    margin-bottom: 10px;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .benefit-grid {
        grid-template-columns: repeat(2, 1fr);}
    }


@media (max-width: 600px) {
    .benefit-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .benefits-container h3 {
        font-size: 40px !important; /* Adjust as needed */
        margin-bottom: 10px !important; /* Reduce space if needed */
        padding: 0 !important;
}
}

/* Click for More Details Button */
.benefits-details-button {
    background-color: #65c7c2; /* Turquoise */
    color: white;
    font-family: "Squada One", sans-serif;
    font-size: 24px;
    font-weight: 400;
    padding: 20px;
    border: none;
    cursor: pointer;
    text-align: center;
    width: 100%;
    max-width: 600px; /* Keeps it controlled */
    margin: 30px auto 0; /* Centers button below the benefit grid */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

/* Hover Effect */
.benefits-details-button:hover {
    background-color: #ff8600; /* Changes to orange on hover */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .benefits-details-button {
        font-size: 20px;
        padding: 15px;
    }
}


footer {
    background: url('assets/repeat-03.png') repeat;
    height: 100px;
    width: 100%;
}



.footer {
    background: url('http://www.careersatdanvilleva.com/assets/repeat-03.png') repeat;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #184b5d;
    font-size: 24px;
    text-decoration: none;
}

/* Ensure horizontal row layout stays intact on mobile */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .social-icons {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }
}




