/* ==========================================================================
   DESIGN SYSTEM & CUSTOM STYLING - LABKESDA KETAPANG HOMEPAGE CLONE
   ========================================================================== */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    /* Color Palette */
    --primary-color: #0fcb85;
    --primary-gradient: linear-gradient(135deg, #60ffe2 0%, #19d55f 100%);
    --accent-color: #03e0e0;
    --secondary-gradient: linear-gradient(135deg, #03e0e0 0%, #0fcb85 100%);
    --dark-blue-grey: #15202b;
    --dark-footer-bg: #0e151d;
    
    /* Light Mode Variables */
    --body-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    --border-color: rgba(226, 232, 240, 0.8);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(15, 203, 133, 0.06), 0 4px 6px -2px rgba(15, 203, 133, 0.04);
    --shadow-hover: 0 20px 25px -5px rgba(15, 203, 133, 0.15), 0 10px 10px -5px rgba(15, 203, 133, 0.08);
    
    /* Font Configurations */
    --body-font: 'Raleway', 'Cairo', sans-serif;
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}



/* Reset Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--body-bg);
    transition: var(--transition-normal);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER & NAVIGATION STYLING - STATE OF THE ART GLASSMORPHIC DESIGN
   ========================================================================== */

header {
    width: 100%;
    z-index: 1000;
    position: absolute; /* Floating header on top of the hero section */
    top: 0;
    left: 0;
    transition: var(--transition-normal);
}

.xXvi-mainmenuWorks-wrap {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    height: 80px; /* Tall and premium */
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    transition: var(--transition-normal);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Sticky Header Morph on Scroll */
header.sticky .xXvi-mainmenuWorks-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px; /* Slims down slightly */
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(15, 203, 133, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}



@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

header.sticky + .flex-section {
    padding-top: 0; /* Handled gracefully since absolute floats above hero */
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: -2.5rem; /* Shifts logo and menu items further to the left */
}

/* Hamburger Icon for Mobile */
.show-menu-space {
    display: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

header.sticky .show-menu-space {
    color: var(--text-main);
}

.show-menu-space:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* Brand Logo styling */
.header-room {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.SuperLogo-img {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.mobile-logo-text {
    display: none; /* Hidden by default on desktop view */
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff; /* High contrast white on transparent header */
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

header.sticky .mobile-logo-text {
    color: var(--text-main); /* High contrast deep slate on white sticky header */
}


.SuperLogo-img img {
    height: 52px;
    width: auto;
    transition: var(--transition-normal);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
}

header.sticky .SuperLogo-img img {
    height: 46px; /* Slightly compact */
}

/* Navigation Links Grid */
.Super-FlexMenu ul#xXvi-menuflex {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.3rem;
}

.Super-FlexMenu ul#xXvi-menuflex > li {
    position: relative;
}

.Super-FlexMenu ul#xXvi-menuflex > li > a {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.6rem 1.1rem;
    border-radius: 30px; /* Sleek capsule style */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.Super-FlexMenu ul#xXvi-menuflex > li > a i {
    font-size: 0.9rem;
    opacity: 0.9;
}

.Super-FlexMenu ul#xXvi-menuflex > li > a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Sticky active text styling */
header.sticky .Super-FlexMenu ul#xXvi-menuflex > li > a {
    color: var(--text-main);
}

header.sticky .Super-FlexMenu ul#xXvi-menuflex > li > a:hover {
    background-color: rgba(15, 203, 133, 0.08);
    color: var(--primary-color);
}

/* Dropdown Menu - Glassmorphic Card Deck */
.Super-FlexMenu ul#xXvi-menuflex li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 250px;
    width: max-content;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 0.8rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
    border: 1px solid rgba(15, 203, 133, 0.15);
    border-left: 4px solid var(--primary-color); /* Premium accent vertical line */
}



.Super-FlexMenu ul#xXvi-menuflex li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px);
}

.Super-FlexMenu ul#xXvi-menuflex li ul.sub-menu li {
    position: relative;
}

.Super-FlexMenu ul#xXvi-menuflex li ul.sub-menu li a {
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    justify-content: flex-start;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.Super-FlexMenu ul#xXvi-menuflex li ul.sub-menu li a i {
    color: var(--primary-color);
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
    transition: var(--transition-fast);
}

.Super-FlexMenu ul#xXvi-menuflex li ul.sub-menu li a:hover {
    background-color: rgba(15, 203, 133, 0.08);
    color: var(--primary-color);
    transform: translateX(8px); /* Signature horizontal glide on hover */
}

.Super-FlexMenu ul#xXvi-menuflex li ul.sub-menu li a:hover i {
    transform: scale(1.15);
}

/* Nested Dropdowns (Level 2) */
.Super-FlexMenu ul#xXvi-menuflex li ul.sub-menu li ul.sub-menu2 {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 220px;
    width: max-content;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 0.8rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(15, 203, 133, 0.15);
    border-left: 4px solid var(--accent-color);
}



.Super-FlexMenu ul#xXvi-menuflex li ul.sub-menu li:hover > ul.sub-menu2 {
    opacity: 1;
    visibility: visible;
    transform: translateX(8px);
}

/* Caret Indicator Micro-interactions */
.sub-tab > a::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.6rem;
    margin-left: 0.4rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.Super-FlexMenu ul#xXvi-menuflex > li:hover > a::after {
    transform: rotate(180deg);
}

.sub-menu li.sub-tab > a::after {
    content: "\f054";
    transition: transform 0.3s ease;
}

.sub-menu li.sub-tab:hover > a::after {
    transform: rotate(90deg) translateX(2px);
}

/* Header Right Controls */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}



/* Scroll Progress Bar */
.scroll-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
    z-index: 1010;
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   HERO / BANNER SECTION
   ========================================================================== */

#mega-wrap {
    background: var(--secondary-gradient);
    padding: 5rem 0 7rem;
    position: relative;
    color: #ffffff;
    overflow: hidden;
}

#mega-wrap .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

/* Rotating glowing backgrounds behind hero */
.rotating-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.rotating-box li {
    position: absolute;
    list-style: none;
    display: block;
    background-color: rgba(255, 255, 255, 0.05);
    bottom: -150px;
    animation: bubbleUp 25s infinite linear;
    border-radius: 50%;
}

.rotating-box li:nth-child(1) { left: 10%; width: 80px; height: 80px; animation-delay: 0s; }
.rotating-box li:nth-child(2) { left: 20%; width: 120px; height: 120px; animation-delay: 2s; animation-duration: 17s; }
.rotating-box li:nth-child(3) { left: 25%; width: 50px; height: 50px; animation-delay: 4s; }
.rotating-box li:nth-child(4) { left: 40%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 22s; }
.rotating-box li:nth-child(5) { left: 70%; width: 90px; height: 90px; animation-delay: 6s; }
.rotating-box li:nth-child(6) { left: 80%; width: 110px; height: 110px; animation-delay: 3s; }

@keyframes bubbleUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-1000px) rotate(360deg); opacity: 0; border-radius: 30%; }
}

.color-wrapper {
    max-width: 600px;
}

.flexi-title h3 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.8s ease;
}

.color-caption {
    font-size: 1.15rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    display: block;
    animation: fadeInUp 1s ease;
}

.hero-register-svg-link {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    line-height: 0;
    animation: fadeInUp 1.2s ease;
}

.hero-register-svg {
    display: block;
    width: 250px;
    height: auto;
    overflow: visible;
    transition: var(--transition-normal);
}

.hero-register-svg-link:hover .hero-register-svg {
    transform: translateY(-6px) scale(1.05);
    filter: drop-shadow(0 12px 24px rgba(3, 224, 224, 0.5));
}

.hero-register-svg-link:active .hero-register-svg {
    transform: translateY(-2px) scale(1.01);
    filter: drop-shadow(0 6px 12px rgba(3, 224, 224, 0.3));
}

.color-image {
    display: flex;
    justify-content: center;
    animation: floatImage 4s ease-in-out infinite;
}

.color-image img {
    max-height: 380px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
}

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

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

/* SVG Wave Divider */
.color-hero {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 5;
    line-height: 0;
}

svg#color-wave {
    width: 100%;
    height: 80px;
    fill: var(--body-bg);
    transition: var(--transition-normal);
}

/* ==========================================================================
   WELCOME BANNER & GRID STRUCTURE
   ========================================================================== */

#mega-flex0 {
    margin-top: 0;
    position: relative;
    z-index: 10;
    padding-bottom: 2rem;
}

.head-title {
    text-align: center;
    padding: 2.5rem 1rem 1rem;
}

.head-title .widget-title h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.head-title p.widget-content {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 0.8rem;
}

.head-title p.widget-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Main Workspace Grid */
.outer-container {
    margin-bottom: 4rem;
}

/* ==========================================================================
   RECENT POSTS GRID ("Berita Terbaru")
   ========================================================================== */

#feed-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-header-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}

.section-header-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.grid-posts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Blog Post Card */
.blog-post {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(15, 203, 133, 0.3);
}

.post-thumb-wrap {
    width: 100%;
    height: 190px;
    overflow: hidden;
    position: relative;
}

.post-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.blog-post:hover .post-thumb-wrap img {
    transform: scale(1.08) rotate(1deg);
}

.post-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(25, 213, 95, 0.3);
}

.post-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-details h4.entry-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

.post-details h4.entry-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.post-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.post-footer-btn i {
    transition: var(--transition-fast);
}

.blog-post:hover .post-footer-btn i {
    transform: translateX(5px);
}

/* Load More Button Wrapper */
.blog-pager {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.load-more-btn {
    background-color: var(--primary-color);
    background: var(--primary-gradient);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(25, 213, 95, 0.3);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(25, 213, 95, 0.4);
}

.load-more-btn:active {
    transform: translateY(-1px);
}

/* ==========================================================================
   SIDEBAR COMPONENT
   ========================================================================== */

#sidebar-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.sidebar-widget {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-lg);
}

.widget-header-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0.8rem;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.widget-header-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Profile Widget Card */
.profile-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-avatar-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(15, 203, 133, 0.15);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.sidebar-widget:hover .profile-avatar-wrap {
    transform: scale(1.05) rotate(5deg);
    border-color: var(--primary-color);
}

.profile-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card h5 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-color);
}

.profile-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.profile-info-location {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

/* Popular Posts Widget */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: var(--transition-fast);
}

.popular-post-item:hover {
    transform: translateX(5px);
}

.popular-thumb-wrap {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-info h6 {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-info h6 a:hover {
    color: var(--primary-color);
}

.popular-info span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Social Widget */
.social-grid-filter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.social-button {
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.social-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: var(--shadow-md);
}

.social-button.facebook { background-color: #3b5999; }
.social-button.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-button.whatsapp { background-color: #25d366; }
.social-button.email { background-color: #64748b; }

/* Category Tags Widget */
.category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-cloud-item {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    background-color: rgba(15, 203, 133, 0.08);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(15, 203, 133, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.category-cloud-item:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.category-cloud-item span.count {
    background-color: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-weight: 800;
}



/* ==========================================================================
   FOOTER COMPONENT
   ========================================================================== */

#footer-wrapper {
    background-color: var(--dark-blue-grey);
    color: #d1d5db;
    padding-top: 4rem;
    border-top: 4px solid var(--primary-color);
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-widget h5 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-about-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-about-info p {
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.85rem;
}

.footer-contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.footer-contact-details li i {
    color: var(--primary-color);
    margin-top: 0.2rem;
    font-size: 0.95rem;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    list-style: none;
}

.footer-links-list li a {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.footer-links-list li a::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.footer-links-list li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-social-box p {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
}

.footer-social-icons {
    display: flex;
    gap: 0.8rem;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.footer-social-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(15, 203, 133, 0.4);
}

/* Copyright Bar */
.footer-container {
    background-color: var(--dark-footer-bg);
    padding: 1.5rem 0;
}

.footer-outer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #9ca3af;
}

.footer-outer a:hover {
    color: var(--primary-color);
}

.footer-checks-menu ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

/* ==========================================================================
   MODAL OVERLAYS & SEARCH MODAL
   ========================================================================== */



/* ==========================================================================
   MOBILE SLIDE-OUT MENU STYLING
   ========================================================================== */

#menu-space {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background-color: var(--card-bg);
    z-index: 600;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-right: 3px solid var(--primary-color);
}

#menu-space.show {
    left: 0;
}

.area-runs {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.hide-xXvi-mainmenu {
    font-size: 1.3rem;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-fast);
}

.hide-xXvi-mainmenu:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.menu-space-flex {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.xXvi-mainmenu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.xXvi-mainmenu ul li {
    width: 100%;
}

.xXvi-mainmenu ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.xXvi-mainmenu ul li a:hover {
    background-color: rgba(15, 203, 133, 0.08);
    color: var(--primary-color);
}

/* Mobile Dropdown Sub-menus */
.xXvi-mainmenu ul li ul.sub-menu {
    list-style: none;
    padding-left: 1rem;
    display: none;
    margin: 0.3rem 0;
    border-left: 2px solid var(--border-color);
}

.xXvi-mainmenu ul li ul.sub-menu.open {
    display: flex;
    flex-direction: column;
}

.xXvi-mainmenu ul li ul.sub-menu li a {
    font-weight: 600;
    font-size: 0.85rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 550;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Back to Top button */
.backTop {
    position: fixed;
    bottom: -50px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-color);
    background: var(--primary-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(25, 213, 95, 0.3);
    cursor: pointer;
    z-index: 90;
    transition: var(--transition-normal);
    opacity: 0;
    visibility: hidden;
}

.backTop.show {
    bottom: 25px;
    opacity: 1;
    visibility: visible;
}

.backTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(25, 213, 95, 0.5);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media screen and (max-width: 1024px) {
    #mega-wrap .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .color-wrapper {
        margin: 0 auto;
    }
    
    .color-image {
        order: -1;
    }
    
    .color-image img {
        max-height: 280px;
    }
    
    .outer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 880px) {
    .header-left {
        margin-left: 0; /* Prevent the hamburger icon from being clipped on the left in mobile mode */
        gap: 1.2rem;    /* Balanced spacing between hamburger and brand logo */
    }
    
    .mobile-logo-text {
        display: inline-block; /* Shown next to the brand logo icon on mobile */
        font-size: 1rem;
    }
    
    .show-menu-space {
        display: block;
    }
    
    .Super-FlexMenu {
        display: none; /* Hide desktop nav menu */
    }
    
    .grid-posts {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 640px) {
    .flexi-title h3 {
        font-size: 2.2rem;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    .footer-outer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-checks-menu ul {
        justify-content: center;
    }
}

/* ==========================================================================
   RICH TEXT & WYSIWYG STYLING (.article-content)
   ========================================================================== */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: block;
}

.article-content h1, 
.article-content h2, 
.article-content h3, 
.article-content h4 {
    color: var(--primary-color);
    font-weight: 800;
    margin: 2rem 0 1rem;
    letter-spacing: 0.5px;
}

.article-content h1 { font-size: 1.8rem; }
.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.3rem; }
.article-content h4 { font-size: 1.15rem; }

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    background-color: rgba(15, 203, 133, 0.05);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-muted);
}

.article-content ul, 
.article-content ol {
    margin: 1.2rem 0 1.2rem 2rem;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
    transition: var(--transition-fast);
}

.article-content a:hover {
    color: var(--accent-color);
}

.article-content pre, 
.article-content code {
    font-family: monospace;
    background-color: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.article-content pre {
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid rgba(0,0,0,0.05);
}

@media screen and (max-width: 480px) {
    .mobile-logo-text {
        font-size: 0.85rem; /* Smaller size for tiny phone screens to prevent wrapping */
        letter-spacing: 0.2px;
    }
}


