/* Ensure vertical scroll works: only hide horizontal overflow on html */

body {
    font-family: system-ui, Arial, sans-serif;
}

header,
footer {
    background: #f8f9fa;
}

footer {
    font-size: 14px;
}

/* Logo Styles */
.site-logo {
    display: inline-block;
    text-decoration: none;
}
.pending_member_approval .author-box-minimal{display:none;}

.logo-image {
    width: auto;
    display: block;
    object-fit: contain;
    max-height: 100px;
    /* Fallback max height for very large images */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left,
.header-center,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
}

.header-center {
    justify-content: center;
}

.header-right {
    justify-content: flex-end;
}

.header-content h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.site-logo-text {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.site-logo-text a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.site-logo-text a:hover {
    opacity: 0.8;
}

@media (max-width: 576px) {

    .header-content h1,
    .site-logo-text {
        font-size: 20px;
    }
}

/* Back Header Styles */
.back-header-wrapper {
    padding: 3px 0;
}

.back-header-wrapper .back-header-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.back-header-left {
    flex: 0 0 auto;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.back-header-title {
    flex: 1;
    text-align: center;
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.back-header-title span {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 100px);
}

.back-header-right {
    flex: 0 0 auto;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.back-header-back {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.back-header-back:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.back-header-back:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
}

.back-header-back i {
    color: #fff;
    font-size: 16px;
    display: block;
}

@media (max-width: 576px) {
    .back-header-title span {
        font-size: 15px;
        max-width: calc(100% - 90px);
    }
    
    .back-header-back {
        width: 36px;
        height: 36px;
    }
    
    .back-header-back i {
        font-size: 14px;
    }
}

/* Component Header Styles */
.component-header-wrapper {
    background-color: var(--primary-color, #0134d4) !important;
}

.component-header-wrapper .component-header-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background-color: transparent;
    border-bottom: none;
    margin: -12px 0;
    position: relative;
    z-index: 100;
}

.component-header-left,
.component-header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.component-header-left {
    justify-content: flex-start;
}

.component-header-right {
    justify-content: flex-end;
}

.component-header-title {
    flex: 1;
    text-align: center;
}

.component-header-wrapper .component-header-back {
    color: #fff;
}

.component-header-wrapper .component-header-back:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.component-header-wrapper .component-header-title {
    color: #fff;
}

.component-header-wrapper .floating-nav-toggle {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 20px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.component-header-wrapper .floating-nav-toggle:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.component-header-wrapper .floating-nav-toggle i {
    display: block;
}

/* Standalone component header (if used elsewhere) */
.component-header-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.component-header-back {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-color, #212529);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 6px;
    min-width: 40px;
    height: 40px;
}

.component-header-back:hover {
    background-color: #f8f9fa;
    color: var(--primary-color, #0134d4);
}

.component-header-back:active {
    background-color: #e9ecef;
}

.component-header-back i {
    font-size: 16px;
}

.component-header-custom .component-header-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.component-header-wrapper .component-header-left,
.component-header-wrapper .component-header-right {
    min-width: 40px;
}

@media (max-width: 576px) {
    .component-header-custom {
        padding: 10px 12px;
        margin-bottom: 15px;
    }

    .component-header-title {
        font-size: 15px;
    }

    .component-header-back {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
    }
}

/* Mobile Navigation Styles */

/* Header with hamburger icon */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mobile-nav-toggle,
.floating-nav-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-toggle:hover,
.floating-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-nav-toggle i,
.floating-nav-toggle i {
    display: block;
}

/* Floating nav toggle for regular header */
header .floating-nav-toggle {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

header .floating-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* User Avatar Icon in Floating Nav */
.user-avatar-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.floating-nav-toggle:hover .user-avatar-icon {
    border-color: rgba(255, 255, 255, 0.8);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Sidebar */
.mobile-nav-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 95%;
    max-width: 280px;
    height: 100%;
    background: #F0F5FF;
    z-index: 9999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 96vh;
}

.mobile-nav-sidebar.active {
    left: 0;
}

/* Right Floating Sidebar */
.mobile-nav-sidebar-right {
    left: auto;
    right: -100%;
    transition: right 0.3s ease;
}

.mobile-nav-sidebar-right.active {
    right: 0;
    left: auto;
}

/* Mobile Nav Header */
.mobile-nav-header {
    background: #F0F5FF;
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-close {
    background: #fff;
    border: none;
    color: #1e2746;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: all 0.2s ease;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-nav-close:hover {
    background-color: #f8f9fa;
    transform: scale(1.05);
}

/* Mobile Nav Menu - Module Wrapper */
.mobile-nav-sidebar .moduletable,
.mobile-nav-sidebar .mobile-nav-menu {
    padding: 15px;
    margin: 0;
    background: transparent;
    border: none;
}

.mobile-nav-sidebar .moduletable h3,
.mobile-nav-sidebar .mobile-nav-menu h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e2746;
    margin: 0 0 15px 0;
    padding: 0 5px;
    background: transparent;
    border: none;
}

/* Module Navigation Lists */
.mobile-nav-sidebar .mod-menu,
.mobile-nav-sidebar .mod-list,
.mobile-nav-sidebar .nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-sidebar .nav-item,
.mobile-nav-sidebar li {
    margin: 0 0 10px 0;
    border: none;
    width: 100%;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mobile-nav-sidebar .nav-item a,
.mobile-nav-sidebar li a {
    display: flex;
    align-items: center;
    padding: 15px;
    color: #1e2746;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
}

.mobile-nav-sidebar .nav-item a:hover,
.mobile-nav-sidebar li a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color, #0134d4);
}

.mobile-nav-sidebar .nav-item.active a,
.mobile-nav-sidebar li.active a,
.mobile-nav-sidebar .nav-item a.active,
.mobile-nav-sidebar li a.active {
    background-color: transparent;
    color: #fff;
}

/* Add arrow on the right */
.mobile-nav-sidebar .nav-item a::after,
.mobile-nav-sidebar li a::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: auto;
    font-size: 12px;
    transition: all 0.2s ease;
    float: right;
}

.mobile-nav-sidebar .nav-item a:hover::after,
.mobile-nav-sidebar li a:hover::after {
    transform: translateX(3px);
}


/* Icon Styling */
.mobile-nav-sidebar .nav-item a span[class*="fa-"],
.mobile-nav-sidebar li a span[class*="fa-"],
.mobile-nav-sidebar .nav-item a i[class*="fa-"],
.mobile-nav-sidebar li a i[class*="fa-"] {
    margin-right: 12px;
    font-size: 20px;
    width: 28px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Remove p-2 padding from icons in sidebar */
.mobile-nav-sidebar .p-2 {
    padding: 0 !important;
}

/* Empty State */
.mobile-nav-empty {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

/* Footer in Sidebar */
.mobile-nav-sidebar .container {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.mobile-nav-sidebar footer,
.mobile-nav-sidebar .modulefooter {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.mobile-nav-sidebar footer h3,
.mobile-nav-sidebar .modulefooter h3 {
    font-size: 14px;
    margin-bottom: 10px;
}

.mobile-nav-sidebar footer p,
.mobile-nav-sidebar .modulefooter p {
    font-size: 13px;
    color: #6c757d;
    margin: 5px 0;
}

.mobile-nav-sidebar footer a,
.mobile-nav-sidebar .modulefooter a {
    color: var(--primary-color, #0134d4);
    text-decoration: none;
    font-weight: 600;
}

.mobile-nav-sidebar footer a:hover,
.mobile-nav-sidebar .modulefooter a:hover {
    text-decoration: underline;
}

.mod-menu__sub li {
    background: transparent;
    box-shadow: none;
}




/* Desktop responsive styles removed - template is mobile-first only */

/* Prevent body scroll when menu is open */
body.mobile-nav-open {
    overflow: hidden;
}

/* ============================================
   Mobile Styles
   ============================================ */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* Container - Mobile First with max-width */
.container {
    width: 100%;
    max-width: 800px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Header */
header {
    background: #0134d4;
    color: white;
    padding: 15px 0;
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 20px;
}

/* Navigation */
nav {
    background: #f8f9fa;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

nav li {
    margin-right: 15px;
}

nav a {
    color: #212529;
    text-decoration: none;
    padding: 5px 10px;
    display: block;
}

nav a:hover {
    background: #e9ecef;
    border-radius: 4px;
}

/* Main Content */
main {
    min-height: 60vh;
}

/* Cards */
.card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: #0134d4;
    color: white;
}

.btn-primary:hover {
    background: #012a9e;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.my-4 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Main Wrapper with Sidebars */
.main-wrapper {
    display: flex;
    flex-direction: column;
}

.main-wrapper .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.main-wrapper .row>* {
    padding: 0 15px;
}

/* Sidebars */
.sidebar-left,
.sidebar-right {
    margin-bottom: 20px;
}

.sidebar-left .module,
.sidebar-right .module {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Module Title Styles */
.module-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e2746;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color, #0134d4);
}

.module-content {
    color: #212529;
    line-height: 1.6;
}

/* Component Wrapper */
.component-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.component-left,
.component-right {
    flex: 0 0 auto;
    width: 100%;
}

.component-content {
    flex: 1 1 auto;
    min-width: 0;
}

.component-left .module,
.component-right .module {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Desktop responsive styles removed - template is mobile-first only */

/* Mobile: Stack sidebars on top */
@media (max-width: 767px) {
    .main-wrapper .row {
        flex-direction: column;
    }

    .component-wrapper {
        flex-direction: column;
    }

    .component-left,
    .component-right {
        width: 100%;
    }

    .component-content.has-both-sidebars {
        margin: 0;
    }
}

/* ============================================
   Bottom Navigation Styles
   ============================================ */

/* Bottom Nav Container */
.bottom-nav-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    /* iOS notch support */
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 8px 0;
}

/* Bottom Nav Items */
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    padding: 8px 12px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: #0134d4;
}

/* Icons */
.bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    display: block;
}

/* Labels */
.bottom-nav-label {
    font-size: 0px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Add padding to body when bottom nav is active */
body.has-bottom-nav {
    padding-bottom: 65px;
}

/* Font Awesome Icons Support */
.fa,
.fas,
.far,
.fab {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands";
}

/* Bootstrap Icons Support */
.bi {
    font-family: "bootstrap-icons";
}

/* ============================================
   Article Details Styles
   ============================================ */

.article-details {
    padding: 20px 0;
    position: relative;
}

/* Category Badge */
figure+.article-category-badge {
    margin-bottom: 15px;
    position: absolute;
    top: 25px;
    left: 5px;
}

.article-category-badge .category-link {
    display: inline-block;
    padding: 6px 14px;
    background-color: #ffc107;
    /* Affan yellow */
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.article-category-badge .category-link:hover {
    background-color: #e0a800;
    color: #fff;
    text-decoration: none;
}

/* Article Header */
.article-header {
    margin-bottom: 15px;
}

.article-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e2746;
    margin: 0;
    line-height: 1.4;
}

/* Desktop responsive styles removed - template is mobile-first only */

/* Article Author */
.article-author {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Article Content */
.article-content {
    color: #212529;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 30px;
}

.article-content p {
    margin-bottom: 16px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #1e2746;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.article-content h2 {
    font-size: 22px;
}

.article-content h3 {
    font-size: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color, #0134d4);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #6c757d;
}

.article-content a {
    color: var(--primary-color, #0134d4);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-content a:hover {
    color: #0129b8;
    text-decoration: underline;
}

/* Article Image (at top) */
.article-details .com-content-article__images,
.article-details .item-image {
    margin-bottom: 20px;
}

.article-details .com-content-article__images img,
.article-details .item-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 0;
    display: block;
    object-fit: cover;
}

/* Info Block Styling */
.article-details .article-info {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
    color: #6c757d;
}

.article-details .article-info dd {
    margin: 0;
    display: inline;
}

.article-details .article-info dd:after {
    content: " • ";
    margin: 0 8px;
    color: #dee2e6;
}

.article-details .article-info dd:last-child:after {
    content: "";
    margin: 0;
}

/* Tags */
.article-details .tags {
    margin: 20px 0;
}

.article-details .tags .tag-link {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 12px;
    border-radius: 6px;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.article-details .tags .tag-link:hover {
    background-color: var(--primary-color, #0134d4);
    color: #fff;
    text-decoration: none;
}

/* Pagination */
.article-details .pagination {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
}

/* Print Button and Icons */
.article-details .icons {
    margin: 20px 0;
}

nav.pagenavigation span.pagination{
    display: flex;
    justify-content: space-between;
}

/* Responsive */
@media (max-width: 576px) {
    .article-details {
        padding: 15px 0;
    }

    .article-title {
        font-size: 20px;
    }

    .article-content {
        font-size: 14px;
    }
}

/* ============================================
   Blog Layouts Styles
   ============================================ */

/* Joomla Blog Layout - Column System (Grid View) */
.blog-items {
    display: grid;
    gap: 20px;
    padding: 0;
    margin: 0 0 30px 0;
}

/* List Layout (when columns = 1, like Affan blog-list.html) */
.blog-items.columns-1 {
    grid-template-columns: 1fr;
}

.blog-items.columns-1 .blog-card {
    flex-direction: row;
    min-height: 140px;
}

.blog-items.columns-1 .blog-card-image-wrapper {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    align-self: center;
    margin: 10px;
    border-radius: 10px;
}

.blog-items.columns-1 .blog-card-image {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
}

.blog-items.columns-1 .blog-card-category {
    top: 5px;
    left: 5px;
    font-size: 10px;
    padding: 3px 8px;
}

.blog-items.columns-1 .blog-card-content {
    padding: 12px 16px 12px 0;
}

/* Desktop responsive styles removed - template is mobile-first only */

.blog-items.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.blog-items.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.blog-items.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Blog Card - Grid Style (like Affan) */
.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-card-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-card-image-link {
    display: block;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.03);
}

/* Category badge overlaying the image */
.blog-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-block;
    padding: 4px 12px;
    background-color: #ffc107;
    color: #000;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    border-radius: 4px;
    text-decoration: none;
    z-index: 2;
    line-height: 1.4;
}

.blog-card-category:hover {
    background-color: #ffb300;
    color: #000;
}

.blog-card-content {
    padding: 14px 16px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Date badge - red/pink pill */
.blog-card-date {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    background-color: #ea4c62;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.blog-card-title {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    margin: 0 0 12px 0;
    line-height: 1.5;
    flex: 1;
}

.blog-card-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: #6c757d;
}

.blog-card-intro {
    font-size: 13px;
    color: #8480ae;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

/* Read More button - blue */
.blog-card-readmore {
    display: inline-block;
    align-self: flex-start;
    padding: 8px 20px;
    background-color: #0d6efd;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    margin-top: auto;
}

.blog-card-readmore:hover {
    background-color: #0b5ed7;
    color: #fff;
}

/* Responsive for mobile */
@media (max-width: 575px) {

    .blog-items.columns-2,
    .blog-items.columns-3,
    .blog-items.columns-4 {
        grid-template-columns: 1fr;
    }

    .blog-card-image {
        height: 180px;
    }

    .blog-card-content {
        padding: 12px 14px 16px 14px;
    }

    .blog-card-title {
        font-size: 13px;
    }
}

/* Desktop responsive styles removed - template is mobile-first only */

/* Page heading */
.com-content-category-blog .page-header h1,
.com-content-category-blog h1,
.com-content-category-blog h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e2746;
    margin: 0 0 20px 0;
}

/* Pagination styling */
.com-content-category-blog__pagination {
    margin-top: 20px;
    padding-bottom: 80px;
    /* Space for bottom navigation */
}

.com-content-category-blog__pagination .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.com-content-category-blog__pagination .page-link {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    color: #1e2746;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.com-content-category-blog__pagination .page-link:hover {
    background-color: var(--primary-color, #0134d4);
    color: #fff;
    border-color: var(--primary-color, #0134d4);
}

.com-content-category-blog__pagination .active .page-link {
    background-color: var(--primary-color, #0134d4);
    color: #fff;
    border-color: var(--primary-color, #0134d4);
}

/* Blog List Layout */
.blog-list-container {
    padding: 15px 0;
}

.blog-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.blog-list-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
}

.blog-list-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.blog-list-item-content {
    display: flex;
    flex-direction: column;
}

.blog-list-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-list-item-body {
    padding: 16px;
}

.blog-list-item-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary-color, #0134d4);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 12px;
    margin-bottom: 10px;
    text-decoration: none;
}

.blog-list-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e2746;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.blog-list-item-title a {
    color: #1e2746;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-list-item-title a:hover {
    color: var(--primary-color, #0134d4);
}

.blog-list-item-intro {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-list-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #6c757d;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.blog-list-item-meta i {
    margin-right: 4px;
    color: var(--primary-color, #0134d4);
}

.blog-list-item-readmore {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: var(--primary-color, #0134d4);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 12px;
    transition: background-color 0.2s ease;
}

.blog-list-item-readmore:hover {
    background-color: #0129b8;
    color: #fff;
}

.blog-list-item-readmore i {
    margin-left: 6px;
}

/* Desktop responsive styles removed - template is mobile-first only */

/* Page heading */
.blog-page-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.blog-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e2746;
    margin: 0 0 8px 0;
}

.blog-page-description {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Pagination */
.blog-pagination {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* ============================================
   User Pages Styles
   ============================================ */

/* User Pages (Login, Register, Reset Password, Profile) */
.user-page-container {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.user-page-header {
    padding: 15px 20px;
    background-color: transparent;
}

.back-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #e9ecef;
}

.user-page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.user-illustration {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 30px;
}

.user-page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e2746;
    text-align: center;
    margin-bottom: 30px;
}

.user-form-container {
    width: 100%;
    max-width: 500px;
}

.user-form-group {
    margin-bottom: 14px;
}

.user-form-group .control-group {
    margin-bottom: 0;
}

.user-form-group input.form-control {
    padding: 12px 16px !important;
    border: 1px solid #e9ecef !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #495057 !important;
    background-color: #f8f9fa !important;
    height: 48px !important;
}

.user-form-group input.form-control:focus {
    outline: none !important;
    border-color: var(--primary-color, #0134d4) !important;
    background-color: #fff !important;
    box-shadow: none !important;
}

.user-form-group label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}



.user-form-group .controls {
    width: 100%;
}

.user-form-group input[type="text"],
.user-form-group input[type="email"],
.user-form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    color: #495057;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    height: 48px;
}

.user-form-group input:focus {
    outline: none;
    border-color: var(--primary-color, #0134d4);
    background-color: #fff;
}

.user-form-group input::placeholder {
    color: #adb5bd;
}

.password-toggle {
    position: relative;
}

.password-toggle input {
    padding-right: 45px;
}

.password-toggle-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 18px;
}

/* Joomla password toggle button styling */
.user-form-group .input-group {
    position: relative;
    display: flex;
    width: 100%;
}

.user-form-group .input-group input {
    border-radius: 10px !important;
    padding-right: 45px !important;
}

.user-form-group .input-password-toggle {
    display: none !important;
    /* Hide Joomla's default toggle */
}

/* Custom password toggle icon (Font Awesome) */
.password-field-container {
    position: relative;
}

.custom-password-toggle {
    position: absolute;
    right: 16px;
    top: 40%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #6c757d;
    z-index: 10;
    user-select: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.custom-password-toggle:hover {
    color: #495057;
    opacity: 0.8;
}

.custom-password-toggle:active {
    opacity: 0.6;
}

.user-checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.user-checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
}

.user-checkbox-group input[type="checkbox"]:checked {
    background-color: var(--primary-color, #0134d4);
    border-color: var(--primary-color, #0134d4);
}

.user-checkbox-group label {
    display: inline !important;
    font-size: 14px;
    color: #6c757d;
    cursor: pointer;
    margin: 0;
}

.user-submit-btn {
    width: 100%;
    padding: 13px;
    background-color: var(--primary-color, #0134d4);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    height: 48px;
}

.user-submit-btn:hover {
    background-color: #0129b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 52, 212, 0.3);
}

.user-links {
    text-align: center;
    margin-top: 18px;
}

.user-links a {
    color: #1e2746;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.user-links a:hover {
    color: var(--primary-color, #0134d4);
    text-decoration: underline;
}

/* ================================================
   User Profile Page Styles
   ================================================ */

.com-users-profile {
    padding: 0;
    margin: 0;
}

.com-users-profile .page-header {
    display: none;
}

.profile-card {
    background: #fff;
    border-radius: 0;
    padding: 15px;
    margin: 0;
    box-shadow: none;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: none;
}

.profile-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e2746;
    margin: 0;
    flex: 1;
}

.profile-header .btn-edit {
    background: #ff3b3b;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(255, 59, 59, 0.3);
    white-space: nowrap;
}

.profile-header .btn-edit:hover {
    background: #e63535;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 59, 59, 0.4);
}

.profile-header .btn-edit i {
    font-size: 14px;
}

.profile-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.profile-info-item:hover {
    background: #f0f5ff;
    transform: translateX(2px);
}

.profile-info-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-color, #0134d4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-info-icon i {
    color: #fff;
    font-size: 12px;
}

.profile-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.profile-info-label {
    font-size: 10px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.profile-info-value {
    font-size: 14px;
    font-weight: bold;
    color: #1e2746;
    word-break: break-word;
    margin-top: -3px;
}

/* Hide default fieldset styling */
.com-users-profile fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.com-users-profile legend {
    display: none;
}

.com-users-profile dl {
    display: none;
}

/* Desktop responsive styles removed - template is mobile-first only */

.user-links .primary-link {
    color: var(--primary-color, #0134d4);
    font-weight: 600;
}

.user-links-separator {
    display: block;
    margin: 10px 0;
}

.register-link-text {
    color: #6c757d;
}

/* Responsive */
@media (max-width: 576px) {
    .user-page-title {
        font-size: 1.1rem;
    }

    .user-illustration {
        max-width: 300px;
    }
}

/* ================================================
   Profile Edit Page - Affan Style Design
   ================================================ */

.profile-edit-container {
    min-height: 100vh;
    background: #ffffff;
    padding: 0;
}

.profile-edit-content {
    max-width: 100%;
    margin: 0 auto;
}

.profile-edit-header {
    background: #fff;
    padding: 30px 20px;
    border-radius: 0;
    margin-bottom: 15px;
}

.profile-avatar-section {
    text-align: center;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.profile-avatar-icon {
    font-size: 100px;
    color: #8b95a7;
    display: block;
}

.profile-avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--primary-color, #0134d4);
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(1, 52, 212, 0.3);
}

.profile-avatar-edit-btn:hover {
    background: #0129b8;
    transform: scale(1.1);
}

.profile-avatar-edit-btn i {
    color: #fff;
    font-size: 14px;
}

.profile-user-info {
    margin-top: 15px;
}

.profile-user-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e2746;
    margin: 0 0 5px 0;
}

.profile-user-role {
    font-size: 14px;
    color: #8b95a7;
    margin: 0;
}

.profile-edit-form-container {
    background: #fff;
    padding: 15px;
    border-radius: 0;
}

.profile-form-group {
    margin-bottom: 12px;
}

.profile-form-group label,
.profile-form-group .control-label {
    display: block !important;
    font-size: 13px !important;
    font-weight: bold !important;
    color: #8b95a7 !important;
    margin-bottom: 2px !important;
    text-transform: capitalize;
}

.profile-form-group input[type="text"],
.profile-form-group input[type="email"],
.profile-form-group input[type="password"],
.profile-form-group input.form-control,
.profile-form-group textarea,
.profile-form-group select {
    width: 100% !important;
    padding: 5px 15px !important;
    border: 1px solid #e8ecf4 !important;
    border-radius: 10px !important;
    background: #f4f6fc !important;
    font-size: 15px !important;
    color: #1e2746 !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    height: auto !important;
    min-height: 32px !important;
}

.profile-form-group input:focus,
.profile-form-group textarea:focus,
.profile-form-group select:focus {
    outline: none !important;
    border-color: var(--primary-color, #0134d4) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(1, 52, 212, 0.1) !important;
}

.profile-form-group textarea {
    min-height: 100px !important;
    resize: vertical;
}

.profile-form-group .controls {
    width: 100%;
}

.profile-update-btn {
    width: 100%;
    background: var(--primary-color, #0134d4);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(1, 52, 212, 0.3);
}

.profile-update-btn:hover {
    background: #0129b8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(1, 52, 212, 0.4);
}

.profile-mfa-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8ecf4;
}

/* Password Toggle Icon */
.profile-form-group .password-field-container {
    position: relative;
}

.profile-form-group .custom-password-toggle {
    position: absolute;
    right: 15px;
    top: 40%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8b95a7;
    font-size: 16px;
    transition: color 0.3s ease;
    z-index: 10;
}

.profile-form-group .custom-password-toggle:hover {
    color: var(--primary-color, #0134d4);
}

/* Hide unnecessary help text and hints */
.profile-form-group .form-text,
.profile-form-group small {
    font-size: 12px;
    color: #8b95a7;
    margin-top: 5px;
}

/* Desktop responsive styles removed - template is mobile-first only */


/* WhatsApp OTP Login Styles have been moved to plugin: plugins/system/whatsapp_login/media/css/whatsapp_login.css */



.hidden {
    display: none !important;
}

/* Multi-select tags interface styles */
.fa-tags-container {
    position: relative;
    width: 100%;
}

.fa-tags-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
    width: 100%;
}

.fa-tag-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.fa-tag-suggestion:last-child {
    border-bottom: none;
}

.fa-tag-suggestion:hover,
.fa-tag-suggestion:active {
    background-color: #f0f4ff;
    color: #0134d4;
}

.fa-tag-suggestion.create-new {
    font-style: italic;
    color: #6c757d;
}

.fa-tag-suggestion.create-new:hover,
.fa-tag-suggestion.create-new:active {
    background-color: #e8f0fe;
    color: #0134d4;
}



ul.livingin_btn {
    padding: 0;
    display: flex;
}

ul.livingin_btn li {
    list-style: none;
}

ul.livingin_btn li a {
    padding: 30px;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    margin-right: 10px;
    display: block;
    background: #ffffff;
    font-weight: 500;
}

.article-title {
    text-transform: uppercase;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .fa-tags-suggestions {
        max-height: 250px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        margin-top: 6px;
    }

    .fa-tag-suggestion {
        padding: 14px 16px;
        font-size: 16px;
        min-height: 48px;
        -webkit-tap-highlight-color: rgba(1, 52, 212, 0.1);
    }

    .fa-tags-container {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .fa-tags-suggestions {
        max-height: 300px;
        left: -10px;
        right: -10px;
        width: calc(100% + 20px);
    }

    .fa-tag-suggestion {
        padding: 16px 18px;
        font-size: 16px;
        min-height: 52px;
    }
}

/* ============================================
   Accordion Menu Styles
   ============================================ */
.accordion_menu .parent>ul.mod-menu__sub {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

.accordion_menu .parent.active>ul.mod-menu__sub {
    max-height: 2000px;
    /* Large enough to fit content */
    opacity: 1;
    visibility: visible;
}

/* Pointer for clicable parents */
.accordion_menu .parent>span.mod-menu__separator,
.accordion_menu .parent>a {
    cursor: pointer;
    position: relative;
    display: block;
    padding-right: 30px;
    /* Space for arrow */
}

/* Indicator Icon */
.accordion_menu .parent>span.mod-menu__separator::after,
.accordion_menu .parent>a::after {
    content: "\f078";
    /* fa-chevron-down */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Rotate icon when active */
.accordion_menu .parent.active>span.mod-menu__separator::after,
.accordion_menu .parent.active>a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* ============================================
   Category Specific Menu Styles
   ============================================ */
/* Shared Child Styles */
.accordion_menu .parent>ul.mod-menu__sub li a {
    padding-left: 20px;
    font-size: 14px;
    border-left: 3px solid transparent;
}

/* 1. Business Directory (Blue) */
.accordion_menu .parent .busines_directory {
    background-color: #eef2ff;
    color: #3730a3;
    border-left: 4px solid #4338ca;
}

.accordion_menu .parent .busines_directory::after {
    color: #4338ca;
}

.accordion_menu .parent .busines_directory~ul li a:hover,
.accordion_menu .parent .busines_directory~ul li.active a {
    color: #4338ca;
    background-color: #e0e7ff;
    border-left-color: #4338ca;
}

/* 2. Shops List (Green) */
.accordion_menu .parent .shops_list {
    background-color: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #059669;
}

.accordion_menu .parent .shops_list::after {
    color: #059669;
}

.accordion_menu .parent .shops_list~ul li a:hover,
.accordion_menu .parent .shops_list~ul li.active a {
    color: #059669;
    background-color: #d1fae5;
    border-left-color: #059669;
}

/* 3. Professionals List (Purple) */
.accordion_menu .parent .professionals_list {
    background-color: #f5f3ff;
    color: #5b21b6;
    border-left: 4px solid #7c3aed;
}

.accordion_menu .parent .professionals_list::after {
    color: #7c3aed;
}

.accordion_menu .parent .professionals_list~ul li a:hover,
.accordion_menu .parent .professionals_list~ul li.active a {
    color: #7c3aed;
    background-color: #ede9fe;
    border-left-color: #7c3aed;
}

/* 4. Buy & Sell (Orange/Amber) */
.accordion_menu .parent .buy_sell {
    background-color: #fffbeb;
    color: #92400e;
    border-left: 4px solid #d97706;
}

.accordion_menu .parent .buy_sell::after {
    color: #d97706;
}

.accordion_menu .parent .buy_sell~ul li a:hover,
.accordion_menu .parent .buy_sell~ul li.active a {
    color: #d97706;
    background-color: #fef3c7;
    border-left-color: #d97706;
}

/* 5. Rent (Cyan/Blue) */
.accordion_menu .parent .rent {
    background-color: #ecfeff;
    color: #164e63;
    border-left: 4px solid #0891b2;
}

.accordion_menu .parent .rent::after {
    color: #0891b2;
}

.accordion_menu .parent .rent~ul li a:hover,
.accordion_menu .parent .rent~ul li.active a {
    color: #0891b2;
    background-color: #cffafe;
    border-left-color: #0891b2;
}

/* 6. Real Estate (Rose/Red) */
.accordion_menu .parent .real_estate {
    background-color: #fff1f2;
    color: #9f1239;
    border-left: 4px solid #e11d48;
}

.accordion_menu .parent .real_estate::after {
    color: #e11d48;
}

.accordion_menu .parent .real_estate~ul li a:hover,
.accordion_menu .parent .real_estate~ul li.active a {
    color: #e11d48;
    background-color: #ffe4e6;
    border-left-color: #e11d48;
}

/* General Parent Styling Overrides */
.accordion_menu .parent>span.mod-menu__separator {
    padding: 12px 15px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-bottom: 2px;
}

.accordion_menu .parent.active>span.mod-menu__separator {
    filter: brightness(0.95);
}

/* ============================================
   Category Specific Menu Styles (Container BG, Transparent Items)
   ============================================ */
/* Shared Child Styles */
/* Shared Child Styles */
.accordion_menu .parent>ul.mod-menu__sub {
    padding: 0;
    /* Default padding 0 */
    margin: 0;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    /* Default background fallbacks removed, will be set by specific rules */
}

/* Add padding when active */
.accordion_menu .parent.active>ul.mod-menu__sub {
    padding: 10px 0;
}

/* Ensure li has no bg or shadow */
.accordion_menu .parent>ul.mod-menu__sub li {
    background: transparent !important;
    box-shadow: none !important;
    margin: 0;
    border-radius: 0;
}

.accordion_menu .parent>ul.mod-menu__sub li a {
    padding-left: 20px;
    font-size: 14px;
    border-left: 3px solid transparent;
    padding-top: 8px;
    padding-bottom: 8px;
    transition: all 0.2s ease;
    display: block;
    border-radius: 0;
    background: transparent;
    text-decoration: none;
}

/* 1. Business Directory (Blue) - Parent BG: #eef2ff */
.accordion_menu .parent .busines_directory~ul.mod-menu__sub {
    background-color: #eef2ff !important;
}

.accordion_menu .parent .busines_directory~ul li a {
    color: #4338ca;
}

.accordion_menu .parent .busines_directory~ul li a:hover,
.accordion_menu .parent .busines_directory~ul li.active a {
    background-color: rgba(67, 56, 202, 0.1);
    border-left-color: #4338ca;
}

/* 2. Shops List (Green) - Parent BG: #ecfdf5 */
.accordion_menu .parent .shops_list~ul.mod-menu__sub {
    background-color: #ecfdf5 !important;
}

.accordion_menu .parent .shops_list~ul li a {
    color: #065f46;
}

.accordion_menu .parent .shops_list~ul li a:hover,
.accordion_menu .parent .shops_list~ul li.active a {
    background-color: rgba(5, 150, 105, 0.1);
    border-left-color: #059669;
}

/* 3. Professionals List (Purple) - Parent BG: #f5f3ff */
.accordion_menu .parent .professionals_list~ul.mod-menu__sub {
    background-color: #f5f3ff !important;
}

.accordion_menu .parent .professionals_list~ul li a {
    color: #5b21b6;
}

.accordion_menu .parent .professionals_list~ul li a:hover,
.accordion_menu .parent .professionals_list~ul li.active a {
    background-color: rgba(124, 58, 237, 0.1);
    border-left-color: #7c3aed;
}

/* 4. Buy & Sell (Orange/Amber) - Parent BG: #fffbeb */
.accordion_menu .parent .buy_sell~ul.mod-menu__sub {
    background-color: #fffbeb !important;
}

.accordion_menu .parent .buy_sell~ul li a {
    color: #92400e;
}

.accordion_menu .parent .buy_sell~ul li a:hover,
.accordion_menu .parent .buy_sell~ul li.active a {
    background-color: rgba(217, 119, 6, 0.1);
    border-left-color: #d97706;
}

/* 5. Rent (Cyan/Blue) - Parent BG: #ecfeff */
.accordion_menu .parent .rent~ul.mod-menu__sub {
    background-color: #ecfeff !important;
}

.accordion_menu .parent .rent~ul li a {
    color: #164e63;
}

.accordion_menu .parent .rent~ul li a:hover,
.accordion_menu .parent .rent~ul li.active a {
    background-color: rgba(8, 145, 178, 0.1);
    border-left-color: #0891b2;
}

/* 6. Real Estate (Rose/Red) - Parent BG: #fff1f2 */
.accordion_menu .parent .real_estate~ul.mod-menu__sub {
    background-color: #fff1f2 !important;
}

.accordion_menu .parent .real_estate~ul li a {
    color: #9f1239;
}

.accordion_menu .parent .real_estate~ul li a:hover,
.accordion_menu .parent .real_estate~ul li.active a {
    background-color: rgba(225, 29, 72, 0.1);
    border-left-color: #e11d48;
}

/* General Parent Styling - Connect to Submenu */
.accordion_menu .parent>span.mod-menu__separator {
    margin-bottom: 0 !important;
    transition: border-radius 0.3s ease;
}

.accordion_menu .parent.active>span.mod-menu__separator {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Module Block (Dashboard Grid) Styles
   ============================================ */
.module_block {
    background: transparent;
    padding: 20px 0;
}

.module_block h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    display: inline-block;
}

.module_block .mod-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.module_block .nav-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: 120px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

/* Hover Effects */
.module_block .nav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color, #0134d4);
}

/* Add a colored top bar for visual interest on hover */
.module_block .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color, #0134d4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.module_block .nav-item:hover::before {
    transform: scaleX(1);
}

.module_block .nav-item a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    text-align: center;
    color: #334155;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    width: 100%;
    height: 100%;
}

.module_block .nav-item a:hover {
    color: var(--primary-color, #0134d4);
    background: linear-gradient(to bottom, #fff, #f8fafc);
}

.bottom-nav i.fa-solid.fa-plus {
    padding: 14px;
    border-radius: 50%;
}

.bottom-nav i.fa-solid.fa-plus.login {
    background: #000;
    color: #fff;
}

.bottom-nav i.fa-solid.fa-plus.welcome-to-adirai {
    background: #efc159;
    color: #fff;
}

.bottom-nav i.fa-solid.fa-plus.select-living-location {
    background: #329ed0;
    color: #fff;
}

.bottom-nav i.fa-solid.fa-plus.pending-member-approval {
    background: #e27226;
    color: #fff;
}

.bottom-nav i.fa-solid.fa-plus.member-approved {
    background: #90D032;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .module_block .mod-menu {
        grid-template-columns: 1fr;
    }

    .module_block .nav-item {
        min-height: 80px;
    }
}

/* ============================================
   Mobile Header Styles - Reusable for other pages
   ============================================ */
.fa-mobile-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 2px 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
}

.fa-back-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #000 !important;
    text-decoration: none;
    cursor: pointer;
    background: #eee;
    padding: 10px;
    border-radius: 50%;
}

.fa-back-arrow {
    display: block;
    line-height: 1;
    font-size: 1.5rem;
    color: #000;
}

.fa-back-btn:hover,
.fa-back-btn:focus {
    background: rgba(255, 255, 255, 0.35);
    color: #000 !important;
    text-decoration: none;
}

.fa-back-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.3);
}

.fa-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    color: #000;
    text-align: center;
}

.fa-header-spacer {
    width: 40px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .fa-mobile-header {
        position: sticky;
    }
}

#member-profile div.profile-form-group:nth-child(4), 
#member-profile div.profile-form-group:nth-child(5) {
    display: none;
}
#member-profile button[type="submit"],
#os_form input[type="submit"] {
    width: 150px;
    display: block;
    margin: 0 auto;
}





