/* Custom Sifira Stylesheet */

/* Hero Section with official deep green to Kemenkes blue gradient background */
.sifira-hero-section {
    background: linear-gradient(135deg, #004d37 0%, #0073a8 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0 140px 0;
    color: #ffffff;
}

.sifira-hero-section .sifira-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1rem;
}

.sifira-hero-section .sifira-hero-subtitle {
    font-size: 1.5rem;
    color: #f4c22b; /* Kariadi Gold */
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.sifira-hero-section .sifira-hero-desc {
    font-size: 1.1rem;
    color: #e2f0ec;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Sifira Interactive Diagram Container */
.sifira-diagram-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 520px;
    margin: 0 auto;
}

/* Background grid / glow behind diagram */
.sifira-diagram-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(244, 194, 43, 0.25) 0%, rgba(0, 108, 79, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* SVG Lines Overlay */
.sifira-lines-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.sifira-lines-overlay line {
    stroke: #f4c22b; /* Kariadi Gold flowing channels */
    stroke-width: 2.5px;
    stroke-dasharray: 8, 6;
    animation: sifiraFlow 6s linear infinite;
    opacity: 0.7;
}

@keyframes sifiraFlow {
    to {
        stroke-dashoffset: 50;
    }
}

/* Center Node */
.sifira-center-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130px;
    height: 130px;
    margin-top: -65px;
    margin-left: -65px;
    background: #ffffff;
    border: 5px solid #f4c22b; /* Gold border */
    border-radius: 50%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(244, 194, 43, 0.4);
    transition: all 0.4s ease;
    cursor: pointer;
}

.sifira-center-node:hover {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(244, 194, 43, 0.6);
}

.sifira-center-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.sifira-center-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #006c4f; /* Kariadi Green */
    margin-top: 5px;
    letter-spacing: 1px;
}

/* Channel Node */
.sifira-channel-node {
    position: absolute;
    width: 95px;
    height: 95px;
    margin-top: -47.5px;
    margin-left: -47.5px;
    background: rgba(0, 77, 55, 0.9); /* Transparent Green */
    border: 3px solid #006c4f;
    border-radius: 50%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-align: center;
    padding: 10px;
}

.sifira-channel-node:hover {
    background: #006c4f;
    border-color: #f4c22b;
    color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 12px 25px rgba(244, 194, 43, 0.5);
    z-index: 12;
}

.sifira-channel-icon {
    font-size: 1.5rem;
    color: #f4c22b; /* Gold icon */
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.sifira-channel-node:hover .sifira-channel-icon {
    color: #ffffff;
    transform: translateY(-2px);
}

.sifira-channel-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

/* Workflow Flow section at the bottom of hero */
.sifira-workflow-container {
    position: relative;
    z-index: 10;
    background: rgba(0, 77, 55, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 194, 43, 0.3);
    border-radius: 12px;
    padding: 30px;
    margin-top: -60px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.sifira-workflow-step {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sifira-workflow-icon-wrap {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    background: linear-gradient(135deg, #006c4f 0%, #f4c22b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    margin-right: 20px;
    box-shadow: 0 8px 16px rgba(0, 108, 79, 0.3);
}

.sifira-workflow-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.sifira-workflow-step-desc {
    font-size: 0.85rem;
    color: #c9e6de;
    margin: 0;
}

.sifira-workflow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #f4c22b;
    height: 100%;
}

.sifira-workflow-arrow i {
    animation: slideArrow 2s infinite;
}

@keyframes slideArrow {
    0% { transform: translateX(-4px); opacity: 0.5; }
    50% { transform: translateX(4px); opacity: 1; }
    100% { transform: translateX(-4px); opacity: 0.5; }
}

/* Pillar Benefits Section (Right of diagram in screenshot) */
.sifira-pillar-card {
    background: #ffffff;
    border: 1px solid #eef2f1;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 108, 79, 0.04);
    height: 100%;
}

.sifira-pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 108, 79, 0.1);
    border-color: rgba(244, 194, 43, 0.2);
}

.sifira-pillar-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 108, 79, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #006c4f;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.sifira-pillar-card:hover .sifira-pillar-icon-wrap {
    background: #006c4f;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 108, 79, 0.3);
}

.sifira-pillar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #112d24;
    margin-bottom: 10px;
}

.sifira-pillar-desc {
    font-size: 0.95rem;
    color: #65757d;
    line-height: 1.5;
    margin: 0;
}

/* Adjustments for theme components */
.card.custom-card-style-1 {
    border-top: 4px solid #006c4f !important;
}

.card.custom-card-style-1:hover {
    border-top-color: #f4c22b !important;
}

.custom-read-more-link {
    color: #006c4f !important;
}

.custom-read-more-link:hover {
    color: #f4c22b !important;
}

/* Responsive adjustments for circular diagram */
@media (max-width: 991px) {
    .sifira-hero-section {
        padding: 60px 0 100px 0;
        text-align: center;
    }
    .sifira-diagram-wrapper {
        margin-top: 50px;
        max-width: 400px;
        height: 400px;
    }
    .sifira-center-node {
        width: 100px;
        height: 100px;
        margin-top: -50px;
        margin-left: -50px;
    }
    .sifira-center-logo-img {
        width: 45px;
        height: 45px;
    }
    .sifira-center-title {
        font-size: 0.75rem;
    }
    .sifira-channel-node {
        width: 80px;
        height: 80px;
        margin-top: -40px;
        margin-left: -40px;
        padding: 5px;
    }
    .sifira-channel-icon {
        font-size: 1.2rem;
    }
    .sifira-channel-label {
        font-size: 0.6rem;
    }
    .sifira-workflow-container {
        margin-top: -30px;
    }
    .sifira-workflow-arrow {
        margin: 15px 0;
        transform: rotate(90deg);
    }
}

@media (max-width: 575px) {
    .sifira-diagram-wrapper {
        max-width: 320px;
        height: 320px;
    }
    .sifira-center-node {
        width: 80px;
        height: 80px;
        margin-top: -40px;
        margin-left: -40px;
    }
    .sifira-center-logo-img {
        width: 35px;
        height: 35px;
    }
    .sifira-center-title {
        font-size: 0.65rem;
    }
    .sifira-channel-node {
        width: 65px;
        height: 65px;
        margin-top: -32.5px;
        margin-left: -32.5px;
        padding: 3px;
    }
    .sifira-channel-icon {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    .sifira-channel-label {
        font-size: 0.5rem;
    }
}

/* Custom Header Styling for Sifira */
.sifira-header-body {
    background: linear-gradient(90deg, #004d37 0%, #006c4f 50%, #0073a8 100%) !important;
    border-bottom: 3px solid #f4c22b !important; /* Gold border flow to represent connection */
}

/* Ensure header top section aligns nicely with colors */
#header .header-top {
    background: rgba(0, 0, 0, 0.25) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Hover and active states for navigation menu */
@media (min-width: 992px) {
    #header .header-nav-main nav > ul > li > a {
        color: #ffffff !important;
        font-weight: 600;
        transition: all 0.2s ease;
    }
    #header .header-nav-main nav > ul > li > a:hover {
        color: #f4c22b !important; /* Gold hover */
    }
    #header .header-nav-main nav > ul > li > a.active {
        color: #f4c22b !important;
        border-bottom-color: #f4c22b !important;
    }
}

/* Sifira Dropdown Menu Customization */
#header .header-nav-main nav > ul .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #e2f0ec !important;
    border-top: 3px solid #006c4f !important; /* Kariadi Green top border */
    box-shadow: 0 10px 30px rgba(0, 108, 79, 0.08) !important;
}

#header .header-nav-main nav > ul .dropdown-menu li a {
    color: #112d24 !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

#header .header-nav-main nav > ul .dropdown-menu li a:hover {
    background-color: rgba(0, 108, 79, 0.05) !important; /* Soft green hover bg */
    color: #006c4f !important; /* Kariadi Green text on hover */
}

/* Elegant Sifira Button Styling Override */
.btn-primary {
    background: linear-gradient(135deg, #0073a8 0%, #005a84 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 12px !important; /* Matches modern card borders */
    padding: 0.8rem 2.2rem !important;
    box-shadow: 0 6px 18px rgba(0, 115, 168, 0.22) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #005a84 0%, #006c4f 100%) !important; /* Blends to Kariadi green on hover */
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(0, 108, 79, 0.32) !important;
}

.btn-primary:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(0, 108, 79, 0.2) !important;
}

/* Call Center Outline Button */
.btn-outline.btn-light {
    border: 2px solid rgba(255, 255, 255, 0.45) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 0.8rem 2.2rem !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-outline.btn-light:hover {
    background: #ffffff !important;
    color: #004d37 !important; /* Deep Green */
    border-color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.22) !important;
}

/* CTA Primary Button (Buat Laporan) */
.sifira-action-btn-primary {
    background: linear-gradient(135deg, #f4c22b 0%, #e0ab16 100%) !important; /* Gold gradient */
    color: #004d37 !important;
    border: none !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(244, 194, 43, 0.28) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.sifira-action-btn-primary:hover {
    background: #ffffff !important;
    color: #006c4f !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.35) !important;
}

/* CTA Outline Buttons (Lacak, Dashboard, SENSE) */
.sifira-action-btn-outline {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.sifira-action-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15) !important;
}

/* SIFIRA-EDU Button */
.sifira-action-section .btn-outline-success {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    padding: .82rem 1.15rem !important;
    margin: .2rem !important;
    white-space: nowrap !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.sifira-action-section .btn-outline-success:hover {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
    color: #ffffff !important;
    border-color: #28a745 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.28) !important;
}

/* Elegant Sifira Footer Top Info Section */
.footer-top-info .container-fluid {
    padding: 0 !important;
}

.footer-top-info .row {
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
}

.footer-top-info .row > div {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.footer-top-info .row > div:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22) !important;
    z-index: 5;
}

.footer-top-info .row > div:nth-child(1) {
    background: linear-gradient(135deg, #004d37 0%, #006c4f 100%) !important; /* Deep Emerald Green */
}

.footer-top-info .row > div:nth-child(2) {
    background: linear-gradient(135deg, #006c4f 0%, #0073a8 100%) !important; /* Green to Kemenkes Blue */
}

.footer-top-info .row > div:nth-child(3) {
    background: linear-gradient(135deg, #0073a8 0%, #005a84 100%) !important; /* Deep Kemenkes Blue */
}

.footer-top-info .row > div h4 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 4px !important;
}

.footer-top-info .row > div p {
    font-size: 0.88rem !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

.footer-top-info .btn-footer-top-info {
    border-radius: 30px !important; /* Elegant pill button */
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    padding: 0.6rem 1.6rem !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    height: auto !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.footer-top-info .row > div:hover .btn-footer-top-info {
    background: #f4c22b !important; /* Elegant Gold */
    color: #002d20 !important;
    border-color: #f4c22b !important;
    box-shadow: 0 5px 15px rgba(244, 194, 43, 0.35) !important;
    transform: scale(1.05);
}

#footer {
    background: linear-gradient(180deg, #002d20 0%, #001a12 100%) !important; /* Deep signature dark green */
    border-top: 4px solid #f4c22b !important; /* Elegant Kariadi Gold top border flow */
    color: rgba(255, 255, 255, 0.75) !important;
}

#footer h4 {
    color: #f4c22b !important; /* Kariadi Gold headings */
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

#footer a {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.2s ease !important;
}

#footer a:hover {
    color: #f4c22b !important; /* Gold hover transition */
    text-decoration: none !important;
}

#footer .info.custom-info span,
#footer .info.custom-info a,
#footer .info.custom-info div {
    color: rgba(255, 255, 255, 0.85) !important;
}

#footer .info.custom-info .title-custom-info-block {
    color: #f4c22b !important; /* Gold contact details title */
    font-size: 0.75rem !important;
}

.social-icons li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#footer .social-icons li a {
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 50%;
    transition: all 0.3s ease !important;
}

#footer .social-icons li:hover a {
    color: #002d20 !important;
    background: #f4c22b !important; /* Gold background on hover */
}

#footer .footer-copyright {
    background: rgba(0, 0, 0, 0.2) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

#footer .footer-copyright p {
    color: rgba(255, 255, 255, 0.45) !important;
}

/* Social Media SVG Color Corrections */
.social-icons li a svg {
    fill: currentColor !important;
    transition: all 0.3s ease !important;
}

.social-icons.social-icons-icon-light li a svg {
    color: #ffffff !important;
}

/* SIFIRA-EDU Title Custom Styling */
.sifira-edu-title-custom {
    color: #0073a8 !important; /* Fallback Kemenkes Blue */
    background: linear-gradient(135deg, #0073a8 0%, #006c4f 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
}

/* SIFIRA Gold Badge style */
.badge-sifira-gold {
    background: linear-gradient(135deg, #f4c22b 0%, #e0ab16 100%) !important;
    color: #002d20 !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(244, 194, 43, 0.25);
    border: none !important;
}
