* { 
    padding: 0;
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
    box-sizing: border-box;
}

.header {
    width: 100%;
    height: 50vh;
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url(img/dealer.jpg);
    background-size: cover;
    background-position: center;
    text-align: center;   
    color: #fff;
}

nav {
    display: flex;
    justify-content: space-between;
    padding: 2% 6%;
    align-items: center;
}

nav img {
    width: 50px;
}

.header nav a {
    text-align: center;
    text-decoration: none;
    color: #fff;
    letter-spacing: 2px;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    list-style-type: none;
    display: inline-block;
    padding: 0px 17px;
    position: relative;
}

.nav-links ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    display: block;
    height: 3px;
    margin: auto;
    background-color: #f44336;
}

.nav-links ul li:hover::after {
    width: 100%;
    transition: 0.3s;
}

/* Tombol Login */
.login-btn {
    position: ;
    right: 6%;
    top: 20px;
}

.login-btn img {
    width: 30px;
    cursor: pointer;
}

.login-btn {
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    
    cursor: pointer;
}

.login-btn:hover {
    background-color: #f44336b6;
    transition: 1s;
    border: 1px solid #f44336;
}
.text-box {
    width: 70%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-box p {
    font-size: 32px;
    margin-bottom: 20px;
}

.text-box h1 {
    margin-bottom: 30px;
    font-size: 56px;
}

.hero-btn {
    display: inline-block;
    background-color: #f44336;
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid #f44336;
    padding: 12px 34px;
    border-radius: 30px;
    font-size: 14px;
    position: relative;
    cursor: pointer;
}

.hero-btn:hover {
    background-color: #f44336b6;
    transition: 1s;
    border: 1px solid #f44336;
}

nav .fa {
    display: none;
}

@media(max-width:700px) {
    .text-box h1 {
        font-size: 20px;
    }

    .nav-links ul li {
        display: block;
    }

    .nav-links {
        position: fixed;
        background: #f44336;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }

    nav .fa {
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }

    .nav-links ul {
        padding: 30px;
    }
}

/* Section Content Styling */
.jurusan {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

h1 {
    margin-top: 50px;
    text-align: center;
    font-size: 40px;
}

p {
    color: #777;
    font-size: 15px;
    font-weight: 400;
    padding-top: 6px;
    line-height: 22px;
}

.row {
    display: flex;
    flex-wrap: wrap; /* Allows the boxes to wrap into multiple rows */
    margin-top: 5%;
    justify-content: flex-start; /* Items will align from the left */
    gap: 30px; /* Add space between columns */
}

.jurusan-col {
    flex-basis: 22%; /* Box size */
    background: #ffe5d9;
    padding: 20px;
    border-radius: 15px;
    box-sizing: border-box;
    display: flex; /* Use Flexbox */
    flex-direction: column; /* Items arranged vertically */
    justify-content: space-between; /* Buttons are always at the bottom */
    align-items: center; /* Align items to the center */
    height: 350px; /* Fixed height */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.jurusan-col img {
    width: 100%; /* Image takes up the full width */
    height: auto; /* Maintains aspect ratio */
    border-radius: 10px;
}

.jurusan-col h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

.jurusan-col p {
    color: #777;
    font-size: 14px;
    line-height: 20px;
    flex-grow: 1; /* Content grows to fill space */
}

.show-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background-color: transparent;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: #080000;
    cursor: pointer;
    outline: none;
}

.show-more-btn:hover {
    color: #0e028ae7;
}

.show-more-btn:focus {
    outline: 2px solid #09090900;
    border-radius: 4px;
}

@media (max-width: 700px) {
    .jurusan-col {
        flex-basis: 100%; /* Boxes take full width on small screens */
        height: auto; /* Height adjusts to the content */
    }
}

.jurusan-col:hover {
    box-shadow: 0 0 20px 4px rgba(0, 0, 0, 0.2);
    transform: scale(1.05); /* Slightly enlarge box on hover */
    filter: saturate(3.5);
}

@media(max-width:700px) {
    .row {
        flex-direction: column; /* Stack boxes on smaller screens */
        gap: 10px; /* Reduced gap between elements */
    }

    .jurusan-col {
        flex-basis: 100%; /* Full width boxes on small screens */
    }

    .text-box h1 {
        font-size: 20px;
    }
}

/* cta */
.cta {
    width: 80%;
    margin: 100px auto;
    text-align: center;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(eduford_img/banner2.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    padding: 100px 0;
}

.cta h1 {
    color: #fff;
    margin-bottom: 40px;
}

@media(max-width:700px) {
    .cta h1 {
        font-size: 24px;
    }
}

/* Footer */
.footer {
    background-color: #03071e;
    width: 100%;
    text-align: center;
    padding: 30px 0;
    color: #fff;
    margin-top: 5%;
}

.footer h4 {
    margin-bottom: 20px;
    margin-top: 30px;
    font-weight: 600;
    font-size: 33px;
}

.footer p {
    color: #adb5bd;
}

.icon {
    margin-left: 10px;
    margin-top: 20px;
    margin-bottom: 10px;
}

p .fa-solid {
    color: #f44336;
}

.icon .fa-brands {
    margin-left: 10px;
}
