body {
    font-family: 'Poppins', sans-serif;
}

/* Reset any problematic styles */
@media (max-width: 991px) {
    .container {
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
        margin-right: auto;
        margin-left: auto;
    }
    
    .navbar-collapse {
        background: rgba(16, 16, 16, 0.95);
        padding: 1rem;
        border-radius: 0 0 8px 8px;
    }

    .navbar .dropdown-menu {
        background: rgba(255, 255, 255, 0.98) !important;
        border: none;
        padding: 0.5rem 0;
        margin: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .navbar .dropdown-menu.submenu {
        margin-left: 1rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .navbar .dropdown-item {
        color: #333 !important;
        padding: 0.6rem 1.5rem;
    }

    .navbar .dropdown-item:hover {
        background: #f8f9fa;
        color: #0056b3 !important;
    }

    .dropdown-menu .dropdown-menu {
        position: static;
        margin: 0.5rem;
        padding: 0.5rem 0;
    }
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/bg/bg1.jpg');
    background-size: cover;
    background-position: center;
    min-height: 800px;
    color: white;
    position: relative;
    padding: 120px 0;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.hero-content .lead {
    font-size: 1.1rem;
    line-height: 1.4;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}
.hero-content .btn-lg {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.hero-content .btn-lg:hover {
    transform: translateY(-2px);
}
.hero-content .btn-primary {
    background: #e01f3d;
    border-color: #e01f3d;
    box-shadow: 0 5px 15px rgba(224, 31, 61, 0.4);
}
.hero-content .btn-primary:hover {
    background: #c71832;
    border-color: #c71832;
    box-shadow: 0 8px 25px rgba(224, 31, 61, 0.5);
}
.hero-content .btn-outline-light {
    border-width: 2px;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}
.hero-content .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}
.search-box {
    background: rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: visible;
    max-width: 380px;
    margin-left: auto;
}
.search-box .form-group {
    position: relative;
    margin-bottom: 15px;
}
.search-box .form-select {
    position: relative !important;
    transform: none !important;
    top: 0 !important;
}
.search-box .form-select option {
    position: relative !important;
    transform: none !important;
    top: 100% !important;
}
/* Override Bootstrap's dropdown positioning */
.search-box .dropdown-menu {
    position: absolute !important;
    transform: none !important;
    top: 100% !important;
    left: 0 !important;
}
.search-box h5 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.tab {
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.tablinks {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    font-size: 0.85rem;
}
.tablinks:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.tablinks.active {
    background: #e01f3d;
    border-color: #e01f3d;
    color: white;
    box-shadow: 0 5px 20px rgba(224, 31, 61, 0.4);
}
.tablinks.active:hover {
    background: #c71832;
}
.tabcontent {
    display: none;
}
#peraturan.tabcontent {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.tabcontent.active {
    display: block;
}
.search-box input,
.search-box select {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 0.85rem;
}
.search-box select option {
    background: #333;
    color: white;
}
.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}
.search-box input:focus,
.search-box select:focus {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    outline: none;
}
.search-box select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 16px 12px;
    padding-right: 3rem;
}
.search-box .btn-submit {
    width: 100%;
    padding: 8px;
    border-radius: 12px;
    background: #e01f3d;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.search-box .btn-submit:hover {
    background: #c71832;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(224, 31, 61, 0.4);
}
.search-box .btn-submit:active {
    transform: translateY(0);
}
.search-box .btn-submit i {
    font-size: 1.1rem;
}
.form-group {
    position: relative;
    margin-bottom: 10px;
}
.form-group i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}
.form-group input,
.form-group select {
    padding-left: 32px;
}
.stats-section {
    padding: 2rem 0;
    background: #f8f9fa;
}
.stats-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}
.col-custom {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0 0.5rem;
}
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 1.25rem 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.stats-card i {
    color: #101010;
    margin-bottom: 0.75rem;
    font-size: 2.25em;
}
.stats-card h3 {
    color: #101010;
    font-size: 1.75em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.stats-card p {
    font-size: 0.85em;
    line-height: 1.3;
    margin: 0;
}
.btn-primary {
    background-color: #e01f3d !important;
    border-color: #e01f3d !important;
}
.btn-primary:hover {
    background-color: #c71832 !important;
    border-color: #c71832 !important;
}
.btn-outline-primary {
    color: #e01f3d !important;
    border-color: #e01f3d !important;
}
.btn-outline-primary:hover {
    color: #fff !important;
    background-color: #e01f3d !important;
}

@media (max-width: 1200px) {
    .col-custom {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    .stats-card {
        padding: 1.25rem 0.75rem;
    }
    .stats-card i {
        font-size: 2em;
    }
    .stats-card h3 {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .col-custom {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .stats-card {
        padding: 1rem;
    }
    .stats-card i {
        font-size: 1.75em;
    }
    .stats-card h3 {
        font-size: 1.25em;
    }
    .stats-card p {
        font-size: 0.8em;
    }
}

@media (max-width: 576px) {
    .col-custom {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
.news-categories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}
.news-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.news-category-item:hover {
    background: #e9ecef;
}
.category-name {
    font-weight: 500;
    color: #1a237e;
}
.category-count {
    font-weight: 600;
    color: #1a237e;
    background: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.news-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.news-card img {
    height: 220px;
    object-fit: cover;
    transition: all 0.3s ease;
}
.news-card:hover img {
    transform: scale(1.05);
}

footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
}
.footer-content {
    position: relative;
    z-index: 1;
}
.social-links a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.social-links a:hover {
    color: #0d6efd;
    transform: translateY(-3px);
}
.footer .list-unstyled a {
    color: #fff;
    text-decoration: none;
}
.footer .list-unstyled a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Officials Section Styles */
.team {
    padding: 4em 0;
    background: #f8f9fa;
}
.heading h3 {
    font-size: 2.5em;
    font-weight: 600;
    color: #212529;
    text-align: center;
    margin-bottom: 1.5em;
}
.wthree_team_grids {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.wthree_team_grid {
    text-align: center;
    flex: 0 0 250px;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.wthree_team_grid .hovereffect {
    width: 200px;
    height: 200px;
    overflow: hidden;
    position: relative;
    text-align: center;
    cursor: default;
    background: #fff;
    margin-bottom: 1rem;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.wthree_team_grid .hovereffect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.wthree_team_grid h4 {
    color: #1a1a1a;
    font-size: 1.1em;
    margin: 0.5em 0 0.2em;
    font-weight: 600;
    line-height: 1.4;
    width: 100%;
}
.wthree_team_grid p {
    color: #4a4a4a;
    margin: 0;
    font-size: 0.95em;
    font-weight: 500;
    width: 100%;
}
.hovereffect .overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
    opacity: 0;
    background-color: rgba(0,0,0,0.5);
    transition: all 0.4s ease-in-out;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.hovereffect:hover .overlay {
    opacity: 1;
    filter: alpha(opacity=100);
}
.hovereffect h6 {
    color: #fff;
    font-size: 0.9em;
    margin-bottom: 0.5em;
}
.hovereffect .social-icons {
    display: flex;
    gap: 0.5rem;
}
.hovereffect .social-icons a {
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.hovereffect .social-icons a:hover {
    transform: scale(1.2);
}
@media (max-width: 991px) {
    .wthree_team_grid {
        flex: 0 0 200px;
        max-width: 200px;
    }
    .wthree_team_grid .hovereffect {
        width: 150px;
        height: 150px;
    }
    .wthree_team_grid h4 {
        font-size: 1em;
        line-height: 1.3;
    }
    .wthree_team_grid p {
        font-size: 0.9em;
    }
}
@media (max-width: 576px) {
    .wthree_team_grid {
        flex: 0 0 150px;
        max-width: 150px;
    }
    .wthree_team_grid .hovereffect {
        width: 120px;
        height: 120px;
    }
    .wthree_team_grid h4 {
        font-size: 0.95em;
        line-height: 1.3;
    }
    .wthree_team_grid p {
        font-size: 0.85em;
    }
}
.sekapur-sirih {
    padding: 4em 0;
    background: #fff;
}
.sekapur-sirih .container {
    display: flex;
    align-items: center;
    gap: 3em;
}
.sekapur-sirih-img {
    flex: 0 0 40%;
    max-width: 40%;
}
.sekapur-sirih-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.sekapur-sirih-content {
    flex: 0 0 60%;
    max-width: 60%;
}
.sekapur-sirih h3 {
    color: #212529;
    font-size: 2.5em;
    font-weight: 600;
    margin-bottom: 0.5em;
}
.sekapur-sirih p {
    color: #6c757d;
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
}

@media (max-width: 991px) {
    .sekapur-sirih {
        padding: 3em 0;
    }
    .sekapur-sirih .container {
        flex-direction: column;
        gap: 2em;
    }
    .sekapur-sirih-img,
    .sekapur-sirih-content {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .sekapur-sirih h3 {
        font-size: 2em;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .sekapur-sirih {
        padding: 2em 0;
    }
    .sekapur-sirih h3 {
        font-size: 1.8em;
    }
    .sekapur-sirih p {
        font-size: 1em;
    }
}

/* Regulation Count Section */
.regulation-count {
    background: #fff;
    padding: 2rem 0;
    overflow: hidden;
}
.regulation-types {
    padding: 10px;
    margin: 0 -5px;
}
.swiper-slide {
    height: auto;
}
.regulation-type {
    padding: 1.25rem;
    text-align: center;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    margin: 5px 0;
}
.regulation-type:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.regulation-type .icon {
    font-size: 2.5em;
    color: #1a237e;
    margin-bottom: 0.3em;
    position: relative;
    z-index: 1;
}
.regulation-type .icon::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #1a237e;
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
}
.regulation-type:hover .icon::before {
    opacity: 0.1;
}
.regulation-type .count {
    font-size: 2.5em;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 0.2em;
    line-height: 1.2;
}
.regulation-type .title {
    color: #212529;
    font-size: 1.1em;
    line-height: 1.4;
    margin-bottom: 0;
    font-weight: 500;
}

.swiper-button-next,
.swiper-button-prev {
    color: #1a237e;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.swiper-button-next {
    right: 5px;
}

.swiper-button-prev {
    left: 5px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #1a237e;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #1a237e;
}

@media (max-width: 991px) {
    .regulation-count {
        padding: 3rem 0;
    }
    .regulation-type {
        padding: 1.25rem;
    }
    .regulation-type .icon {
        font-size: 2em;
    }
    .regulation-type .count {
        font-size: 2em;
    }
    .regulation-type .title {
        font-size: 1em;
    }
}

@media (max-width: 576px) {
    .regulation-count {
        padding: 2rem 0;
    }
    .regulation-type {
        padding: 1rem;
    }
    .regulation-type .icon {
        font-size: 1.8em;
    }
    .regulation-type .count {
        font-size: 1.8em;
    }
    .regulation-type .title {
        font-size: 0.9em;
    }
}
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white }
}
.typing-animation {
    overflow: hidden;
    border-right: .15em solid white;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .05em;
    animation: 
        typing 6s steps(40, end) infinite,
        blink-caret 1s step-end infinite;
    display: inline-block;
    width: 0;
    animation-fill-mode: forwards;
}
@keyframes typing {
    0% { width: 0; }
    40% { width: 100%; }
    60% { width: 100%; }
    100% { width: 0; }
}
@keyframes blink-caret {
    0%, 100% { border-color: transparent; }
    50% { border-color: white; }
}

.search-box .form-group select.form-select {
    width: 100%;
    margin-bottom: 0;
    padding: 8px 16px 8px 40px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 0.85rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 3rem;
}
.search-box .form-group select.form-select option {
    background: #333;
    color: white;
    padding: 8px;
    position: relative;
    z-index: 1000;
}
.search-box .form-select {
    position: relative;
    z-index: 1;
}
.toggle-btn.active {
    background-color: #e01f3d !important;
    color: #fff;
}
