/* ==========================================================================
   1. GLOBAL LANDING PAGE & HEADER STYLING (Page ID: 15743)
   ========================================================================== */

body.page-id-15743 {
    background: linear-gradient(to bottom, 
        darkblue 0%, 
        darkblue 35%,
        blue 65%,
        #000000 100%) !important;
    min-height: 100vh !important;
}

.page-id-15743 .site-header {
    background-color: darkblue !important;
    border-bottom: none !important;
}

.page-id-15743 .entry-header {
    text-align: center;
}

.page-id-15743 h1,
.page-id-15743 h5 {
    color: white !important;
}

.page-id-15743 .site-main {
    margin-top: 10px !important;
}

.page-id-15743 .inside-article {
    padding: 25px !important;
    padding-top: 15px !important;
    background: transparent !important;
    box-shadow: 0px 0px 0px transparent !important;
}

.page-id-15743 .site-description {
    display: none !important;
}

/* Stack Logo and Title Vertically */
.page-id-15743 .site-branding-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-id-15743 .site-logo {
    margin-bottom: 10px;
}


/* ==========================================================================
   2. NAVIGATION MENU STYLING
   ========================================================================== */

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle {
    background-color: transparent !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
    border-radius: 6px;
    border: 1px solid transparent;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:focus,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.sfHover > a,
.main-navigation .main-nav ul li.focus > a {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

.main-navigation .main-nav ul li {
    margin-right: 5px;
}

/* Sub-menus */
.main-navigation ul ul {
    background-color: #00008b !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px !important;
    padding: 5px !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    min-width: 200px;
}

.main-navigation ul ul > li {
    background-color: transparent !important;
    margin: 2px 5px !important;
    border-radius: 6px !important;
}

.main-navigation ul ul > li > a {
    background-color: transparent !important;
    color: #ffffff !important;
    padding: 10px 15px !important;
    border-radius: 6px !important;
}

.main-navigation ul ul > li:hover > a {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.main-navigation ul ul ul {
    margin-left: 0 !important;
    background-color: #00008b !important;
}


/* ==========================================================================
   3. THE PROFILE BADGE (SHIELD COMPONENT)
   ========================================================================== */

/* Hide sitewide by default, show on template page */
#profile-badge-wrapper { 
    display: none !important; 
}

.page-id-15743 #profile-badge-wrapper { 
    display: block !important; 
    position: fixed; 
    left: 0; 
    top: 20%; 
    z-index: 9999; 
    width: 50px; 
    height: 50px; 
}

/* The Triangle Trigger */
#badge-trigger {
    width: 100%;
    height: 100%;
    background-color: #ffd700;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    cursor: pointer;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10000;
}

/* The Shield Shape */
#profile-shield { 
    position: absolute;
    left: 0;
    top: 0;
    background: #000; 
    border: 4px solid #ffd700; 
    border-radius: 50% 50% 20% 20%; 
    width: 200px; 
    padding: 20px; 
    color: #fff; 
    text-align: center; 
    z-index: 10001;
}

#profile-shield.hidden { 
    display: none; 
}

.close-badge {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #ffd700;
}

/* Profile Menu Inside Shield */
.profile-menu { 
    position: relative; 
    margin-top: 15px; 
}

.menu-trigger { 
    background: #000; 
    color: #fff; 
    border: 1px solid #ffd700; 
    padding: 8px 12px; 
    border-radius: 6px; 
    cursor: pointer;
}

.dropdown-menu { 
    display: none; 
    list-style: none; 
    background: #000; 
    border: 1px solid #ffd700; 
    border-radius: 8px; 
    padding: 10px; 
    margin-top: 5px;
}

.profile-menu:hover .dropdown-menu { 
    display: block; 
}

.dropdown-menu li a { 
    color: #fff; 
    text-decoration: none; 
    padding: 6px; 
    display: block; 
    border-radius: 4px; 
}

.dropdown-menu li a:hover { 
    border: 1px solid #ffd700; 
}

/* ==========================================================================
   4. HORIZONTAL CAROUSEL LAYOUT (LISTS)
   ========================================================================== */

/* Horizontal scrolling container */
.mbl-carousel-layout {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 10px;
    max-height: 200px; 
    margin-bottom: 15px;
}

/* Remove the ul default styling */
.mbl-carousel-layout ul {
    display: inline-flex;
    gap: 15px;
    padding: 10px 5px;
    margin: 0;
    list-style: none;
    white-space: normal;
}

/* Each tag as a card */
.mbl-carousel-layout li {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px; 
    width: auto;      /* Let it stretch to fit the text */
    padding: 2px 2px !important;
    margin: 0;
    background: white;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    vertical-align: top;
}

/* Hover effect for interactivity */
.mbl-carousel-layout li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Show the images! */
.mbl-carousel-layout li img {
    display: block;
    width: 60px;
    height: 60px !important;
    object-fit: cover;
    border-radius: 10%; /* Circular avatar style */
    margin-bottom: 8px;
}

/* Make the link fill the li card entirely */
.mbl-carousel-layout li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 15px; /* Gives img padding without reducing coverage of <a> */
    text-decoration: none;
    border-radius: 8px;
}

/* Ensure the span (the text) fits the truncation logic */
.mbl-carousel-layout li a span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;
    color: #333;
    font-weight: 500;
    margin-top: 8px; /* Space between img and text */
    max-width: 90px;
}

/* GRID LAYOUT - Clean card style */
.mbl-grid-list {
    display: grid;
    gap: 25px;
    padding: 0;
}

.mbl-grid-list.columns-2 { grid-template-columns: repeat(2, 1fr); }
.mbl-grid-list.columns-3 { grid-template-columns: repeat(3, 1fr); }
.mbl-grid-list.columns-4 { grid-template-columns: repeat(4, 1fr); }

.mbl-grid-list .mbl-post-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mbl-grid-list .mbl-post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.mbl-grid-list .mbl-post-link {
    display: block;
    text-decoration: none;
    color: #333;
}

.mbl-grid-list .mbl-thumb-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
}

.mbl-grid-list .mbl-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mbl-grid-list .mbl-post-item:hover .mbl-thumb-wrapper img {
    transform: scale(1.05);
}

.mbl-grid-list .mbl-text {
    padding: 16px 20px 20px;
}

.mbl-grid-list .mbl-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
    color: #1a1a1a;
}

.mbl-grid-list .mbl-author {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 10px;
}

.mbl-grid-list .mbl-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* CARDS LAYOUT - Premium look */
.mbl-cards-list {
    display: grid;
    gap: 30px;
    padding: 0;
}

.mbl-cards-list .mbl-post-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.mbl-cards-list .mbl-post-item:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    border-color: #e0e0e0;
}

.mbl-cards-list .mbl-post-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
}

.mbl-cards-list .mbl-thumb-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.mbl-cards-list .mbl-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mbl-cards-list .mbl-text {
    padding: 24px 28px 28px;
}

.mbl-cards-list .mbl-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
    color: #1a1a1a;
}

.mbl-cards-list .mbl-title:hover {
    color: #0073aa;
}

.mbl-cards-list .mbl-author {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 12px;
}

.mbl-cards-list .mbl-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Cards - 2 column on desktop */
.mbl-cards-list.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Cards - single column on mobile */
@media (max-width: 768px) {
    .mbl-cards-list.columns-2,
    .mbl-cards-list.columns-3,
    .mbl-cards-list.columns-4 {
        grid-template-columns: 1fr;
    }
}

/* LIST LAYOUT - Clean blog style (probably replace with the existing layout in theme css)*/
/* 
.mbl-standard-list .mbl-post-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.mbl-standard-list .mbl-post-item:last-child {
    border-bottom: none;
}

.mbl-standard-list .mbl-post-link {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mbl-standard-list .mbl-post-link:hover {
    background: #f8f9fa;
}

.mbl-standard-list .mbl-thumb-wrapper {
    flex: 0 0 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.mbl-standard-list .mbl-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mbl-standard-list .mbl-text {
    flex: 1;
}

.mbl-standard-list .mbl-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: #1a1a1a;
}

.mbl-standard-list .mbl-title:hover {
    color: #0073aa;
}

.mbl-standard-list .mbl-author {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 4px;
}

.mbl-standard-list .mbl-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 600px) {
    .mbl-standard-list .mbl-post-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .mbl-standard-list .mbl-thumb-wrapper {
        flex: none;
        width: 100%;
        height: 200px;
    }
} */
/* COMPACT LAYOUT - Minimal style */
.mbl-compact-list .mbl-post-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mbl-compact-list .mbl-post-item:last-child {
    border-bottom: none;
}

.mbl-compact-list .mbl-post-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.mbl-compact-list .mbl-post-link:hover {
    background: #f5f5f5;
}

.mbl-compact-list .mbl-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a1a;
}

.mbl-compact-list .mbl-title:hover {
    color: #0073aa;
}

.mbl-compact-list .mbl-author {
    font-size: 0.8rem;
    color: #888;
    margin-left: 10px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .mbl-compact-list .mbl-post-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .mbl-compact-list .mbl-author {
        margin-left: 0;
    }
}

/* PAGINATION - Clean style */
/* Probably replace with existing stuff from theme css but test first
.mbl-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 30px 0 10px;
    flex-wrap: wrap;
}

.mbl-pagination a,
.mbl-pagination span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mbl-pagination a {
    background: #f0f0f0;
    color: #333;
}

.mbl-pagination a:hover {
    background: #0073aa;
    color: #fff;
}

.mbl-pagination .cpl-current-page {
    background: #0073aa;
    color: #fff;
    font-weight: 600;
}

.mbl-pagination .cpl-prev-page.disabled,
.mbl-pagination .cpl-next-page.disabled {
    color: #aaa;
    cursor: not-allowed;
    background: #f5f5f5;
}

.mbl-pagination .cpl-ellipsis {
    padding: 8px 4px;
    color: #888;
} */