/* Custom CSS untuk Website BKD TAPSEL yang Menarik */

/* ========================================
   Hero Section Styling
======================================== */
.hero {
    width: 100%;
    height: 100vh;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    font-family: "Nunito", sans-serif;
}

.hero h2 {
    color: rgba(255, 255, 255, 0.9);
    margin: 15px 0 30px 0;
    font-size: 24px;
    font-weight: 400;
}

.hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.6;
}

.btn-get-started {
    margin-top: 30px;
    line-height: 0;
    padding: 15px 40px;
    border-radius: 50px;
    transition: 0.5s;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-get-started span {
    font-family: "Nunito", sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
}

.btn-get-started i {
    margin-left: 5px;
    font-size: 18px;
    transition: 0.3s;
}

.btn-get-started:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-get-started:hover i {
    transform: translateX(5px);
}

.hero-img img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* ========================================
   Header Styling
======================================== */
.header {
    transition: all 0.5s;
    z-index: 997;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
}

.header.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.15);
}

.header .logo {
    line-height: 0;
}

.header .logo img {
    max-height: 50px;
    margin-right: 8px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.header .logo span {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #012970;
    font-family: "Nunito", sans-serif;
    margin-top: 3px;
}

/* ========================================
   Navigation Styling
======================================== */
.navbar {
    padding: 0;
}

.navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
}

.navbar li {
    position: relative;
}

.navbar a,
.navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 10px 30px;
    font-family: "Nunito", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #013289;
    white-space: nowrap;
    transition: 0.3s;
}

.navbar a i,
.navbar a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-right: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
    color: #4154f1;
    transform: translateY(-2px);
}

/* ========================================
   Values Section Styling
======================================== */
.values .box {
    padding: 30px;
    box-shadow: 0px 0 5px rgba(1, 41, 112, 0.08);
    text-align: center;
    transition: 0.3s;
    height: 100%;
    background: #fff;
    border-radius: 15px;
    border: 1px solid rgba(1, 41, 112, 0.05);
}

.values .box img {
    max-width: 80px;
    transition: 0.5s;
    transform: scale(1.1);
}

.values .box h3 {
    font-size: 24px;
    color: #012970;
    font-weight: 700;
    margin: 20px 0 15px 0;
}

.values .box p {
    line-height: 24px;
    font-size: 15px;
    margin-bottom: 0;
    color: #666;
}

.values .box:hover {
    box-shadow: 0px 0 30px rgba(1, 41, 112, 0.15);
    transform: translateY(-10px);
}

.values .box:hover img {
    transform: scale(1.2);
}

/* ========================================
   Post Cards Styling
======================================== */
.post-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.post-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.post-img {
    position: relative;
    height: 200px;
    background: linear-gradient(45deg, #4154f1, #667eea);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #4154f1, #667eea, #764ba2);
    opacity: 0.8;
}

.post-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.post-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #4154f1;
    line-height: 1;
}

.post-date .month {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    margin-top: 5px;
}

.post-content {
    padding: 30px;
}

.post-title {
    font-size: 20px;
    font-weight: 700;
    color: #012970;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #4154f1;
}

.post-meta {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.post-meta i {
    margin-right: 8px;
    color: #4154f1;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #4154f1;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.read-more:hover {
    color: #2c3cdd;
    transform: translateX(5px);
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* ========================================
   Button More Posts
======================================== */
.btn-more-posts {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(45deg, #4154f1, #667eea);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(65, 84, 241, 0.3);
}

.btn-more-posts:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(65, 84, 241, 0.4);
    color: #fff;
}

.btn-more-posts i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.btn-more-posts:hover i {
    transform: translateX(5px);
}

/* ========================================
   Contact Section Styling
======================================== */
.contact .info-box {
    color: #444444;
    background: #fff;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact .info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact .info-box i {
    font-size: 48px;
    color: #4154f1;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #4154f1, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact .info-box h3 {
    font-size: 20px;
    color: #012970;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact .info-box p {
    line-height: 24px;
    font-size: 14px;
    margin-bottom: 10px;
    color: #666;
}

.contact .social-link {
    display: inline-flex;
    align-items: center;
    color: #4154f1;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.contact .social-link:hover {
    color: #2c3cdd;
    transform: translateX(3px);
}

.contact .social-link i {
    margin-right: 5px;
    font-size: 16px;
}

.contact .weekend {
    color: #999;
    font-style: italic;
    margin-top: 5px;
}

.map-container {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.map-header {
    margin-bottom: 20px;
}

.map-header h4 {
    color: #012970;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 5px;
}

.map-header h4 i {
    color: #4154f1;
    margin-right: 8px;
}

.map-header p {
    color: #666;
    margin-bottom: 0;
    font-size: 14px;
}

/* ========================================
   Footer Styling
======================================== */
.footer {
    background: #012970;
    color: #fff;
}

.footer-top {
    padding-top: 60px;
    padding-bottom: 40px;
}

.footer .footer-info .logo {
    line-height: 0;
    margin-bottom: 25px;
}

.footer .footer-info .logo img {
    max-height: 50px;
    margin-right: 8px;
}

.footer .footer-info .logo span {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    font-family: "Nunito", sans-serif;
}

.footer .footer-info p {
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 0;
    font-family: "Nunito", sans-serif;
    color: rgba(255, 255, 255, 0.8);
}

.footer .social-links a {
    font-size: 18px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    line-height: 1;
    padding: 12px;
    margin-right: 10px;
    border-radius: 50%;
    text-align: center;
    width: 44px;
    height: 44px;
    transition: 0.3s;
}

.footer .social-links a:hover {
    background: #4154f1;
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px);
}

.footer .footer-links {
    margin-bottom: 30px;
}

.footer .footer-links h4 {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    position: relative;
    padding-bottom: 12px;
}

.footer .footer-links h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 30px;
    background: #4154f1;
}

.footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-links ul i {
    padding-right: 2px;
    color: #4154f1;
    font-size: 12px;
    line-height: 1;
}

.footer .footer-links ul li {
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.footer .footer-links ul a {
    color: rgba(255, 255, 255, 0.8);
    transition: 0.3s;
    display: inline-block;
    line-height: 1;
    text-decoration: none;
}

.footer .footer-links ul a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer .footer-contact p {
    line-height: 26px;
    color: rgba(255, 255, 255, 0.8);
}

.footer .copyright {
    text-align: center;
    float: left;
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.footer .credits {
    float: right;
    text-align: center;
    font-size: 13px;
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   Pengumuman Page Styling
======================================== */
.breadcrumbs {
    background: linear-gradient(45deg, #012970, #4154f1);
    color: #fff;
    margin-top: 100px;
    padding: 30px 0;
}

.breadcrumbs h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.breadcrumbs p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 16px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 15px;
}

.breadcrumbs ol a {
    color: rgba(255, 255, 255, 0.8);
    transition: 0.3s;
    text-decoration: none;
}

.breadcrumbs ol a:hover {
    color: #fff;
}

.breadcrumbs ol li + li {
    padding-left: 10px;
}

.breadcrumbs ol li + li::before {
    display: inline-block;
    padding-right: 10px;
    color: rgba(255, 255, 255, 0.8);
    content: "/";
}

.search-form .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-form .form-control {
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 25px 0 0 25px;
}

.search-form .btn {
    border-radius: 0 25px 25px 0;
    padding: 15px 20px;
    border: none;
}

/* Entry styling for pengumuman page */
.blog .entry {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    padding: 30px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog .entry:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog .entry-img {
    position: relative;
    margin-bottom: 20px;
}

.blog .entry-date {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(45deg, #4154f1, #667eea);
    color: #fff;
    padding: 15px 20px;
    border-radius: 0 15px 0 15px;
    text-align: center;
    min-width: 80px;
}

.blog .entry-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.blog .entry-date .month {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

.blog .entry-date .year {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 3px;
}

.blog .entry-title {
    font-size: 24px;
    font-weight: 700;
    color: #012970;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog .entry-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.blog .entry-title a:hover {
    color: #4154f1;
}

.blog .entry-meta ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    gap: 20px;
}

.blog .entry-meta li {
    color: #666;
    font-size: 14px;
}

.blog .entry-meta i {
    color: #4154f1;
    margin-right: 8px;
}

.blog .entry-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog .btn-readmore {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background: linear-gradient(45deg, #4154f1, #667eea);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 14px;
}

.blog .btn-readmore:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(65, 84, 241, 0.3);
    color: #fff;
}

.blog .btn-readmore i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.blog .btn-readmore:hover i {
    transform: translateX(3px);
}

/* Pagination styling */
.pagination-wrapper {
    text-align: center;
}

.pagination-wrapper .pagination {
    display: inline-flex;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pagination-wrapper .page-link {
    color: #4154f1;
    background-color: #fff;
    border: 1px solid rgba(65, 84, 241, 0.2);
    padding: 12px 18px;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination-wrapper .page-link:hover {
    color: #fff;
    background-color: #4154f1;
    border-color: #4154f1;
}

.pagination-wrapper .page-item.active .page-link {
    color: #fff;
    background-color: #4154f1;
    border-color: #4154f1;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero h2 {
        font-size: 20px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 18px;
    }
    
    .breadcrumbs h2 {
        font-size: 24px;
    }
    
    .breadcrumbs {
        margin-top: 80px;
    }
    
    .header .logo span {
        font-size: 24px;
    }
    
    .footer .copyright,
    .footer .credits {
        float: none;
        text-align: center;
        padding-top: 15px;
    }
}

/* ========================================
   Additional Animations
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading animation */
.loading-dots {
    display: inline-block;
}

.loading-dots:after {
    content: ' .';
    animation: dots 1s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(0,0,0,0);
        text-shadow:
            .25em 0 0 rgba(0,0,0,0),
            .5em 0 0 rgba(0,0,0,0);
    }
    40% {
        color: black;
        text-shadow:
            .25em 0 0 rgba(0,0,0,0),
            .5em 0 0 rgba(0,0,0,0);
    }
    60% {
        text-shadow:
            .25em 0 0 black,
            .5em 0 0 rgba(0,0,0,0);
    }
    80%, 100% {
        text-shadow:
            .25em 0 0 black,
            .5em 0 0 black;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Back to top button enhancement */
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 996;
    background: linear-gradient(45deg, #4154f1, #667eea);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.4s;
    box-shadow: 0 5px 15px rgba(65, 84, 241, 0.3);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(65, 84, 241, 0.4);
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

.back-to-top i {
    font-size: 24px;
    color: #fff;
    line-height: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #4154f1, #667eea);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #2c3cdd, #5a6fd8);
}
