@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 200vh;
}

h1 {
    margin-top: 10vh;
    margin-bottom: 10vh;
}

.c-kosongan {
    position: relative;
    height: 100px;
    background: linear-gradient(135deg, hsla(229, 54%, 51%, 0.9), hsla(229, 54%, 31%, 0.9));
    box-shadow: 0 12px 8px rgba(0, 0, 0, 0.1); /* Top-side shadow */
    /* border-radius: 10px 10px 0 0; */
    z-index: 10;
}

.c-container {
    /* margin-top: 200px; */
    position: relative;
    height: 800px;
    padding: 2rem;
    background: linear-gradient(135deg, hsla(229, 54%, 51%, 0.9), hsla(229, 54%, 31%, 0.9));
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    box-shadow: 0 -12px 8px rgba(0, 0, 0, 0.1); /* Top-side shadow */
    border-radius: 0 0 10px 10px;
    z-index: 10;
}

/* Contact Info Styles */
.contact-info {
    height: 80%;
    background-color: white;
    padding: 2.5rem;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 4.5rem 0;
}

.info-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
}

.icon {
    color: hsla(229, 54%, 51%, 1);
    font-size: 1.5rem;
    width: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.details h3 {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1.1rem;
    color: hsla(229, 54%, 51%, 1);
}

.details p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Social Media Section */
.social-media {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-icon {
    color: hsla(229, 54%, 51%, 1);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: hsla(229, 54%, 61%, 1);
    transform: translateY(-5px);
}

/* Contact Form Styles */
.contact-form {
    height: 80%;
    background-color: hsla(229, 54%, 51%, 0.2);
    backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 100%;
    max-width: 500px;
}

.contact-form h2 {
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 1.5rem;
    color: white;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.submit-btn,
.reset-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-btn {
    background: white;
    color: hsla(229, 54%, 51%, 1);
}

.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.submit-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.submit-btn:active,
.reset-btn:active {
    transform: scale(0.95) translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.submit-btn::after,
.reset-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.submit-btn:active::after,
.reset-btn:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
}

.submit-btn:focus,
.reset-btn:focus {
    outline: none;
    /* box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4); */
}

/* Adding new styles for units section */
.units-container {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.units-title {
    text-align: center;
    color: hsla(229, 54%, 51%, 1);
    margin-bottom: 3rem;
    font-size: 2rem;
    position: relative;
}

.units-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: hsla(229, 54%, 51%, 1);
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.unit-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.unit-card:hover {
    transform: translateY(-5px);
}

.unit-card h3 {
    color: hsla(229, 54%, 51%, 1);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid hsla(229, 54%, 51%, 0.2);
}

.unit-image {
    width: 100%;
    height: 200px;
    margin: 1rem 0;
    overflow: hidden;
    border-radius: 8px;
}

.unit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.unit-image.bws img {
    object-fit: contain;
}

.unit-social {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.unit-social-link {
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.unit-social-link:hover {
    color: hsla(229, 54%, 51%, 1);
}

.unit-social-link i {
    width: 20px;
    color: hsla(229, 54%, 51%, 1);
}

.unit-ppdb {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.unit-ppdb h4 {
    color: hsla(229, 54%, 51%, 1);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.ppdb-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: hsla(229, 54%, 51%, 0.1);
    color: hsla(229, 54%, 51%, 1);
    text-decoration: none;
    border-radius: 5px;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.ppdb-link:hover {
    background-color: hsla(229, 54%, 51%, 1);
    color: white;
}

/* Responsive Design */

@media (max-width: 1111px) {

    .button-group {
        margin: 0;
    }

}

@media (max-width: 768px) {
    .c-container {
        flex-direction: column;
        padding: 3rem 1rem;
        gap: 2rem;
        height: 100vh;
        min-height: min-content;
    }
    
    .contact-info {
        box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    }

    .contact-info,
    .contact-form {
        max-width: 100%;
        min-height: min-content;
        /* max-height: min-content; */
    }

    .g-recaptcha {
        transform: scale(0.87);
        transform-origin: 0 0;
    }

    .button-group {
        margin-top: 0;
        margin-bottom: 1.5rem;
    }

    .button-group button {
        box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    }
    .units-container {
        padding: 2rem 1rem;
    }
    
    .units-grid {
        grid-template-columns: 1fr;
    }
    
    .unit-card {
        padding: 1.5rem;
    }
}
