@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    font-family: "Montserrat", sans-serif;
    background-color: #f6f6f6;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(2px);
    padding: 10px;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.4s ease, box-shadow 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img.logo1 {
    height: 50px;
}

.logo img.logo2 {
    height: 30px;
}

nav ul li {
    list-style: none;
}

.menu {
    list-style: none;
    display: flex;
}

.menu li {
    position: relative;
}

.menu li a {
    color: #000000;
    text-decoration: none;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    transition: 0.3s ease;
    line-height: 1.9;
}

.menu li a.active {
    color: #8B0000;
    font-weight: 700;
}

.menu li a:hover {
    color: #8B0000;
}

.menu li a i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.menu li:hover>a i.fa-chevron-right {
    transform: rotate(90deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgb(255, 255, 255);
    min-width: 180px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.menu li:hover>.dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    position: relative;
}

.dropdown li a {
    color: #000000;
    padding: 10px;
    font-size: 15px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.dropdown li a:hover {
    background-color: #f5f5f5;
    /* color: #E5AC19; */
    color: #8B0000;
}

.dropdown .dropdown {
    top: 0;
    left: 100%;
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    position: absolute;
    transition: all 0.3s ease;
}

.dropdown li:hover>.dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a i.fa-chevron-right {
    transition: transform 0.3s ease;
}

.dropdown li:hover>a i.fa-chevron-right {
    transform: rotate(90deg);
}

header.scrolled {
    background: rgba(187, 187, 187, 0.768);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    border-bottom: 2px solid black;
}

.hero {
    position: relative;
    background: url('../img/bg_new.jpg') no-repeat center center/cover;
    height: 100vh;
    width: 100%;
    z-index: 2;
}


.overlay {
    position: absolute;
    background: #d8000000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
}

.wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.wa a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.halaman-bawah {
    padding: 0px 50px;
    min-height: 200px;
    overflow-x: hidden;
}

.logo-divider-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 100px 0 30px;
}

.logo-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 50px 0;
}

.line {
    flex: 1;
    height: 1.5px;
    background-color: #8B0000;
}

.chairman-header {
    margin-bottom: 30px;
}

.chairman-header h2 {
    color: #8b0000;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.chairman-header-2 {
    margin-bottom: 0px;
}

.chairman-header-2 h2 {
    color: #8b0000;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.split-section {
    display: flex;
    align-items: stretch;
    height: fit-content;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid black;
}

.image-side {
    width: 30%;
}

.image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-side {
    width: 70%;
    background-color: #3f3f3fb4;
    color: white;
    padding: 45px;
}


.text-wrapper p {
    font-size: 17px;
    line-height: 2;
    margin-bottom: 22px;
    text-align: justify;
}

.logo-center-2 {
    padding: 0 20px;
}

.logo-center-2 img {
    width: 120px;
    height: auto;
    display: block;
}

.logo-center {
    padding: 0 20px;
}

.logo-center img {
    width: 45px;
    height: auto;
    display: block;
}

.halaman-history {
    font-size: 15px;
    line-height: 1.9;
    text-align: justify;
}

.halaman-history-2 {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.9;
    text-align: justify;
}

.vision-mission-motto.enhanced {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.vmm-card {
    position: relative;
    border-radius: 10px;
    padding: 30px 20px 20px;
    margin-top: 30px;
}

.vmm-header h3 {
    position: absolute;
    top: -20px;
    left: 20px;
    background: #f0b400;
    color: #003087;
    font-size: 20px;
    font-weight: 700;
    padding: 10px 50px;
    border-radius: 5px;
    margin: 0;
}

.vmm-card:hover {
    transform: translateY(-5px);
}

.vmm-card.vision,
.vmm-card.mission {
    background: #8B0000;
    color: #fff;
}

.vmm-card.vision p {
    margin-top: 20px;
    color: #fff;
    line-height: 1.5;

}

.vmm-card.mission ul li {
    margin-left: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.5;
    text-align: justify;
}

.vmm-card.motto {
    background: #f0b400;
    color: #003087;
}

.vmm-card.motto p {
    margin-top: 10px;
    font-size: 18px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
}

.vmm-card.motto p strong {
    display: block;
    margin-top: 10px;
    font-weight: 700;
}

.vmm-header-moto h3 {
    position: absolute;
    top: -20px;
    left: 20px;
    background: #003087;
    color: #e5ac19;
    font-size: 20px;
    font-weight: 700;
    padding: 10px 50px;
    border-radius: 5px;
    margin: 0;
}

.school-values {
    margin-top: 100px;
    text-align: left;
}

.school-values h2 {
    font-size: 20px;
    margin-bottom: 30px;
    color: #333;
}

.school-values span {
    margin-left: 10px;
    color: red;
}

.champions-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.champion-card {
    position: relative;
    box-shadow: 0px 5px 5px 5px rgba(0, 0, 0, 0.664);
    background: #8B0000;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    transition: all 0.4s ease;
}

.champion-card:hover {
    transform: translateY(-8px);
}

.champion-letter {
    background-color: #ffffffa4;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px;
    border-radius: 10px;
    font-size: 40px;
    font-weight: 900;
    color: rgb(255, 0, 0);

    z-index: 2;
    pointer-events: none;

    line-height: 1;
    font-family: serif;
}

.gambarcampions {
    position: relative;
    background-color: #921111;
    height: 250px;
    overflow: hidden;
}

.gambarcampions::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.1));
}

.gambarcampions img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.champion-card:hover .gambarcampions img {
    transform: scale(1.08);
}

.card-content {
    position: relative;
    z-index: 3;
    padding: 18px;
}

.card-content h3 {
    font-size: 17px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-curikulum {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card-curikulum .card-curikulum-display {
    background-color: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 650px;
    overflow: hidden;
    box-shadow: 0px 3px 5px 2px rgba(0, 0, 0, 0.305);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-curikulum .card-curikulum-display:hover {
    transform: translateY(-5px);
}

.image-container-curikulum {
    width: 100%;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    height: 250px;
}

.image-container-curikulum img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-curikulum-display h3 {
    background-color: #00775F;
    color: white;
    text-align: center;
    padding: 5px;
    font-size: 25px;
}

.card-curikulum-display p {
    font-size: 0.95rem;
    color: #555;
    margin: 10px 20px 0px;
    text-align: justify;
    flex-grow: 1;
}

.card-curikulum-display .btn {
    display: block;
    border-radius: 30px;
    padding: 10px;
    margin: 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
    transition: background-color 0.3s ease;
}


.card-curikulum-display .btn:hover {
    background-color: #0056b3;
}

.buttons {
    display: flex;
    justify-content: center;
}

.btn-outline {
    /* border: 1px solid #D4AF37; */
    padding: 10px 50px;
    border-radius: 30px;
    color: #000000;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    background-color: #e5ac19;
    /* background-color: #D4AF37; */
}

.btn-outline:hover {
    color: #fff;
    background-color: #8B0000;
    box-shadow: 0 6px 18px #E5AC19;
}

.orange-line {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 2;
}

.wave {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 1;
}

.wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.wa a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.halaman-bawah {
    padding: 0px 50px;
    min-height: 200px;
    overflow-x: hidden;
}

.halaman-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
}

.slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 50vh;
    overflow: visible;
    margin: auto;
}

.item {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.7s ease, opacity 0.5s ease, filter 0.5s ease;
    transform-origin: center center;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.item.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
    z-index: 10;
    filter: none;
}

.item.next {
    opacity: 0.5;
    pointer-events: none;
    transform: translateX(calc(100% - 50%)) scale(0.8) rotateY(-15deg);
    z-index: 5;
    filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.item.prev {
    opacity: 0.5;
    pointer-events: none;
    transform: translateX(calc(-100% - 50%)) scale(0.8) rotateY(15deg);
    z-index: 5;
    filter: blur(6px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

#prev,
#next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.623);
    border: none;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    border-radius: 10%;
    z-index: 20;
}

#prev {
    left: 20px;
}

#next {
    right: 20px;
}

button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.halaman-infosekolah {
    margin-top: 100px;
}

.halaman-infosekolah h1 {
    margin-bottom: 20px;
    background-color: #8B0000;
    padding: 10px;
    border-radius: 30px;
    border: 1px solid #8B0000;
    text-align: center;
    color: #FFF;
    margin-bottom: 30px;
}

.school-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
}

.stat-card {
    border-radius: 10px;
    box-shadow: 12px 1px 10px 1px rgba(0, 0, 0, 0.464);
    background: #fff;
    transition: 0.3s ease;
    border: 1px solid black;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
    font-size: 50px;
    margin-bottom: 15px;
    color: #003087;
}

.stat-number {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
}

.stat-title {
    background-color: #000;
    font-size: 15px;
    color: #ffffff;
    padding: 10px;
    text-align: center;
    font-weight: 500;
}

.halaman-map {
    margin-top: 30px;
    width: 100%;
    height: 50vh;
    border: 2px solid black;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.halaman-map h1 {
    background: white;
    padding: 10px 20px;
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1000;
    font-size: 12px;
}

#map {
    height: 100%;
    width: 100%;
}

.legend {
    background: white;
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
    font-size: 15px;
}

.legend table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    word-wrap: break-word;
}

.legend th,
.legend td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.legend th {
    background-color: #f2f2f2;
}

.legend strong {
    color: #8B0000;
    cursor: pointer;
}

.halaman-table {
    margin: 30px 0px;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.table-alumni {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    overflow: hidden;
    table-layout: fixed;
}

.table-alumni thead {
    background: #8B0000;
    color: white;
    text-align: center;
}

.table-alumni th {
    padding: 10px;
    border: 1px solid #8B0000;
}

.table-alumni td {
    padding: 10px;
    text-align: center;
    border: 1px solid #8B0000;

    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.table-alumni tbody tr:hover {
    background: #f1f1f1;
    transition: 0.2s;
}

.halaman-aboutus {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    margin-top: 100px;
}

.halamangambarus {
    position: relative;
    width: 50%;
    min-height: 300px;
    box-sizing: border-box;
}

.box-blue-top-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border-left: 3px solid black;
    border-top: 3px solid black;
    z-index: 1;
}

.box-blue-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    border-right: 3px solid black;
    border-bottom: 3px solid black;
    z-index: 1;
}

.box-red-center {
    position: absolute;
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    z-index: 2;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box-red-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.halaman-tulisanus {
    width: 50%;
    padding: 0 20px;
    color: #000000;
}

.halaman-tulisanus .judul-us {
    font-size: 30px;
    text-align: center;
    padding: 10px;
    border-bottom: 3px solid #000000;
    border-top: 3px solid #000000;
    color: #8B0000;
    margin-bottom: 20px;
}

.halaman-tulisanus p {
    font-size: 15px;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 30px;
}

.halaman-tulisanus .tombolseeus {
    display: inline-block;
    margin-top: 10px;
    text-align: center;
    padding: 10px;
    /* background-color: #E5AC19; */
    background-color: #8B0000;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.halaman-tulisanus .tombolseeus:hover {
    background-color: #003087;
    box-shadow: 0 6px 18px #E5AC19;
}

.halaman-curikulum {
    margin-top: 100px;
}

.halaman-curikulum .judul-halaman {
    margin-bottom: 50px;
}

.halaman-curikulum .judul-halaman h1 {
    border-left: 5px solid #8B0000;
    font-size: 30px;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #8B0000;
}

.halaman-detail-curikulum {
    text-align: justify;
}

.halaman-curikulum p {
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.judul-halaman-campion p {
    margin-top: 50px;
    margin-bottom: 20px;
}

.highlight {
    font-weight: 500;
    color: #8B0000;
    margin-left: 5px;
}

.champions-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.champion-card {
    box-shadow: 0px 5px 5px 5px rgba(0, 0, 0, 0.664);
    background: #8B0000;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.champion-card:hover {
    transform: translateY(-8px);
}

.gambarcampions {
    background-color: #921111;
    height: 250px;
    overflow: hidden;
}

.gambarcampions img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.card-content {
    padding: 10px;
}

.card-content h3 {
    font-size: 15px;
    color: #ffffff;
}

.card-curikulum {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card-curikulum .card-curikulum-display {
    background-color: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 650px;
    overflow: hidden;
    box-shadow: 0px 3px 5px 2px rgba(0, 0, 0, 0.305);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-curikulum .card-curikulum-display:hover {
    transform: translateY(-5px);
}

.image-container-curikulum {
    width: 100%;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    height: 260px;
}

.image-container-curikulum img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-curikulum-display h3 {
    background-color: #00775F;
    color: white;
    text-align: center;
    padding: 5px;
    font-size: 25px;
}

.card-curikulum-display p {
    font-size: 0.95rem;
    color: #555;
    margin: 10px 20px 0px;
    text-align: justify;
    flex-grow: 1;
}

.card-curikulum-display .btn {
    display: block;
    border-radius: 30px;
    padding: 10px;
    margin: 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
    transition: background-color 0.3s ease;
}

.card-curikulum-display .btn:hover {
    background-color: #0056b3;
}

.embet-ig {
    margin-top: 100px;
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

.embed-container {
    border-radius: 20px;
    box-shadow: 0px 3px 10px 5px rgba(0, 0, 0, 0.305);
    padding: 20px;
    overflow: auto;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.embed-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.embed-container h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.styled-embed,
.tiktok-embed {
    width: 100% !important;
    border-radius: 12px;
    overflow: hidden;
}

#load-tiktok-embed {
    padding: 10px;
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    /* background-color: #E5AC19; */
    background-color: #8B0000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#load-tiktok-embed:hover {
    background-color: #003087;
    box-shadow: 0 6px 18px #E5AC19;
}

#load-tiktok-embed:active {
    background-color: #1565c0;
    transform: translateY(2px);
}

#load-tiktok-embed:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

#tiktok-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

#tiktok-container iframe {
    width: 100% !important;
    max-width: 1200px !important;
    min-height: 750px !important;
    border-radius: 20px;
}

.news-section {
    margin-top: 100px;
    padding: 20px;
}

.section-title {
    font-size: 30px;
    text-align: left;
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 5px solid #8B0000;
    font-weight: bold;
    color: #8B0000;
}

.detail-judul {
    font-size: 1.1em;
    line-height: 1.7;
    color: #4a4a4a;
    text-align: justify;
    margin-bottom: 30px;
}

.see-more-container {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

.see-more-container a {
    background-color: #8B0000;
    padding: 10px 50px;
    color: #ffffff;
    font-size: 16px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}


.see-more-container a:hover {
    transform: translateY(-2px);
    background-color: #003087;
    box-shadow: 0 6px 18px #E5AC19;
}

.event {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
}

.event-card {
    display: flex;
    flex-direction: column;
    height: fit-content;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 10px #000000;
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    position: relative;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-image-container {
    position: relative;
}

.event-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: relative;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.triangle-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background-color: #8B0000;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 1;
}

.date-text {
    position: absolute;
    top: 10px;
    left: 15px;
    z-index: 2;
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

.event-overlay {
    position: absolute;
    text-align: center;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    color: white;
    padding: 10px;
}

.event-overlay h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.event-description {
    line-height: 1.5;
    text-align: justify;
    padding: 10px;
    font-size: 14px;
    color: #6e6e6e;
}

.footer {
    background-color: #d1cdcd80;
    padding: 30px;
    margin-top: 100px;
    color: #222;
}

.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #ff0000;
    margin-bottom: 40px;
    gap: 20px;
}

.footer-logo-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gambar-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 16px;
}

.gambar-logo img:first-child {
    width: 250px;
    height: auto;
    object-fit: contain;
}

.gambar-logo img:last-child {
    width: 110px;
    height: auto;
    object-fit: contain;
}

.footer-logo-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.footer-header p {
    word-spacing: 1px;
    font-size: 20px;
    color: #000000;
    font-weight: 500;
}

.footer-middle {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #8B0000;
}

.footer-column h4 {
    font-style: italic;
    margin-bottom: 15px;
    font-weight: 700;
    color: #000;
    line-height: 2;
}

.footer-column p {
    line-height: 2;
    margin-bottom: 30px;
    color: #ff0000;
    font-weight: 300;
    font-size: 15px;
}

.footer-column a {
    display: block;
    margin-bottom: 12px;
    text-decoration: none;
    color: #000000;
    font-size: 14px;
    transition: 0.3s ease;
    font-weight: 300;
}

.footer-column a:hover {
    color: #8B0000;
}

.footer-hours {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
}

.footer-hours span {
    font-weight: 500;
    font-style: italic;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
}

.social-icons a:hover {
    background: #8B0000;
    color: white;
    transform: translateY(-3px);
}


.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 25px;
    font-size: 14px;
    color: #666;
}

.menu-toggle {
    display: none;
    font-size: 20px;
    cursor: pointer;
    color: #000;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: #ffffff;
    color: #fff;
    transition: right 0.3s ease;
    z-index: 1001;
    padding: 20px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sidebar-header h2 {
    font-size: 20px;
    color: #000000;
    font-weight: bold;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #ff0000;
    font-size: 24px;
    cursor: pointer;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 20px;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000000;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar-links a:hover {
    background-color: #000000;
    color: #fff;
}

.sidebar-links a.active {
    background-color: #ff0000;
    color: #fff;
}

/* Dropdown Styles */
.sidebar-dropdown .sidebar-submenu {
    display: none;
    margin-top: 10px;
    padding-left: 20px;
}

.sidebar-dropdown.open .sidebar-submenu {
    display: block;
}

.sidebar-submenu li {
    margin-bottom: 10px;
}

.sidebar-dropdown>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-dropdown i {
    transition: transform 0.3s ease;
}

.sidebar-dropdown.open i {
    transform: rotate(180deg);
}

/* Sidebar - Icons */
.sidebar-links a i {
    margin-right: 10px;
}

/* Overlay */
.overlay-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.overlay-sidebar.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-submenu,
.submenu-news {
    list-style: none;
    padding-left: 20px;
    display: none;
    margin: 0;
}

.sidebar-links a {
    text-decoration: none;
    color: #000;
    padding: 8px 15px;
    display: block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sidebar-links a:hover {
    background-color: #000000;
}

.sidebar-dropdown.open>.sidebar-submenu {
    display: block;
}

.sidebar-dropdown-sub.open>.submenu-news {
    display: block;
}

.sidebar-links a i {
    float: right;
    transition: transform 0.3s ease;
}

.dropdown-toggle-sub {
    display: flex;
    justify-content: space-between;
}

.sidebar-dropdown.open>a.dropdown-toggle i,
.sidebar-dropdown-sub.open>a.dropdown-toggle-sub i {
    transform: rotate(90deg);
}

.sidebar-links a.active,
.sidebar-links a.active-parent {
    background-color: #000000;
    color: #D4AF37;
    font-weight: 600;
}

.hero-content {
    height: 80vh;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10;
}

.hero-content h1 {
    color: #000000;
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    color: #fdfdfd;
    font-size: 20px;
    margin-bottom: 30px;
    background-color: #8b0000a6;
    padding: 10px 50px;
    list-style: 1.9;
    border-radius: 20px;
}





















@media (max-width: 1030px) {
    nav {
        display: none;
    }

    .menu-toggle {
        display: block;
        font-size: 25px;
        cursor: pointer;
        color: #000000;
        margin-right: 10px;
    }

    .halaman-infosekolah {
        margin-top: 100px;
    }

    .halaman-infosekolah h1 {
        margin-bottom: 50px;
        text-align: center;
    }

    .card-curikulum .card-curikulum-display {
        max-width: 90%;
    }

    .embed-container {
        max-width: 100%;
        overflow: auto;
    }

    .section-title-ey h1 {
        font-size: 2rem;
        color: #000000;
    }

    .container-ceo {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .photo-ceo {
        max-width: 100%;
        width: 90%;
    }

    .message-ceo {
        width: 100%;
        padding: 0 20px;
        font-size: 0.95rem;
    }

    .message-ceo p {
        text-align: left;
    }

    .signature-ceo {
        margin-top: 30px;

    }

    .split-section {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: fit-content;
        overflow: hidden;
        border-radius: 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        border: 1px solid black;
        gap: 0;
    }

    .image-side {
        width: 100%;
    }

    .content-side {
        width: 100%;
        background-color: #3f3f3fb4;
        color: white;
        padding: 45px;
    }

    .vision-mission-motto.enhanced {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .champions-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .school-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .event {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .footer {
        padding: 40px 25px;
    }

    .footer-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-middle {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .footer-header {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 10px;
        border-bottom: 1px solid #ff0000;
        margin-bottom: 40px;
        gap: 20px;
    }

    .footer-header p {
        display: none;
    }

    .gambar-logo img:first-child {
        width: 300px;
    }

    .gambar-logo img:last-child {
        width: 120px;
    }

    .leadership-section {
        grid-template-columns: 1fr;
    }

    .leader-card:nth-child(1) {
        order: 2;
    }

    .leader-card:nth-child(2) {
        order: 1;
    }

    .vision-mission-motto.enhanced {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
    }

    .champions-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .gambarcampions {
        position: relative;
        background-color: #921111;
        height: 250px;
        overflow: hidden;
    }

    .gambarcampions img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        transition: transform 0.5s ease;
    }

    .embet-ig {
        margin-top: 100px;
        display: grid;
        justify-content: center;
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
        width: 100%;
    }

    .halamangambarus {
        width: 100%;
    }

    .halaman-tulisanus {
        width: 100%;
    }

    .halaman-aboutus {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        flex-wrap: wrap;
        gap: 50px;
        margin-top: 100px;
    }

    .event {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 500px) {
    nav {
        display: none;
    }

    .menu-toggle {
        display: block;
        font-size: 25px;
        cursor: pointer;
        color: #000000;
        margin-right: 10px;
    }

    .hero-content {
        height: 100vh;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        z-index: 10;
    }

    .hero-content h1 {
        color: #000000;
        font-size: 1.5em;
        margin-bottom: 30px;
    }

    .hero-content p {
        color: #fdfdfd;
        font-size: 13px;
        margin-bottom: 30px;
        background-color: #8b0000a6;
        padding: 10px;
        list-style: 0;
        border-radius: 20px;
        text-transform: lowercase;
    }

    .halaman-infosekolah {
        margin-top: 50px;
    }

    .halaman-infosekolah h1 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .halaman-aboutus {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        flex-wrap: wrap;
        margin-top: 100px;
    }

    .halaman-aboutus {
        flex-direction: column;
    }

    .halamangambarus {
        margin-bottom: 30px;
        width: 100%;
    }

    .halaman-tulisanus {
        width: 100%;
    }

    .judul-us {
        font-size: 20px;
        padding: 0 5px;
    }

    .section-title-ey h1 {
        font-size: 20px;
        color: #000000;
    }

    .halaman-curikulum .judul-halaman h1 {
        border-left: 5px solid #8B0000;
        font-size: 20px;
        padding-left: 20px;
        margin-bottom: 0px;
        color: #8B0000;
    }

    .champions-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profile-school {
        flex-direction: column;
    }

    .profile-school .gambar,
    .profile-school .detail-school-profile {
        width: 100%;
        max-width: 100%;
    }

    .profile-school .gambar {
        height: 250px;
    }

    .profile-school .gambar img {
        object-fit: cover;
    }

    .container-ceo {
        flex-direction: column;
    }

    .team-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-image {
        width: 100%;
        height: 200px;
    }

    .team-info {
        align-items: center;
    }

    .team-info .kata-motivation {
        text-align: center;
    }

    .section-book-view {
        grid-template-columns: 1fr;
        /* Satu kolom saja */
        gap: 16px;
        padding: 0 10px;
    }

    .section-book-view .card {
        max-width: 100%;
        border-radius: 8px;
    }

    .section-book-view .cover-container {
        height: 200px;
    }

    .section-book-view .title-bar {
        font-size: 16px;
        padding: 8px;
    }

    .section-book-view .info-penulis {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 12px;
    }

    .section-book-view .info-penulis img {
        width: 60px;
        height: 80px;
    }

    .section-book-view .info-penulis .text {
        gap: 6px;
        font-size: 0.9rem;
    }

    .section-book-view .info-penulis .text div:nth-child(1) {
        font-size: 1rem;
    }

    .section-book-view .btn-lihat {
        margin: 12px auto;
        padding: 8px 12px;
        font-size: 1rem;
        width: 90%;
    }

    .section-title-ey-2 {
        margin-top: 70px;
    }

    .gambar-logo img:first-child {
        width: 160px;
    }

    .gambar-logo img:last-child {
        width: 80px;
    }

    .footer-middle {
        grid-template-columns: 1fr;
    }

    .footer-logo-title h2 {
        font-size: 20px;
    }

    .school-values h2 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        line-height: 1.3;
    }

    .school-values span {
        margin-left: 0;
    }

    .school-stats {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 380px) {
    .logo img.logo1 {
        height: 30px;
    }

    .logo img.logo2 {
        height: 20px;
    }

    nav {
        display: none;
    }

    .menu-toggle {
        display: block;
        font-size: 20px;
        cursor: pointer;
        color: #000000;
        margin-right: 10px;
    }

    .wa {
        position: fixed;
        bottom: 10px;
        right: 10px;
        z-index: 10;
    }

    .wa a {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .halaman-head-karir {
        display: flex;
        justify-content: center;
    }

    .search-input {
        padding: 10px;
        font-size: 12px;
    }

    .search-select {
        flex: 1;
        border: none;
        border-left: 1px solid #ddd;
        padding: 10px;
        font-size: 12px;
        background-color: #fff;
        cursor: pointer;
        outline: none;
    }

    .card-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        padding: 20px;
    }

    .company-logo {
        height: 40px;
    }


    .social-icons a {
        font-size: 15px;
    }

    .judul-job {
        width: 100%;
        padding: 5px;
    }

    .judul-job h3 {
        text-align: center;
        font-size: 15px;
    }

    .company-aja {
        width: 100%;
        margin-bottom: 10px;
        line-height: 1.5;
        font-size: 13px;
    }

    .info {
        font-size: 13px;
    }

    .btn-apply {
        text-decoration: none;
        text-align: center;
        font-size: 13px;
        color: rgb(255, 255, 255);
        flex: 1;
        padding: 8px;
        border-radius: 8px;
        font-weight: bold;
        border: 1px solid #ddd;
        cursor: pointer;
    }

    .logos1 {
        width: 200px;
        height: auto;
        display: block;
    }

    .logos {
        width: 50px;
        height: auto;
        display: block;
    }

    .footer-brand h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .footer-brand p {
        font-size: 13px;
        margin-bottom: 20px;
        line-height: 1.4;
        text-align: justify;
    }

    .contact-item i {
        font-size: 18px;
    }

    .contact-item a {
        font-size: 12px;
    }

    .contact-item a:hover {
        text-decoration: underline;
    }

    .contact-item p {
        margin: 0;
    }

    .footer-links h4,
    .footer-social h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .footer-links ul li a {
        color: #333;
        text-decoration: none;
        transition: color 0.3s ease;
        font-weight: 500;
        font-size: 13px;
    }

    .footer-bottom {
        font-size: 13px;
    }

    .search-select {
        display: none;
    }

    .card-container {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .hero-content {
        height: 90vh;
    }

    .hero-content h1 {
        font-size: 30px;
        line-height: 1.5;
    }

    .hero-content p {
        font-size: 15px;
    }

    .halaman-banner {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 50vh;
    }

    .item img {
        object-fit: fill;
    }

    .halaman-infosekolah {
        margin-top: 50px;
    }

    .halaman-infosekolah h1 {
        border-radius: 20px 20px 0px 0px;
        font-size: 20px;
    }

    .halaman-map h1 {
        padding: 10px;
        font-size: 10px;
    }

    .legend {
        font-size: 10px;
    }

    .legend table {
        font-size: 10px;
    }

    .halaman-aboutus {
        flex-direction: column;
        margin-top: 100px;
    }

    .halamangambarus {
        width: 100%;
    }

    .box-red-center img {
        object-fit: fill;
    }

    .halaman-tulisanus {
        width: 100%;
    }

    .halaman-tulisanus .judul-us {
        font-size: 30px;
    }

    .halaman-tulisanus p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .halaman-curikulum {
        margin-top: 50px;
    }

    .halaman-curikulum .judul-halaman h1 {
        font-size: 25px;
    }

    .halaman-curikulum p {
        line-height: 1.8;
        font-size: 13px;
        margin-bottom: 15px;
    }

    .champions-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gambarcampions {
        height: 200px;
    }

    .card-content h3 {
        font-size: 14px;
        /* sedikit kecilkan font agar muat */
    }

    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 380px) {
    .text-wrapper p {
        text-align: left;
    }

    .section-title-ey h1 {
        font-size: 18px;
        color: #000000;
        padding-left: 10px;
    }

    .section-title-ey {
        margin: 0px 0 30px;
    }
}