:root {
    --pmii-blue: #003399;
    --pmii-blue-dark: #001f66;
    --pmii-yellow: #ffcc00;
    --pmii-yellow-dark: #e6b800;
    --pmii-gray: oklch(27.8% 0.033 256.848);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: #212529;
    background-color: #f8f9fa;
}

.container-fluid {
    max-width: 1400px;
}

.font-serif {
    font-family: "Cinzel", serif;
}

.hero-pattern {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    max-height: 1200px;
    position: relative;
}

.hero-pattern .hero-backdrop {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
        rgba(0, 31, 102, 0.8),
        rgba(0, 31, 102, 0.8)
    );
    z-index: 1;
}

.hero-pattern .carousel {
    position: absolute;
    inset: 0;
}

.hero-pattern .carousel button {
    z-index: 2;
}

.hero-pattern .container {
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero-pattern .carousel .carousel-item {
    height: 100%;
    width: 100%;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-active {
    color: var(--pmii-yellow) !important;
    border-bottom: 2px solid var(--pmii-yellow);
}

.bg-pmii-blue {
    background-color: var(--pmii-blue) !important;
}

.bg-pmii-blue-dark {
    background-color: var(--pmii-blue-dark) !important;
}

.bg-pmii-yellow {
    background-color: var(--pmii-yellow) !important;
}

.text-pmii-blue {
    color: var(--pmii-blue) !important;
}

.border-pmii-blue {
    border-color: var(--pmii-blue) !important;
}

.text-pmii-blue-dark {
    color: var(--pmii-blue-dark) !important;
}

.text-bg-pmii-blue {
    background-color: var(--pmii-blue) !important;
    color: white !important;
}

.text-bg-pmii-yellow {
    background-color: var(--pmii-yellow) !important;
    color: var(--pmii-blue-dark) !important;
}

.text-pmii-yellow {
    color: var(--pmii-yellow) !important;
}

.text-pmii-gray {
    color: var(--pmii-gray) !important;
}

.btn-pmii-blue {
    background-color: var(--pmii-blue);
    border-color: var(--pmii-blue);
    color: white;
}

.btn-pmii-blue:hover {
    background-color: var(--pmii-blue-dark);
    border-color: var(--pmii-blue-dark);
    color: white;
}

.btn-pmii-yellow {
    background-color: var(--pmii-yellow);
    border-color: var(--pmii-yellow);
    color: var(--pmii-blue-dark);
}

.btn-pmii-yellow:hover {
    background-color: white;
    border-color: var(--pmii-yellow);
    color: var(--pmii-blue-dark);
}

/* Tab Animation */
.tab-content-custom {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content-custom.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-text .brand-title {
    font-weight: bold;
    color: var(--pmii-blue-dark);
    line-height: 1;
    font-size: 1.1rem;
    font-family: "Cinzel", serif;
    margin: 0;
}

.brand-text p {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #6c757d;
    margin: 0;
}

.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.hero-section {
    position: relative;
    z-index: 1;
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.section-divider {
    width: 80px;
    height: 4px;
    background-color: var(--pmii-yellow);
    margin: 0 auto;
}

.stats-section {
    background: linear-gradient(
        135deg,
        var(--pmii-blue),
        var(--pmii-blue-dark)
    );
}

.news-filter-btn.active {
    background-color: var(--pmii-blue) !important;
    color: white !important;
}

.overflow-hidden {
    overflow: hidden;
}

.gallery-img {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.1);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 51, 153, 0.1);
}

.pagination-custom .page-link {
    color: var(--pmii-blue);
    border-color: var(--pmii-blue);
}

.pagination-custom .page-link:hover {
    background-color: var(--pmii-blue);
    border-color: var(--pmii-blue);
    color: white;
}

.pagination-custom .page-item.active .page-link {
    background-color: var(--pmii-blue);
    border-color: var(--pmii-blue);
}

/* Custom Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: none;
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

.btn-close {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .hero-pattern h1 {
        font-size: 2.5rem !important;
    }

    .hero-pattern h2 {
        font-size: 1.2rem !important;
    }

    .stats-section .display-4 {
        font-size: 2.5rem;
    }
}

.nav-link {
    font-size: 0.9rem;
}

.nav-link.active {
    color: var(--pmii-yellow) !important;
    border-bottom: 2px solid var(--pmii-yellow);
}

.card-visi {
    background-color: #ebf6ff;
    border-width: 0 0 0 4px;
    border-color: var(--pmii-blue);
    width: 100%;
    border-radius: 15px;
    height: 100%;
}

.card-misi {
    background-color: #fffee7;
    border-width: 0 0 0 4px;
    border-color: var(--pmii-yellow);
    width: 100%;
    border-radius: 15px;
    height: 100%;
}

@media (min-width: 992px) {
    .card-visi,
    .card-misi {
        width: 450px;
    }
}

.card-event {
    text-decoration: none;
    color: black;
    border: none;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.card-event .card-img-top {
    height: 190px;
    background-color: #e2e8f0;
    overflow: hidden;
    position: relative;
}

.card-img-top .badge-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    border-width: 1px;
    border-style: solid;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 9;
}

.card-img-top .badge-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    border-width: 1px;
    font-weight: 500;
    z-index: 9;
}

.btn-event-detail {
    width: 100%;
    font-weight: 600;
    background-color: #d1ecff4f;
    color: var(--pmii-blue-dark);
}

.card-event,
.card-event img,
.card-event .btn-event-detail,
.card-event .card-title {
    transition: all 0.5s ease;
}

.card-event:hover {
    cursor: pointer;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.card-event:hover img {
    transform: scale(1.1);
}

.card-event:hover .btn-event-detail {
    background-color: #d1ecffff;
    color: var(--pmii-blue);
}

.card-event:hover .card-title {
    color: var(--pmii-blue);
}

.card-post .badge-category {
    padding: 5px 10px;
    background-color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--pmii-blue);
    font-weight: 600;
    color: var(--pmii-blue);
}

.card-post .card-title a {
    color: black;
    transition: color 0.3s ease;
}
.card-post .card-title a:hover {
    color: var(--pmii-blue) !important;
}

td,
th {
    vertical-align: middle !important;
}

.card-post {
    border-radius: 15px;
    overflow: hidden;
}
