body {
    padding-top: 72px;
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}

.logo-brand {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.hero-section {
    min-height: 62vh;
    /* background: gradient + image set inline in public/home.php (CMS) */
}

.hero-section .btn-primary {
    background-color: #00a4d2;
    border-color: #00a4d2;
}

.hero-section .btn-primary:hover,
.hero-section .btn-primary:focus {
    background-color: #0095bf;
    border-color: #0095bf;
}

.event-hero {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.footer-section {
    background: #00a4d2;
    color: #ffffff;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
}

.navbar-comsnets .navbar-brand span {
    color: #0b3c5d;
    font-weight: 700;
}

.navbar-comsnets .nav-link {
    color: #1f2d3d;
    font-weight: 500;
    border-radius: 0.45rem;
    padding: 0.4rem 0.7rem;
    transition: all 0.2s ease;
}

.navbar-comsnets .nav-link:hover,
.navbar-comsnets .nav-link.active {
    background: #00a4d2;
    color: #ffffff;
}

.bottom-block-bg {
    background: #ffffff;
}

.bottom-block-bg h3 {
    color: #0b3c5d;
}

.bottom-block-bg .sponsor-marquee {
    border-color: #e6edf4;
}

.masonry-item img {
    width: 100%;
    border-radius: 0.6rem;
}

.speaker-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
}

.home-gallery-preview img {
    min-height: 170px;
    object-fit: cover;
}

.community-cta-block {
    position: relative;
    overflow: hidden;
    border-radius: 0.8rem;
    padding: 2.2rem 1.25rem;
    background: linear-gradient(90deg, #08a3d0 0%, #71c2df 100%);
    box-shadow: 0 10px 24px rgba(11, 60, 93, 0.16);
}

.community-cta-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.community-cta-content h3 {
    font-weight: 700;
}

.community-cta-content .lead {
    margin: 0 auto;
    max-width: 560px;
}

.community-cta-link {
    color: #ffffff;
    font-weight: 600;
    text-underline-offset: 3px;
}

.community-cta-link:hover,
.community-cta-link:focus {
    color: #e8f8ff;
}

.community-cta-deco {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.22);
    z-index: 1;
}

.community-cta-deco::before,
.community-cta-deco::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.16);
}

.community-cta-deco::before {
    inset: 18px;
}

.community-cta-deco::after {
    inset: 38px;
}

.community-cta-deco-left {
    left: -70px;
    top: -28px;
    transform: rotate(-20deg);
}

.community-cta-deco-right {
    right: -70px;
    bottom: -28px;
    transform: rotate(18deg);
}

.event-card-thumb {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.cms-rich-content {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #1f2937;
}

.cms-rich-content h1,
.cms-rich-content h2,
.cms-rich-content h3,
.cms-rich-content h4,
.cms-rich-content h5 {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    color: #0b3c5d;
    font-weight: 700;
}

.cms-rich-content p {
    margin-bottom: 0.85rem;
}

.cms-rich-content ul,
.cms-rich-content ol {
    padding-left: 1.2rem;
    margin-bottom: 0.95rem;
}

.cms-rich-content blockquote {
    border-left: 4px solid #328cc1;
    background: #f8fbff;
    padding: 0.8rem 1rem;
    border-radius: 0.35rem;
}

.cms-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
}

.sponsor-grid-five {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
}

.sponsor-card {
    border: 1px solid #e6edf4;
    border-radius: 0.8rem;
    box-shadow: 0 5px 18px rgba(11, 60, 93, 0.08);
}

.sponsor-logo {
    width: 100%;
    max-width: 170px;
    height: 92px;
    object-fit: contain;
}

.sponsor-snippet {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sponsor-home-card {
    border-color: #edf2f8;
}

.sponsor-home-logo {
    height: 76px;
    max-width: 150px;
}

.sponsor-marquee {
    overflow: hidden;
    position: relative;
    border: 1px solid #edf2f8;
    border-radius: 0.9rem;
    background: #ffffff;
    padding: 0.8rem 0;
}

.sponsor-marquee-track {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: max-content;
    animation: sponsorMarquee 45s linear infinite;
}

.sponsor-marquee:hover .sponsor-marquee-track {
    animation-play-state: paused;
}

.sponsor-marquee-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    height: 96px;
    border: 1px solid #edf2f8;
    border-radius: 0.7rem;
    background: #fff;
    padding: 0.6rem;
    box-shadow: 0 10px 24px rgba(11, 60, 93, 0.16), 0 2px 8px rgba(11, 60, 93, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sponsor-marquee-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(11, 60, 93, 0.2), 0 4px 10px rgba(11, 60, 93, 0.12);
}

.featured-speaker-category-title {
    color: #0b3c5d;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.featured-speaker-card {
    border-radius: 1rem;
    padding: 1rem 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 8px 18px rgba(11, 60, 93, 0.08);
    min-height: 176px;
}

.featured-speaker-card.accent {
    background: #00a4d2;
    border-color: #00a4d2;
    color: #ffffff;
}

.featured-speaker-card.accent small {
    color: #e8f8ff;
}

.featured-speaker-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.featured-speaker-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

@keyframes sponsorMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 1200px) {
    .sponsor-grid-five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .community-cta-block {
        padding: 1.75rem 1rem;
    }

    .community-cta-content h3 {
        font-size: 1.45rem;
    }

    .community-cta-content .lead {
        font-size: 1.05rem;
    }

    .community-cta-deco {
        width: 130px;
        height: 130px;
    }

    .community-cta-deco-left {
        left: -55px;
        top: -20px;
    }

    .community-cta-deco-right {
        right: -55px;
        bottom: -20px;
    }

    .sponsor-grid-five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* —— Member area dashboard (module tiles) —— */
.member-dashboard {
    --member-dash-brand: #0b3c5d;
    --member-dash-accent: #00a4d2;
}

.member-dashboard-hero {
    background: linear-gradient(135deg, var(--member-dash-brand) 0%, #143d5c 45%, var(--member-dash-accent) 160%);
    color: #fff;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 12px 40px rgba(11, 60, 93, 0.22);
}

.member-dashboard-hero h1 {
    color: #fff;
    font-weight: 700;
}

.member-dashboard-hero .btn-light {
    font-weight: 600;
}

.member-module-card {
    display: block;
    height: 100%;
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-module-card:hover {
    transform: translateY(-4px);
}

.member-module-card:focus-visible {
    outline: 3px solid rgba(0, 164, 210, 0.45);
    outline-offset: 2px;
}

.member-module-card-inner {
    height: 100%;
    min-height: 132px;
    padding: 1.25rem 1rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(11, 60, 93, 0.08);
    box-shadow: 0 8px 28px rgba(15, 40, 60, 0.12), 0 2px 8px rgba(15, 40, 60, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.65rem;
}

.member-module-card:hover .member-module-card-inner {
    box-shadow: 0 14px 36px rgba(15, 40, 60, 0.16), 0 4px 12px rgba(0, 164, 210, 0.12);
    border-color: rgba(0, 164, 210, 0.25);
}

.member-module-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.member-module-icon.mod-a { background: linear-gradient(145deg, #5b7cfa, #3d5afe); }
.member-module-icon.mod-b { background: linear-gradient(145deg, #00a896, #028174); }
.member-module-icon.mod-c { background: linear-gradient(145deg, #f77f00, #d62828); }
.member-module-icon.mod-d { background: linear-gradient(145deg, #9b5de5, #7c3aed); }
.member-module-icon.mod-e { background: linear-gradient(145deg, #e36414, #c1121f); }
.member-module-icon.mod-f { background: linear-gradient(145deg, #00a4d2, #0b3c5d); }
.member-module-icon.mod-g { background: linear-gradient(145deg, #4361ee, #7209b7); }
.member-module-icon.mod-h { background: linear-gradient(145deg, #f4a261, #e76f51); }

.member-module-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--member-dash-brand);
    line-height: 1.3;
}

.member-dash-detail-card {
    border-radius: 1rem;
    border: 1px solid rgba(11, 60, 93, 0.08);
    box-shadow: 0 6px 24px rgba(15, 40, 60, 0.08);
}
