/* ==========================================================================
   B.P.L Associates - GST Page-Specific Stylesheet
   ========================================================================== */

.details-hero {
    position: relative;
    padding: 160px 0 90px 0;
    background: radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, var(--primary) 0%, #030d1a 100%);
    color: #FFFFFF;
    overflow: hidden;
}

.details-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.breadcrumb-custom a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-custom a:hover {
    color: #ffffff;
}

.breadcrumb-separator {
    opacity: 0.4;
}

.compliance-wrapper {
    padding: 6rem 0;
    background-color: #fcfcfd;
}

/* Timeline/Progress Step layout Styles */
.timeline-container {
    position: relative;
    padding-left: 3rem;
    border-left: 2px dashed rgba(212, 175, 55, 0.35);
    margin-top: 1rem;
}

.timeline-step {
    position: relative;
    margin-bottom: 3.5rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: calc(-3rem - 22px);
    top: 8px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 3px solid var(--secondary);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-step:hover .timeline-badge {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.3);
}

.timeline-content-card {
    background: #FFFFFF;
    border: 1px solid rgba(8, 26, 51, 0.06);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(8, 26, 51, 0.015);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-content-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: var(--shadow-lg);
}

.timeline-step-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.timeline-step-icon {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background-color: rgba(8, 26, 51, 0.03);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.timeline-content-card:hover .timeline-step-icon {
    background-color: var(--primary);
    color: var(--secondary);
}

.detail-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    margin-top: auto;
}

.detail-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
    color: #556980;
    line-height: 1.6;
}

.detail-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary);
    font-size: 0.85rem;
}

/* Sidebar Components */
.gst-sidebar-card {
    background-color: #ffffff;
    border: 1px solid rgba(8, 26, 51, 0.06);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(8, 26, 51, 0.01);
    margin-bottom: 2rem;
}

.gst-sidebar-card.dark-panel {
    background-color: #081A33;
    border-color: rgba(212, 175, 55, 0.3);
    color: #ffffff;
}

.gst-sidebar-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

.gst-sidebar-card.dark-panel .gst-sidebar-title {
    color: #ffffff;
}

/* Document download list inside sidebar */
.gst-doc-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.gst-doc-item {
    position: relative;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(8, 26, 51, 0.05);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.gst-doc-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gst-doc-title-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.gst-doc-icon {
    color: #ef4444;
    font-size: 1.1rem;
    margin-top: 0.15rem;
}

.gst-doc-text {
    font-size: 0.88rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.5;
}

.gst-doc-btn {
    border: none;
    background: none;
    color: var(--secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gst-doc-btn:hover {
    transform: scale(1.15);
}

/* Rule 37 Callout Alert */
.rule37-box {
    border-left: 4px solid var(--secondary);
    background-color: rgba(255, 255, 255, 0.03);
    padding: 1.25rem;
    border-radius: 0 8px 8px 0;
}

.rule37-box h6 {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.rule37-box p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.rule37-alert {
    color: #fca5a5;
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 0;
}

/* GST Calendar Lists */
.calendar-block {
    border-bottom: 1px solid rgba(8, 26, 51, 0.05);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.calendar-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.calendar-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.calendar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #475569;
}

.calendar-row strong {
    color: #0f172a;
}

.calendar-date {
    background-color: rgba(212, 175, 55, 0.12);
    color: #b89218;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.78rem;
}

/* Video Section styling */
.gst-video-container {
    margin-top: 3.5rem;
    background-color: #ffffff;
    border: 1px solid rgba(8, 26, 51, 0.06);
    border-radius: 16px;
    padding: 2.5rem;
}

.gst-video-viewport {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.gst-video-viewport iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.gst-video-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Flashing Badge */
.gst-new-badge {
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    animation: pulseGst 1.5s infinite;
}

@keyframes pulseGst {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .details-hero {
        padding: 120px 0 60px 0;
    }

    .details-hero h1 {
        font-size: 2.2rem !important;
    }

    .compliance-wrapper {
        padding: 4rem 0;
    }

    .compliance-wrapper h2 {
        font-size: 1.75rem !important;
    }

    .timeline-container {
        padding-left: 2.5rem;
        margin-left: 0.5rem;
        border-left: 2px dashed rgba(212, 175, 55, 0.35);
    }

    .timeline-badge {
        left: calc(-2.5rem - 20px);
        /* Centers the 38px badge on the 2px dashed line */
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
        top: 10px;
        border-width: 2px;
    }

    .timeline-step {
        margin-bottom: 2.5rem;
    }

    .timeline-content-card {
        padding: 1.75rem;
    }

    .timeline-step-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .timeline-step-header h4 {
        font-size: 1.25rem !important;
        margin-bottom: 0 !important;
    }

    .timeline-step-icon {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
    }

    .gst-video-container {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Advanced Rule 37 Calculator & Calendar Switcher Styles
   ========================================================================== */

.calc-wrapper {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.25rem;
}

.calc-input-group {
    margin-bottom: 1rem;
}

.calc-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.4rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calc-control {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 6px;
    padding: 0.45rem 0.6rem;
    font-size: 0.82rem;
    width: 100%;
    transition: all 0.3s ease;
    color-scheme: dark;
    /* makes datepicker dark themed */
}

.calc-control:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.segmented-control {
    display: flex;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.segmented-option {
    flex: 1;
    text-align: center;
}

.segmented-option input {
    display: none;
}

.segmented-label {
    display: block;
    padding: 0.45rem 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.segmented-option input:checked+.segmented-label {
    background-color: var(--secondary);
    color: #081A33;
}

.calc-result-box {
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 1rem;
    border-top: 3px solid var(--secondary);
    margin-top: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.calc-result-row:last-child {
    margin-bottom: 0;
}

.calc-result-val {
    font-weight: 700;
    color: #ffffff;
}

.calc-status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-safe {
    background-color: rgba(16, 185, 129, 0.18);
    color: #34d399;
}

.status-warning {
    background-color: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

.status-danger {
    background-color: rgba(239, 68, 68, 0.18);
    color: #f87171;
}

/* Calendar Toggle Switcher */
.calendar-switch-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    background-color: rgba(8, 26, 51, 0.03);
    border-radius: 30px;
    padding: 3px;
    border: 1px solid rgba(8, 26, 51, 0.06);
}

.calendar-toggle-btn {
    border: none;
    background: none;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 30px;
    flex: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-toggle-btn.active {
    background-color: var(--primary);
    color: #ffffff;
}

.calendar-tab-content {
    display: none;
    animation: fadeInGst 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes fadeInGst {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

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

/* Range input styling overrides */
.form-range::-webkit-slider-thumb {
    background: var(--primary);
}

.form-range::-moz-range-thumb {
    background: var(--primary);
}

.form-range::-ms-thumb {
    background: var(--primary);
}

.bg-danger-subtle {
    background-color: rgba(239, 68, 68, 0.12) !important;
}

.bg-success-subtle {
    background-color: rgba(16, 185, 129, 0.12) !important;
}

.text-danger {
    color: #ef4444 !important;
}

.text-success {
    color: #10b981 !important;
}

.progress-bar.bg-gold {
    background-color: var(--secondary) !important;
}

.progress-bar.bg-danger {
    background-color: #ef4444 !important;
}