@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");

:root {
    --brown: #664229;
    --softbrown: #f2e5cf;
    --orange-darker: #e3a506;
    --orange: #e9b223;
    --softorange: #e8cea1;
    --orange-transparent: rgba(255, 248, 230, 0.5);
    --wa-color: #25d366;
}

* {
    margin: 0;
    padding: 0;
    font-family: "Outfit", sans-serif;
}

.top-content::before {
    background: linear-gradient(90deg, #000 30%, transparent 70%);
    opacity: 0.7;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

#top-content-words {
    position: relative;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
}

.top-content-for-detail::before {
    background: linear-gradient(90deg, #000 30%, transparent 100%);
    opacity: 0.7;
    content: "";
    height: 25vh;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

#top-content-words-for-detail {
    position: relative;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    align-items: end;
    color: #fff;
    min-height: 25vh;
}

.top-content-school-name {
    letter-spacing: 4px;
}

.top-content-title {
    font-size: 3.3rem;
    font-weight: 700;
}

.top-content-title-2 {
    font-size: 1.3rem;
}

#prestasi-image-height {
    height: 400px;
}

/* Background */
.bg-transparent-blur {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(50px);
}

.bg-brown {
    background-color: var(--brown);
}

.bg-whatsapp {
    background-color: var(--wa-color);
}

/* Text */
.text-orange {
    color: var(--orange);
}

/* Font */
.ls-1 {
    letter-spacing: 2px;
}

.ls-2 {
    letter-spacing: 4px;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.fw-800 {
    font-weight: 800;
}

/* Button */
.btn-registration {
    color: #fff;
    background-color: var(--orange);
    border: 1px solid var(--orange);
    border-radius: 50px;
    text-decoration: none;
    padding: 15px 25px;
    font-weight: 900;
    letter-spacing: 2px;
}

.whatsapp-btn {
    background-color: var(--wa-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    padding: 8px 13px;
    cursor: pointer;
}

.whatsapp-outline-btn {
    border: 2px solid var(--wa-color);
    color: var(--wa-color);
    text-decoration: none;
    border-radius: 50px;
    padding: 10px 13px;
    cursor: pointer;
}

.btn-registration:hover,
.whatsapp-btn:hover {
    border: 1px solid #fff;
}

.btn-show-detail {
    background-color: var(--orange);
    color: #fff;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 800;
    transition: 0.5s;
}

.btn-show-detail:hover {
    background-color: var(--orange-darker);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    border-bottom: 1px solid #676767;
    transition: 0.5s;
}

.header.on-scroll {
    border-bottom: 0px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.header,
.navbar {
    padding: 0;
}

.contact-info {
    transition: 0.5s;
}

.contact-info.use-bg-brown {
    background-color: var(--brown);
}

.contact-info a:hover {
    color: var(--orange) !important;
}

.logo-menu {
    transition: 0.5s;
}

.logo-menu.use-bg-white {
    background-color: #fff;
}

.logo {
    font-weight: 800;
    color: #fff;
}

.navbar a {
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    padding: 1.3rem 0.7rem;
    border-bottom: 4px solid rgba(0, 0, 0, 0);
    transition: 0.5s;
}

.navbar a.use-color-black {
    color: #000;
}

.navbar a:hover {
    border-bottom: 3px solid var(--orange);
    color: var(--orange);
}

.navbar a.active {
    border-bottom: 3px solid var(--orange);
    color: var(--orange);
}

.navbar ul {
    display: flex;
    margin-bottom: 8px;
}

.navbar ul li {
    list-style: none;
}

/* ---- */
.f-ls-2 {
    letter-spacing: 2px;
}

.f-ls-5 {
    letter-spacing: 5px;
}

.fs-14 {
    font-size: 14px;
}

.fs-18 {
    font-size: 18px;
}

a {
    text-decoration: none;
    transition: all 0.2s ease-in;
    -moz-transition: all 0.2s ease-in;
    -webkit-transition: all 0.2s ease-in;
    -o-transition: all 0.2s ease-in;
}

.bg-whatsapp {
    background-color: #25d366;
    color: #fff;
}

.bg-whatsapp:hover {
    background-color: #1fbf5a;
    color: #fff;
}

.bg-softbrown {
    background-color: #e8cea1;
}

.bg-orange-transparent {
    background-color: var(--orange-transparent);
}

.bg-brown {
    background-color: #664229;
}

.text-brown {
    color: #664229;
}

.program-unggulan-button {
    cursor: pointer;
}

div.program-unggulan-card {
    position: relative;
    background-color: #fff;
}

a.program-unggulan-button:hover > div.program-unggulan-card {
    box-shadow: 0 0 !important;
}

img.program_img {
    width: 70px;
    position: relative;
    z-index: 100;
}

p.program_name {
    position: relative;
    z-index: 100;
}

.card__shadow {
    width: 100px;
    height: 100px;
    background-color: rgba(242, 229, 207, 1);
    border-radius: 50px 50px;
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    margin-inline: auto;
    filter: blur(1px);
    z-index: 0;
}

.card-name-more-17 {
    font-size: 15px;
}

@media screen and (max-width: 767px) {
    p.f-jost-300 {
        font-size: 15px;
    }

    h6.header-section {
        font-size: smaller;
    }

    h2.title-section {
        font-size: 24px;
    }

    .card-image {
        width: 80px !important;
        height: 80px !important;
    }

    p.card-name {
        font-size: 8px !important;
    }

    p.card-name-more-17 {
        font-size: 10px !important;
    }

    .ekskul-title {
        font-size: 10px !important;
    }

    .footer-sosmed {
        margin-top: 20px;
    }

    .footer-sosmed a {
        font-size: 15px !important;
        padding: 5px 10px !important;
    }
}

@media screen and (max-width: 575px) {
    p.card-name {
        font-size: 8px !important;
    }

    p.card-name-more-17 {
        font-size: 8px !important;
    }

    .ekskul-title {
        font-size: 10px !important;
    }

    .top-content-title {
        font-size: 40px;
    }

    img.program_img {
        width: 35px;
    }

    #prestasi-image-height {
        height: 200px;
    }
}

@media screen and (max-width: 992px) {
    .card-image {
        width: 100px !important;
        height: 100px !important;
    }

    .card-image .card-img {
        border: 2px solid #f2e5cf !important;
    }

    p.card-name {
        font-size: 10px !important;
    }

    div.navbar > ul {
        display: none;
    }

    .contact-info {
        display: none;
    }

    .navbar ul {
        display: inline;
        position: absolute;
        top: 0;
        left: 0;
    }
}

@media screen and (min-width: 993px) {
    .nav__toggle,
    #float-menu {
        display: none;
    }
}

/* Footer */
footer a:hover,
#school-info a:hover {
    text-decoration: underline;
}

.ekskul-overlay {
    width: 40px;
    height: 100%;
    background-color: #f2e5cf;
    position: absolute;
    top: 0;
    left: -20px;
    transform: skew(-15deg);
    -moz-transform: skew(-15deg);
    -webkit-transform: skew(-15deg);
    -o-transform: skew(-15deg);
    /* box-shadow: 0px 0px 2px; */
    /* border-radius: 2px; */
}

#school-info {
    height: 40px;
    background-color: #e8cea1;
}

.footer-sosmed a {
    font-size: 30px;
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

/* float menu */
#float-menu {
    position: fixed;
    top: 0;
    left: 1000px;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999999;
}

#float-menu ul {
    padding: 0;
    margin: 0;
}

#float-menu ul li {
    list-style: none;
    padding: 20px 5px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.5);
}

#float-menu ul a {
    color: #fff;
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
}

.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.file-upload-area:hover {
    border-color: var(--orange);
    background-color: #fff8e6;
}

.file-upload-area.drag-over {
    border-color: var(--orange);
    background-color: #fff2cc;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: var(--orange);
    margin-bottom: 15px;
}

.upload-text p {
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.upload-text .text-muted {
    font-size: 0.9rem;
    color: #666;
}

.upload-progress {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.progress {
    height: 25px;
    border-radius: 15px;
}

.progress-bar {
    border-radius: 15px;
    transition: width 0.3s ease;
}

.file-preview {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.preview-container {
    position: relative;
    display: inline-block;
}

.preview-container img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

.preview-overlay .btn {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-text {
    font-weight: 500;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .file-upload-area {
        padding: 30px 15px;
        min-height: 120px;
    }

    .upload-icon {
        font-size: 2.5rem;
    }

    .preview-container img {
        max-height: 200px;
    }

    .file-upload-wrapper {
        margin-bottom: 1rem;
    }

    /* Touch-friendly improvements */
    .file-upload-area {
        touch-action: manipulation;
    }

    .preview-overlay .btn {
        min-width: 40px;
        min-height: 40px;
    }
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .file-upload-area {
        padding: 20px 15px;
        min-height: 100px;
    }

    .upload-text p {
        font-size: 0.9rem;
    }

    .upload-text .text-muted {
        font-size: 0.8rem;
    }
}

/* Upload Progress Bar Styles */
#upload-progress {
    margin-top: 1rem;
}

#upload-progress .progress {
    height: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#upload-progress .progress-bar {
    font-size: 14px;
    font-weight: 600;
    line-height: 30px;
    transition: width 0.3s ease;
}

#upload-status {
    color: #495057;
    font-weight: 500;
    font-size: 14px;
}

/* Alert Styles */
#alert-container .alert {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

/* Submit Button Loading State */
#submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#submit-btn .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* File Upload Info and Error Messages */
#file-error {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #fff3f3;
    border-left: 3px solid #dc3545;
}

#file-info {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #f0fff4;
    border-left: 3px solid #28a745;
}

#file-error i,
#file-info i {
    margin-right: 5px;
}
