/* =====================================================
   DITLANTAS POLDA SULTRA - Custom Styles
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --polri-blue: #003580;
    --polri-blue-light: #1A5DAD;
    --polri-blue-dark: #001F4D;
    --polri-gold: #D4A843;
    --polri-red: #C0392B;
    --polri-white: #F8F9FA;
    --hero-gradient: linear-gradient(135deg, #001F4D 0%, #003580 40%, #1A5DAD 100%);
}

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

/* ---- Top Bar ---- */
.top-bar {
    background: var(--polri-blue-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    padding: 6px 0;
    border-bottom: 2px solid var(--polri-gold);
}

.top-bar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--polri-gold);
}

/* ---- Main Navbar ---- */
.navbar-lantas {
    background: rgba(0, 53, 128, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--polri-gold);
    transition: all 0.3s ease;
    padding: 0;
}

.navbar-lantas.scrolled {
    background: rgba(0, 31, 77, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.navbar-lantas .navbar-brand {
    padding: 8px 0;
}

.navbar-lantas .navbar-brand img {
    height: 50px;
    transition: transform 0.3s;
}

.navbar-lantas .navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-lantas .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 18px 16px !important;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
}

.navbar-lantas .nav-link:hover,
.navbar-lantas .nav-link.active {
    color: var(--polri-gold) !important;
    background: rgba(255,255,255,0.08);
}

.navbar-lantas .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--polri-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-lantas .nav-link:hover::after,
.navbar-lantas .nav-link.active::after {
    width: 80%;
}

/* ---- Hero Section ---- */
.hero-section {
    background: var(--hero-gradient);
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, #f8f9fa, transparent);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 168, 67, 0.2);
    border: 1px solid rgba(212, 168, 67, 0.4);
    color: var(--polri-gold);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title span {
    color: var(--polri-gold);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta .btn {
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-gold {
    background: var(--polri-gold);
    color: var(--polri-blue-dark);
    border: none;
}

.btn-gold:hover {
    background: #E0B84F;
    color: var(--polri-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212,168,67,0.4);
}

.btn-outline-light-custom {
    border: 2px solid rgba(255,255,255,0.4) !important;
    color: #fff !important;
    background-color: transparent !important;
}

.btn-outline-light-custom:hover,
.btn-outline-light-custom:focus {
    background-color: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.7) !important;
    transform: translateY(-2px);
}

/* Hero floating shapes */
.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.hero-shapes .shape-1 {
    width: 300px; height: 300px;
    background: var(--polri-gold);
    top: -80px; right: -80px;
    animation: float 6s ease-in-out infinite;
}

.hero-shapes .shape-2 {
    width: 200px; height: 200px;
    background: #fff;
    bottom: 80px; right: 15%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-shapes .shape-3 {
    width: 150px; height: 150px;
    background: var(--polri-gold);
    top: 40%; left: -40px;
    animation: float 7s ease-in-out infinite 1s;
}

/* ---- Section Styles ---- */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-weight: 700;
    color: var(--polri-blue-dark);
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--polri-gold);
    border-radius: 2px;
}

.section-title-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: #6c757d;
    font-size: 1rem;
    max-width: 600px;
}

/* ---- Sambutan Section ---- */
.sambutan-section {
    background: #fff;
}

.pejabat-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,53,128,0.08);
}

.pejabat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,53,128,0.15);
}

.pejabat-photo {
    height: 320px;
    background: linear-gradient(135deg, var(--polri-blue), var(--polri-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pejabat-photo::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.pejabat-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pejabat-photo .placeholder-icon {
    color: rgba(255,255,255,0.3);
    font-size: 5rem;
}

.pejabat-info {
    padding: 20px 24px;
    text-align: center;
}

.pejabat-info h5 {
    color: var(--polri-blue-dark);
    font-weight: 700;
    margin-bottom: 4px;
}

.pejabat-info p {
    color: var(--polri-gold);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Layanan Section ---- */
.layanan-section {
    background: linear-gradient(135deg, #f3f6fb 0%, #e8edf5 100%);
}

.layanan-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.layanan-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--polri-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.layanan-card:hover::before {
    transform: scaleX(1);
}

.layanan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,53,128,0.12);
    border-color: rgba(0,53,128,0.1);
}

.layanan-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    transition: all 0.3s;
}

.layanan-card:hover .layanan-icon {
    transform: scale(1.1) rotate(-5deg);
}

.layanan-card h5 {
    font-weight: 700;
    color: var(--polri-blue-dark);
    margin-bottom: 10px;
}

.layanan-card p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
}

/* ---- Stats Section ---- */
.stats-section {
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.stat-item {
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--polri-gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Berita Section ---- */
.berita-section {
    background: #fff;
}

.berita-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.06);
    height: 100%;
}

.berita-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0,53,128,0.12);
}

.berita-img {
    height: 200px;
    overflow: hidden;
}

.berita-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.berita-body {
    padding: 20px;
}

.berita-category {
    display: inline-block;
    background: rgba(0,53,128,0.08);
    color: var(--polri-blue);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.berita-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--polri-blue-dark);
    margin: 12px 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.berita-title a:hover {
    color: var(--polri-blue-light);
}

.berita-date {
    font-size: 0.8rem;
    color: #adb5bd;
}

/* ---- Custom Buttons (Bypass Tabler) ---- */
.btn-lantas-outline-primary {
    color: var(--polri-blue) !important;
    border: 1px solid var(--polri-blue) !important;
    background-color: transparent !important;
}

.btn-lantas-outline-primary:hover {
    background-color: var(--polri-blue) !important;
    color: #fff !important;
}

.btn-lantas-outline-success {
    color: #27AE60 !important;
    border: 1px solid #27AE60 !important;
    background-color: transparent !important;
}

.btn-lantas-outline-success:hover {
    background-color: #27AE60 !important;
    color: #fff !important;
}

.btn-lantas-outline-warning {
    color: #D4A843 !important;
    border: 1px solid #D4A843 !important;
    background-color: transparent !important;
}

.btn-lantas-outline-warning:hover {
    background-color: #D4A843 !important;
    color: #fff !important;
}

.btn-lantas-outline-danger {
    color: var(--polri-red) !important;
    border: 1px solid var(--polri-red) !important;
    background-color: transparent !important;
}

.btn-lantas-outline-danger:hover {
    background-color: var(--polri-red) !important;
    color: #fff !important;
}

/* ---- Hero Kapolda Photo & Liquid Glass Name Tag ---- */
.hero-kapolda-wrapper {
    position: relative;
    max-width: 480px;
    margin-right: -40px; /* Push slightly off edge */
    z-index: 10;
}

.hero-kapolda-img {
    position: relative;
    z-index: 1;
    max-height: 520px;
    width: auto;
    transform: scaleX(-1);
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.5));
    animation: fadeInUp 1s ease 0.6s both;
}

/* Liquid Glass Name Tag */
.liquid-nametag {
    position: absolute;
    bottom: 40px;
    left: -40px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    animation: float 5s ease-in-out infinite 1s;
    max-width: 320px;
    transform-origin: left bottom;
}

/* Add a subtle highlight to enhance the "liquid" feel */
.liquid-nametag::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 100%);
    border-radius: 20px;
    pointer-events: none;
}

.nametag-title {
    color: var(--polri-gold);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.nametag-name {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ---- Instagram Section (Embed Style) ---- */
.instagram-section {
    background: #f8f9fa; /* Sleek light background to make cards pop */
    position: relative;
}

.instagram-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.05;
    background-image: radial-gradient(#003580 1px, transparent 1px);
    background-size: 20px 20px;
}

.ig-embed-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08); /* Softer border */
    border-radius: 12px; /* Slightly rounder, modern feel */
    overflow: hidden;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #262626;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02); /* Very subtle shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.ig-embed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.ig-embed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.ig-profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ig-profile-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(45deg, #f09433, #dc2743, #bc1888) border-box; /* IG Story ring */
}

.ig-username {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #000;
}

.ig-followers {
    font-size: 12px;
    color: #8e8e8e;
    margin: 0;
    font-weight: 400;
}

.ig-btn-view {
    background: #0095f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ig-btn-view:hover {
    background: #1877f2;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 149, 246, 0.3);
}

.ig-img-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    position: relative;
    background: #fafafa;
    overflow: hidden;
}

.ig-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.ig-embed-card:hover .ig-img-wrapper img {
    transform: scale(1.03);
}

.ig-embed-footer {
    padding: 16px;
}

.ig-view-more {
    font-size: 14px;
    color: #262626;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.ig-view-more:hover {
    color: #0095f6;
}

.ig-action-icons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ig-action-left {
    display: flex;
    gap: 16px;
}

.ig-action-icons i {
    font-size: 24px;
    color: #262626;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ig-action-left i.ti-heart:hover {
    color: #ed4956; /* IG Red Heart */
    transform: scale(1.1);
}

.ig-action-left i:not(.ti-heart):hover,
.ig-action-icons > i:hover {
    color: #8e8e8e;
    transform: scale(1.1);
}

.ig-likes {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #262626;
}

.ig-add-comment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 14px;
    color: #8e8e8e;
    font-size: 14px;
}

.ig-add-comment i {
    font-size: 18px;
    cursor: pointer;
}

.ig-add-comment i:hover {
    color: #262626;
}

/* Base button if needed */
.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
    transition: all 0.3s ease;
}

.btn-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
    color: #fff;
}

/* ---- Footer ---- */
.footer-main {
    background: var(--polri-blue-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
}

.footer-main h5 {
    color: var(--polri-gold);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-main p {
    font-size: 0.9rem;
    line-height: 1.7;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--polri-gold);
    padding-left: 5px;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 15px 0;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-right: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--polri-gold);
    color: var(--polri-blue-dark);
    transform: translateY(-3px);
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212,168,67,0.3); }
    50% { box-shadow: 0 0 0 15px rgba(212,168,67,0); }
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .hero-title { font-size: 2rem; }
    .hero-section { min-height: 500px; }
    .stat-number { font-size: 2rem; }
    .section-padding { padding: 50px 0; }
}

@media (max-width: 767px) {
    .hero-title { font-size: 1.6rem; }
    .hero-section { min-height: 450px; }
    .pejabat-photo { height: 260px; }
}

/* Running text / marquee */
.running-text {
    overflow: hidden;
    white-space: nowrap;
}

.running-text-inner {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
