/* =========================================================================
   CLUSTER TIMELINE STYLES
   ========================================================================= */
/* =========================================================================
   MASTER TIMELINE TRACK (Centered & Full-Width Engine)
   ========================================================================= */

/* Master Timeline Wrapper */
.cluster-timeline-wrapper {
    position: relative;
    padding: 60px 0;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Timeline Track Row (Desktop Horizontal Layout) */
.cluster-timeline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

/* Horizontal Continuous Track Line 
   (3.846% offset anchors the line exact-center to the 1st and 13th dots) */
.cluster-timeline-row::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    background-color: #df8045 !important;
    left: 3.846% !important;
    right: 3.846% !important;
    z-index: 1;
}

/* Vertical Cluster Columns (Liquid 13-column distribution) */
.timeline-cluster {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 5;
    padding: 0 4px;
}

/* Text Containers Top/Bottom */
.cluster-top-text, 
.cluster-bottom-text {
    min-height: 80px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.cluster-top-text {
    justify-content: flex-end;
    margin-bottom: 20px;
}

.cluster-bottom-text {
    justify-content: flex-start;
    margin-top: 20px;
}

.empty-placeholder {
    visibility: hidden;
}

/* =========================================================================
   VERTICAL INTERSECT LINES (Directional Stems)
   ========================================================================= */

/* Base container for the center line segment */
.cluster-center-line {
    height: 40px;
    width: 3px;
    background-color: transparent !important; /* Managed via pseudo-elements for directional alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Base Stem Line */
.cluster-center-line::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 20px; /* Extends from horizontal axis to text boundary */
    background-color: #df8045;
    z-index: 2;
}

/* TOP NODES: Line extends UPWARDS from center dot to top text */
.timeline-cluster:has(.cluster-top-text:not(.empty-placeholder)) .cluster-center-line::before {
    top: 0;
    bottom: 50%;
}

/* BOTTOM NODES: Line extends DOWNWARDS from center dot to bottom text */
.timeline-cluster:has(.cluster-bottom-text:not(.empty-placeholder)) .cluster-center-line::before {
    top: 50%;
    bottom: 0;
}

/* Mobile Reset */
@media (max-width: 991px) {
    .cluster-center-line,
    .cluster-center-line::before {
        display: none !important;
    }
}

/* Timeline Dots */
.cluster-dot {
    width: 16px;
    height: 16px;
    background-color: #df8045 !important;
    border: 2px solid #df8045 !important;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 0 0 4px #ffffff;
}

/* Active / Emphasized Dot Highlights */
.cluster-dot.dot-active-bottom,
.cluster-dot.dot-active-top {
    width: 20px;
    height: 20px;
    background-color: #011547 !important;
    box-shadow: 0 0 0 4px #ffffff, 0 0 0 7px rgba(1, 21, 71, 0.25) !important;
}

/* =========================================================================
   TYPOGRAPHY SCALING & COLOR SCHEME
   ========================================================================= */

/* Standard Nodes */
.node-year {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #df8045 !important;
}

.node-location,
.text-color-dark {
    font-size: 1.05rem;
    line-height: 1.35;
    color: #222222 !important;
}

/* Manila / Emphasized Nodes (Purple Highlights) */
.node-year-mnl {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 4px;
    color: #3d0481 !important;
}

.node-location-mnl {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    color: #3d0481 !important;
}

/* =========================================================================
   RESPONSIVE LAYOUT (Mobile Viewports <= 991px)
   ========================================================================= */

@media (max-width: 991px) {
    .cluster-timeline-wrapper {
        padding: 30px 0;
    }

    .cluster-timeline-row {
        flex-direction: column;
    }

    .cluster-timeline-row::before,
    .cluster-center-line {
        display: none;
    }

    .timeline-cluster {
        flex: 1 1 auto;
        width: 100%;
        align-items: flex-start;
        text-align: left;
        padding-left: 40px;
        margin-bottom: 35px;
    }

    .cluster-top-text, 
    .cluster-bottom-text {
        min-height: auto;
        margin: 0;
    }

    .cluster-top-text {
        margin-bottom: 20px;
    }

    /* Vertical Mobile Track Line */
    .timeline-cluster::before {
        content: '';
        position: absolute;
        left: 6px;
        top: 8px;
        bottom: -35px;
        width: 3px;
        background-color: #011547;
        z-index: 1;
    }

    .timeline-cluster:last-child::before {
        display: none;
    }

    /* Mobile Timeline Dots */
    .cluster-top-text::before, 
    .cluster-bottom-text::before {
        content: '';
        position: absolute;
        left: 0;
        width: 15px;
        height: 15px;
        background-color: #011547;
        border-radius: 50%;
        z-index: 5;
    }

    .cluster-top-text::before { top: 6px; }
    .cluster-bottom-text::before { bottom: 6px; }
    .empty-placeholder::before { display: none; }
}

/* Background section reset override style */
.custom-countdown-section {
    background-color: #f7f9fc !important; 
}

/* Base horizontal positioning row container layout */
.custom-countdown-layout {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Individual Metric Cards Design block */
.custom-countdown-layout .countdown-section {
    padding: 15px 25px !important;
    min-width: 110px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 0 8px 15px 8px !important;
    display: inline-block;
}

/* Large Digit Numbers styling */
.custom-countdown-layout .countdown-amount {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    color: #0088cc !important; /* Maps directly to your template's primary theme blue color */
    display: block;
    margin-bottom: 4px;
}

/* Label text descriptors below the numbers */
.custom-countdown-layout .countdown-period {
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
    color: #777777 !important;
    display: block;
}

/* Utility width limiter boundary helper */
.max-width-600 {
    max-width: 600px;
}

/* Responsive breakdowns optimized for small screen sizes and smartphones */
@media (max-width: 575px) {
    .custom-countdown-layout .countdown-section {
        padding: 10px 15px !important;
        min-width: 80px;
        margin: 0 4px 10px 4px !important;
    }
    .custom-countdown-layout .countdown-amount {
        font-size: 1.8rem !important;
    }
    .custom-countdown-layout .countdown-period {
        font-size: 0.7rem !important;
    }
}

/* Custom Profile Carousel Adjustments */
.thumb-info-caption {
    border-top: 1px solid #f0f0f0;
    transition: background-color 0.2s ease-in-out;
}
a:hover .thumb-info-caption {
    background-color: #fcfcfc !important;
}

/* Absolute constraint limits for modal profile images */
.max-width-200 {
    max-width: 200px;
    width: 100%;
    height: auto;
}

/* Smooth modal scaling entry transitions override */
.modal.fade .modal-dialog {
    transform: scale(0.95);
    transition: transform 0.2s ease-out;
}
.modal.show .modal-dialog {
    transform: scale(1);
}

/* Premium dark gradient background matching Porto's scale */
.custom-reg-cta {
    background: linear-gradient(135deg, #1c2024 0%, #121416 100%) !important;
}

/* Smooth hover physics transition for the registration button */
.transform-hover-up {
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s ease !important;
}
.transform-hover-up:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.3) !important; /* Glow matching Porto primary blue */
}

/* =========================================================================
   BALANCED PARTNER LOGOS GRID (MEDIUM SCALE)
   ========================================================================= */

.branding-logo-wrap {
    max-width: 160px !important;
    height: 140px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.branding-logo-wrap img {
    max-height: 100% !important;
    width: auto !important;
    object-fit: contain !important;
}

.branding-triple-spacer {
    height: 3rem !important; 
    width: 100%;
    display: block;
}

.social-branding-link {
    transition: transform 0.2s ease;
}
.social-branding-link:hover {
    transform: translateY(-2px);
}

.social-icon-fb {
    color: #3b5998;
    background: rgba(59, 89, 152, 0.08);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.social-icon-ig {
    color: #e1306c;
    background: rgba(225, 48, 108, 0.08);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Main Nav Links */
#mainNav a,
#mainNav .dropdown-item {
    color: #3d0481 !important;
}

/* Main nav active state */
#mainNav a.active,
#mainNav .dropdown-item.active {
    color: #3d0481 !important;
}

/* Main top-level menu link hover color */
#mainNav > li > a:hover {
    color: #3d0481 !important;
    background-color: transparent !important;
}

/* Dropdown menu container background color */
#mainNav .dropdown-menu {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Dropdown item hover and focus states */
#mainNav .dropdown-menu .dropdown-item:hover,
#mainNav .dropdown-menu .dropdown-item:focus {
    color: #ffffff !important;
    background-color: #3d0481 !important;
}

/* Dropdown divider lines */
#mainNav .dropdown-menu li:not(:last-child) {
    border-bottom: 1px solid #ffffff !important;
}

#mainNav .dropdown-menu .dropdown-item {
    border-color: #ffffff !important;
}

/* Mobile menu container background */
@media (max-width: 991px) {
    #mainNav,
    .header-nav-main-mobile-dark,
    .header-nav-main {
        background-color: #ffffff !important;
    }

    /* Mobile nav link text color */
    #mainNav a,
    #mainNav .dropdown-item {
        color: #3d0481 !important;
    }

    /* Active & hover states on mobile */
    #mainNav a.active,
    #mainNav a:hover,
    #mainNav a:focus,
    #mainNav .dropdown-item.active,
    #mainNav .dropdown-item:hover {
        background-color: transparent !important;
        background: none !important;
        color: #3d0481 !important;
    }
}

/* Mobile menu collapse button styles */
.header-btn-collapse-nav {
    background-color: #3d0481 !important;
    border-color: #3d0481 !important;
    color: #ffffff !important;
}

.header-btn-collapse-nav:hover,
.header-btn-collapse-nav:focus {
    background-color: #3d0481 !important;
    border-color: #3d0481 !important;
    opacity: 0.9;
}

/* Remove vertical side bars and borders in Porto mobile menu */
@media (max-width: 991px) {
    .header-nav-main,
    .header-nav-main-mobile-dark,
    .header-nav-main nav {
        border-left: none !important;
        border-right: none !important;
        box-shadow: none !important;
        outline: none !important;
    }

    .header-nav-main::before,
    .header-nav-main::after,
    .header-nav-main-mobile-dark::before,
    .header-nav-main-mobile-dark::after {
        display: none !important;
        content: none !important;
    }
}

@media (max-width: 991px) {
    #header.header-transparent {
        position: relative !important;
    }

    #header .header-body {
        position: relative !important;
        background-color: #ffffff !important;
    }

    .header-nav-main {
        position: relative !important;
        top: 0 !important;
        float: none !important;
        z-index: 10 !important;
    }
}

/* Enable smooth transitions for Porto sticky header scaling */
.header-logo img {
    transition: all 0.3s ease-in-out !important;
}

.header-logo {
    display: flex !important;
    align-items: center !important;
}

/* =========================================================================
   RESPONSIVE LOGO SCALING
   ========================================================================= */

.custom-header-logo,
#header .header-logo img {
    width: 70px !important; 
    height: auto !important;
    transition: all 0.3s ease-in-out !important;
}

html.sticky-header-active .custom-header-logo,
html.sticky-header-active #header .header-logo img {
    width: 45px !important;
    height: auto !important;
}

@media (max-width: 767px) {
    .custom-header-logo,
    #header .header-logo img {
        width: 105px !important;
    }

    html.sticky-header-active .custom-header-logo,
    html.sticky-header-active #header .header-logo img {
        width: 65px !important;
    }
}

#porto-live-countdown .countdown-amount {
    color: #3d0481 !important;
}


