/* Supaya gambar terlihat rapi */
#gallery img {
    width: 6rem;
    height: 6rem;
    object-fit: cover;
    /* Menjaga rasio aspek gambar */
    border-radius: 5px;
    /* Opsional, untuk sedikit membulatkan sudut */
    margin: 5px;
    cursor: pointer;
    border: 1px solid white;
}
.select2-container {
    width: 100% !important;
    height: 100% !important;
}
.select2-selection {
    height: 100% !important;
}
.select2-selection--single {
    border-radius: 10px !important;
    padding: 10px;
}
.select2-search__field {
    border-radius: 10px;
}
.imageInput:hover {
    transform: scale(1.03);
    background-color: #a8a8a8;
}
.imageInput i {
    font-size: 6rem;
}
.imageCropped {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}
.cropperModal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
.containerCropper {
    background-color: white;
    width: 80%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
}
.cropButton {
    justify-self: end;
}
.fileIcon {
    width: 100px;
    height: 100px;
    margin: 5px;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    text-align: center;
}
#title {
    width: 100%;
    font-size: 16px;
    border-radius: 10px;
    text-align: start;
    padding: 10px;
    font-weight: 500;
}
#titleContainer {
    justify-content: center;
    align-items: center;
    display: flex;
}
.divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0)
    );
    margin: 5px 0;
}

.addPhoto {
    width: 6rem;
    height: 6rem;
    border: 1px solid white;
    border-radius: 5px;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    margin: 5px;
}
.addPhoto:hover {
    transform: scale(1.03);
}
.imageAddContainer {
    align-items: center;
}
.titleGalery {
    color: white;
    font-weight: bold;
}
.hero {
    position: relative;
    background: url("/img/bg about.webp") center/cover no-repeat;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(250, 241, 241);
    font-size: 30px;
    font-weight: bold;
}

.form-control {
    padding: 10px;
    min-height: 38px;
    color: black;
}
.galery {
    overflow-x: scroll;
    width: 100%;
}

.ql-container {
    height: auto; /* Sesuaikan tinggi secara otomatis */
    min-height: 600px; /* Sesuaikan dengan kebutuhan */
    max-height: auto; /* Batasi jika perlu */
    padding: 0;
    border-radius: 0px 0px 20px 20px;
}
.ql-toolbar {
    border-radius: 20px;
}

.ql-editor {
    overflow: hidden; /* Menghilangkan scrollbar */
    white-space: normal; /* Pastikan teks bisa wrap (tidak horizontal scroll) */
}
.quillParent {
    border-radius: 20px;
    box-shadow: 0px 3px 5px gray;
    background-color: white;
}

.row #telepon,
#email {
    max-height: 45px;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: 2;
}
.overlay h2 {
    font-size: 50px;
    font-weight: bold;
}
.hero .overlay {
    position: relative;
    z-index: 3;
    text-align: left;
}

body {
    background-color: #f8f9fa;
    height: 100%;
}

.companyAnu {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    margin-bottom: 2rem;
    height: 70%;
    padding: 0;
    margin: 0;
}

.companyAction {
    position: relative;
    margin-left: 2%;
    margin-bottom: 2%;
}

.readMoreBtn {
    border: none;
    background-color: #007bff;
    color: white;
    padding: 5px;
    border-radius: 6px;
}

.readMoreBtn:hover {
    background-color: #0056b3;
    color: white;
}

.companyContent {
    margin: 20px;
    margin-top: 10px;
    min-height: 140px;
}

.card {
    max-width: 70%;
    margin: auto;
    border-radius: 10px;
    background: #213555;
    color: #ffffff;
    font-weight: bold;
}

.h2-title {
    font-weight: bold;
    color: #ffffff;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 5px;
}

.btn-primary:hover {
    background-color: #0056b3;
}
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10%; /* Atur jarak sesuai kebutuhan */
}
.buttonParent {
    display: flex;
    padding: 1rem;
    width: 100%;
    padding-top: 0rem !important;
}
/* .formCompany {
    display: none !important;
} */
.formArticle {
    justify-content: center;
    display: flex;
}
.articleParent {
    width: 60%;
    box-shadow: 0px 2px 3px gray;
    margin-bottom: 3rem;
    border-radius: 20px;
    background-color: #213555;
}
.imageInput {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}
.imageInput:hover {
    transform: scale(1.03);
    background-color: #a8a8a8;
}
.imageInput i {
    font-size: 6rem;
}
.imageCropped {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}
.cropperModal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
.containerCropper {
    background-color: white;
    width: 80%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
}
.cropButton {
    justify-self: end;
}
.parentModal {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr) 0.4fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    background-color: white;
    width: 90%;
    height: 90%;
}

.edit-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    background-color: rgba(
        255,
        178,
        0,
        0.7
    ); /* warna orange, transparansi 70% */
    padding: 8px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
    opacity: 1;
    display: block;
    backdrop-filter: blur(2px); /* efek blur latar belakang dikit, elegan */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* bayangan halus */
    transition: background-color 0.3s, transform 0.3s;
}

.edit-icon:hover {
    background-color: rgba(255, 179, 0, 0.956); /* saat hover, lebih solid */
}

.div1Modal {
    grid-area: 1 / 1 / 5 / 6;
    width: 100%;
    height: 100%;
}
.div2Modal {
    grid-area: 5 / 1 / 6 / 6;
    display: flex;
    justify-content: end;
    margin-top: 2rem;
}
@media screen and (min-width: 1281px) {
    /* Styles for desktop */

    .imageInput {
        background-color: lightgray;
        border-radius: 20px;
        height: 100%;
        width: 100%;
    }
    .articleImage {
        height: 100%;
        width: 80%;
        border-radius: 20px;
        background-color: lightgray;
    }
    .imageContainer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr;
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }

    .articleImageParent {
        grid-area: 1 / 1 / 2 / 2;
        justify-content: center;
        display: flex;
    }
    .articleInfo {
        grid-area: 1 / 2 / 2 / 3;
    }
    .parent {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(5, 1fr);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }

    .div1 {
        grid-area: 1 / 1 / 4 / 4;
        padding: 1rem;
    }
    .div2 {
        grid-area: 1 / 4 / 4 / 7;
        padding: 1rem;
    }
    .div3 {
        grid-area: 4 / 1 / 7 / 7;
        padding: 1rem;
        padding-top: 0rem !important;
    }
    .articleParent {
        width: 60%;
        box-shadow: 0px 2px 3px gray;
        padding: 3rem;
        margin-bottom: 3rem;
        border-radius: 20px;
        background-color: #213555;
    }
    .alamatField {
        width: 78%;
    }
    .programsField {
        width: 20%;
        margin-left: 2%;
    }
    .form-select {
        padding: 0.5rem;
    }
}
@media screen and (min-width: 1024px) and (max-width: 1280px) {
    /* Styles for desktop */
    .imageInput {
        background-color: lightgray;
        border-radius: 20px;
        height: 80%;
        width: 100%;
    }
    .articleImage {
        background-color: lightgray;
        border-radius: 20px;
        height: 80%;
        width: 100%;
    }

    .parent {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(5, 0.8fr);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }

    .div1 {
        grid-area: 1 / 1 / 4 / 4;
        padding: 1rem;
    }
    .div2 {
        grid-area: 1 / 4 / 4 / 7;
        padding: 1rem;
    }
    .div3 {
        grid-area: 4 / 1 / 7 / 7;
        padding: 1rem;
        padding-top: 0rem !important;
    }
    .articleParent {
        width: 80%;
        box-shadow: 0px 2px 3px gray;
        padding: 2rem;
        margin-bottom: 3rem;
        border-radius: 20px;
        background-color: #213555;
    }
    .alamatField {
        width: 68%;
    }
    .programsField {
        width: 30%;
        margin-left: 2%;
    }
    .form-select {
        padding: 0.5rem;
    }
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
    /* Styles for tablet */
    .imageInput {
        background-color: lightgray;
        border-radius: 20px;
        height: 80%;
        width: 100%;
    }

    .parent {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(3, 0.8fr);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }

    .div1 {
        grid-area: 1 / 1 / 2 /7;
        padding: 1rem;
    }
    .div2 {
        grid-area: 3 / 1 / 2 / 7;
        padding: 1rem;
    }
    .div3 {
        grid-area: 3 / 1 / 4 / 7;
        padding: 1rem;
        padding-top: 0rem !important;
    }
    .articleParent {
        width: 80%;
        box-shadow: 0px 2px 3px gray;
        padding: 2rem;
        margin-bottom: 3rem;
        border-radius: 20px;
        background-color: #213555;
    }
    .alamatField {
        width: 100%;
        margin-bottom: 1rem;
    }
    .alamatContainer {
        display: grid !important;
    }
    .form-select {
        padding: 0.5rem;
    }
}
@media screen and (max-width: 767px) {
    .card {
        max-width: 95%;
        margin: auto;
        border-radius: 10px;
        background: #213555;
        color: #ffffff;
        font-weight: bold;
    }
    .imageInput {
        background-color: lightgray;
        border-radius: 20px;
        height: 80%;
        width: 100%;
    }
    .parent {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(3, 0.8fr);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }

    .div1 {
        grid-area: 1 / 1 / 2 /7;
    }
    .div2 {
        grid-area: 3 / 1 / 2 / 7;
    }
    .div3 {
        grid-area: 3 / 1 / 4 / 7;
        padding-top: 0rem !important;
    }
    .articleParent {
        width: 90%;
        box-shadow: 0px 2px 3px gray;
        padding: 2rem;
        margin-bottom: 3rem;
        border-radius: 20px;
        background-color: #213555;
    }
    .alamatField {
        width: 100%;
        margin-bottom: 1rem;
    }
    .alamatContainer {
        display: grid !important;
    }
    .form-select {
        padding: 0.5rem;
    }
}
@media screen and (min-width: 1440px) {
    .containerSearch {
        /* padding-left: 10%; */
        align-items: center;
        margin-top: 2rem;
        margin-bottom: 2rem;
        transition: all 1s;
    }
    .inputField {
        margin-left: 1rem;
        width: 100%;
    }
    .textField {
        padding: 12px 40px 12px 20px;
        width: 40%;
        border-radius: 10px;
        border: 1px gray solid;
        font-size: large;
        transition: transform 0.3s, opacity 0.3s;
    }
    .hideField {
        transform: translateX(-100px); /* Pindahkan ke kiri sejauh 100px */
        opacity: 0; /* Hilangkan elemen */
    }

    .btnSearch {
        height: 3rem !important;
        width: 3rem !important;
    }
    .companyGrid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        display: grid;
    }
    .companyContainer {
        margin-left: 5rem;
        margin-right: 5rem;
        margin-bottom: 1rem;
    }
    .companyImage {
        width: 100%;
        border-radius: 10px 10px 0px 0px;
    }
    .companyCard {
        border: 0.5px solid #aaaaaa; /* Border style */
        transition: all 0.3s ease-in-out; /* Smooth transitions */
        z-index: 100; /* Ensure proper stacking order */
        border-radius: 10px; /* Rounded corners */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
        overflow: hidden; /* Hide any overflowing content */
    }
    .companyCardAdd {
        box-shadow: 0 5px 10px 0.3px rgb(231, 231, 231);
        margin: 1rem;
        border-radius: 10px;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    .companyCardAdd:hover {
        background-color: rgb(216, 216, 216);
        transform: scale(1.05);
        cursor: pointer;
    }
    .addIcon {
        font-size: 100px;
        color: black;
        text-decoration: none;
    }
    .companyCard:hover {
        box-shadow: 0 10px 20px 0.3px rgb(207, 207, 207);
        transform: scale(1.05); /* Perbesar sedikit saat hover */
        cursor: pointer;
    }

    .companyTitle {
        font-size: 1.5rem; /* Larger font size for the title */
        font-weight: bold; /* Bold text for emphasis */
        margin-bottom: 1rem; /* Spacing between title and description */
        margin-top: 10px;
        text-align: center; /* Center the title text */
    }
    .companyDesk {
        font-size: 1rem; /* Normal font size for the description */
        color: #666; /* Subtle gray color for the description */
        margin-top: 1rem;
    }
}
@media screen and (min-width: 1024px) and (max-width: 1439px) {
    .containerSearch {
        padding-left: 10%;
        align-items: center;
        margin-top: 2rem;
        margin-bottom: 2rem;
        transition: all 1s;
    }
    .inputField {
        margin-left: 1rem;
        width: 100%;
    }
    .textField {
        padding: 12px 40px 12px 20px;
        width: 70%;
        border-radius: 10px;
        border: 1px gray solid;
        font-size: large;
        transition: transform 0.3s, opacity 0.3s;
    }
    .hideField {
        transform: translateX(-100px); /* Pindahkan ke kiri sejauh 100px */
        opacity: 0; /* Hilangkan elemen */
    }

    .btnSearch {
        height: 3rem !important;
        width: 3rem !important;
    }
    .companyGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        display: grid;
    }
    .companyContainer {
        margin-left: 5rem;
        margin-right: 5rem;
        margin-bottom: 1rem;
    }
    .companyImage {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Scale the image to cover the area */
        border-radius: 10px 10px 0px 0px; /* Rounded top corners only */
    }
    .companyCard {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
        border: 0.5px solid #aaaaaa; /* Border style */
        margin: 1rem;
        border-radius: 10px;
        transition: all 0.3s ease-in-out; /* Smooth transitions */
        overflow: hidden; /* Hide any overflowing content */
    }
    .companyCardAdd {
        box-shadow: 0 5px 10px 0.3px rgb(231, 231, 231);
        margin: 1rem;
        border-radius: 10px;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    .companyCardAdd:hover {
        background-color: rgb(216, 216, 216);
        transform: scale(1.05);
        cursor: pointer;
    }
    .addIcon {
        font-size: 100px;
        color: black;
        text-decoration: none;
    }
    .companyCard:hover {
        box-shadow: 0 10px 20px 0.3px rgb(207, 207, 207);
        transform: scale(1.05); /* Perbesar sedikit saat hover */
        cursor: pointer;
    }

    .companyTitle {
        font-weight: bold; /* Bold text for emphasis */
        margin-bottom: 0.5rem; /* Spacing between title and description */
        margin-top: 20px;
        text-align: center; /* Center the title text */
    }
    .companyDesk {
        margin-left: 5%;
        margin-right: 5%;
        font-size: 1rem; /* Normal font size for the description */
        color: #666; /* Subtle gray color for the description */
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .containerSearch {
        padding-left: 10%;
        align-items: center;
        margin-top: 2rem;
        margin-bottom: 2rem;
        transition: all 1s;
    }
    .inputField {
        margin-left: 1rem;
        width: 100%;
    }
    .textField {
        padding: 12px 40px 12px 20px;
        width: 70%;
        border-radius: 10px;
        border: 1px gray solid;
        font-size: large;
        transition: transform 0.3s, opacity 0.3s;
    }
    .hideField {
        transform: translateX(-100px); /* Pindahkan ke kiri sejauh 100px */
        opacity: 0; /* Hilangkan elemen */
    }

    .btnSearch {
        height: 3rem !important;
        width: 3rem !important;
    }
    .companyGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        display: grid;
    }
    .companyContainer {
        margin-left: 5rem;
        margin-right: 5rem;
        margin-bottom: 1rem;
    }
    .companyImage {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Scale the image to cover the area */
        border-radius: 10px 10px 0px 0px; /* Rounded top corners only */
    }
    .companyCard {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
        border: 0.5px solid #aaaaaa; /* Border style */
        border-radius: 10px;
        transition: all 0.3s ease-in-out; /* Smooth transitions */
        overflow: hidden; /* Hide any overflowing content */
    }
    .companyCardAdd {
        box-shadow: 0 5px 10px 0.3px rgb(231, 231, 231);
        margin: 1rem;
        border-radius: 10px;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    .companyCardAdd:hover {
        background-color: rgb(216, 216, 216);
        transform: scale(1.05);
        cursor: pointer;
    }
    .addIcon {
        font-size: 100px;
        color: black;
        text-decoration: none;
    }
    .companyCard:hover {
        box-shadow: 0 10px 20px 0.3px rgb(207, 207, 207);
        transform: scale(1.05); /* Perbesar sedikit saat hover */
        cursor: pointer;
    }

    .companyTitle {
        font-weight: bold; /* Bold text for emphasis */
        margin-bottom: 0.5rem; /* Spacing between title and description */
        margin-top: 20px;
        text-align: center; /* Center the title text */
    }
    .companyDesk {
        margin-left: 5%;
        margin-right: 5%;
    }
}
@media screen and (max-width: 767px) {
    .containerSearch {
        padding-left: 10%;
        align-items: center;
        margin-top: 2rem;
        margin-bottom: 2rem;
        transition: all 1s;
    }
    .inputField {
        margin-left: 1rem;
        width: 100%;
    }
    .textField {
        padding: 1rem;
        width: 80%;
        border-radius: 10px;
        border: 1px gray solid;
        font-size: large;
        transition: transform 0.3s, opacity 0.3s;
    }
    .hideField {
        transform: translateX(-100px); /* Pindahkan ke kiri sejauh 100px */
        opacity: 0; /* Hilangkan elemen */
    }

    .btnSearch {
        height: 3rem !important;
        width: 3rem !important;
    }
    .companyGrid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        display: grid;
    }
    .companyContainer {
        margin-left: 2rem;
        margin-right: 2rem;
        margin-bottom: 1rem;
    }
    .companyImage {
        width: 100%;
        border-radius: 10px 10px 0px 0px;
    }
    .companyCard {
        box-shadow: 0 5px 10px 0.3px rgb(231, 231, 231);
        margin: 1rem;
        border-radius: 10px;
        transition: transform 0.3s ease;
    }
    .companyCardAdd {
        box-shadow: 0 5px 10px 0.3px rgb(231, 231, 231);
        margin: 1rem;
        border-radius: 10px;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        min-height: 30rem;
    }
    .companyCardAdd:hover {
        background-color: rgb(216, 216, 216);
        transform: scale(1.05);
        cursor: pointer;
    }
    .addIcon {
        font-size: 100px;
        color: black;
        text-decoration: none;
    }
    .companyCard:hover {
        box-shadow: 0 10px 20px 0.3px rgb(207, 207, 207);
        transform: scale(1.05); /* Perbesar sedikit saat hover */
        cursor: pointer;
    }

    .companyTitle {
        text-align: center;
        font-weight: bold;
    }
    .companyDesk {
        margin-left: 5%;
        margin-right: 5%;
        font-size: 1rem; /* Normal font size for the description */
        color: #666; /* Subtle gray color for the description */
    }
}

.smallTitle {
    font-size: 1.5rem; /* Adjust font size for titles longer than 15 characters */
    font-weight: bolder;
}

.search-button {
    position: relative;
    left: -40px;
    border: none;
    color: #b6b6b6;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    background-color: transparent;
}

/* Custom Toastr Styles */
/* .toast {
    font-family: "Poppins", sans-serif;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    font-size: 14px;
    background-color: white !important;
    color: #333;
    border-left: 5px solid;
}

.toast-success {
    border-left-color: #4caf50 !important;
}

.toast-error {
    border-left-color: #f44336 !important;
}

.toast-info {
    border-left-color: #2196f3 !important;
}

.toast-warning {
    border-left-color: #ff9800 !important;
}

.toast-success .toast-progress {
    background-color: #4caf50 !important;
}

.toast-error .toast-progress {
    background-color: #f44336 !important;
}

.toast-info .toast-progress {
    background-color: #2196f3 !important;
}

.toast-warning .toast-progress {
    background-color: #ff9800 !important;
}

.toast-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.toast-message {
    font-weight: 400;
    margin-top: 5px;
    color: #555;
} */

.readMoreWrapper {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
    margin: 20px;
}

.readMoreBtn {
    background-color: #007bff;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.readMoreBtn:hover {
    background-color: #0056b3;
}
