/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base Styles */
:root {
    --primary: #3776ab;
    --primary-dark: #2c5d8a;
    --secondary: #ffd43b;
    --dark: #212529;
    --light: #f8f9fa;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --font-sans: 'Poppins', sans-serif;
}

/* =============================
   Page-scoped interaction fixes
   Disable heavy card animations/overlays on pages where selection is hindered
   Applies to: Blog, Forum, Join Us
   ============================= */
.page-blog .card,
.page-forum .card,
.page-join .card {
    transition: none !important;
}

.page-blog .card:hover,
.page-forum .card:hover,
.page-join .card:hover {
    transform: none !important;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; /* keep subtle shadow */
}

/* Remove decorative overlay that may capture clicks */
.page-blog .card::before,
.page-forum .card::before,
.page-join .card::before {
    content: none !important;
}

/* Ensure media inside cards are not zooming */
.page-blog .card img,
.page-forum .card img,
.page-join .card img {
    transition: none !important;
    transform: none !important;
}

/* Disable AOS animations effect on these pages if present */
.page-blog [data-aos],
.page-forum [data-aos],
.page-join [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
    width: 100%;
    cursor: none;
}

/* Custom Cursor Styles */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease-out;
    transition-property: width, height, border, background-color;
}

/* Hover effects */
a, button, .btn, [role="button"], [onclick] {
    cursor: none !important;
}

.cursor-hover .cursor-dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary-dark);
}

.cursor-hover .cursor-outline {
    width: 40px;
    height: 40px;
    background-color: rgba(55, 118, 171, 0.1);
}

/* Hide cursor on touch devices */
@media (hover: none) {
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
    
    body {
        cursor: auto;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

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

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.btn {
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff !important; /* Force white text on primary buttons */
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(55, 118, 171, 0.3);
    color: #ffffff !important; /* Ensure text stays white on hover/focus */
}

.btn-outline-light {
    border-color: var(--gray-300);
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile menu adjustments */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 15px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        z-index: 1030;
        background: #ffffff !important; /* ensure white navbar */
    }
    
    .navbar-collapse {
        background-color: #ffffff !important; /* white dropdown */
        border-radius: 8px;
        padding: 0.5rem;
        margin: 0.75rem 0 0;
        box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.08);
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .navbar-nav .nav-link {
        color: #212529 !important; /* dark text for visibility */
    }

    .navbar-toggler {
        border-color: rgba(0,0,0,.15);
    }
    .navbar-toggler-icon {
        filter: invert(0) grayscale(1); /* dark icon on light bg */
    }
}
    
    /* Ensure all content is properly contained */
    .container, .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }
    
    /* Fix for navigation items */
    .navbar-nav .nav-item {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0;
        white-space: normal;
    }
    
    /* Fix for dropdown menus */
    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Fix for mobile menu items */
    .navbar-nav .nav-item {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0;
    }
    
    .navbar-nav {
        max-width: 100%;
        overflow: hidden;
    }
    
    .navbar-nav {
        padding: 0.3rem 0;
    }
    
    .nav-item {
        margin: 0.15rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.8rem;
        margin: 0.1rem 0;
        border-radius: 4px;
        font-size: 0.85rem;
    }
    
    .navbar-nav .nav-link i {
        width: 18px;
        text-align: center;
    }
    
    .navbar-nav .btn-warning {
        margin: 0.3rem 0 0;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

/* Icon Box */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.icon-box i {
    font-size: 1.75rem;
    line-height: 1;
}

.icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: var(--enquiry-height);
    left: 0;
    right: 0;
    z-index: 1030;
}

/* Ensure navbar stays on top of other elements */
.navbar.fixed-top {
    position: fixed;
    top: var(--enquiry-height);
    right: 0;
    left: 0;
    z-index: 1030;
}

/* Make sure navbar content is visible */
.navbar .container {
    position: relative;
    z-index: 1030;
}

.navbar-nav {
    flex-wrap: nowrap;
    white-space: nowrap;
    align-items: center;
}

/* Navbar toggler */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
    background: transparent;
    color: var(--dark);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Ensure dropdowns work on hover for desktop */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    
    .dropdown-menu {
        display: none;
    }
    
    .dropdown-menu.show {
        display: block;
    }
}

.navbar-nav .nav-item {
    flex: 0 1 auto;
}

.navbar-nav .nav-link {
    position: relative;
    padding: 0.4rem 0.6rem;
    margin: 0.1rem 0.2rem;
    color: var(--gray-700);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 50%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    color: #212529;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-section h1,
.hero-section .lead,
.hero-section p {
    color: #212529;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-section .text-warning {
    color: #0d6efd !important;
    font-weight: 800;
}

.hero-section .btn-outline-light {
    border-color: #0d6efd;
    color: #0d6efd;
}

.hero-section .btn-outline-light:hover {
    background-color: #0d6efd;
    color: white;
}

.hero-section::before {
    content: none; /* disable decorative overlay to avoid visible band at top */
    display: none;
}

.hero-logo {
    max-height: 80px;
    margin-bottom: 1.5rem !important;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    animation: pulse 2s infinite alternate, float 4s ease-in-out infinite;
}

.hero-logo:hover {
    transform: scale(1.1) rotate(0deg);
    filter: drop-shadow(0 10px 30px rgba(255, 193, 7, 0.6));
    animation-play-state: paused;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    }
    100% {
        transform: scale(1.05);
        filter: drop-shadow(0 8px 25px rgba(255, 193, 7, 0.4));
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
    100% {
        transform: translateY(0) rotate(-2deg);
    }
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.hero-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.hero-shape .shape-fill {
    fill: #FFFFFF;
}

.hero-illustration {
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero-section::before {
    content: none; /* disable bottom gradient overlay */
    display: none;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section .container {
    padding-top: 0; /* remove extra gap under navbar */
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.navbar-nav {
    margin: 0 -15px;
    width: calc(100% + 30px);
}

/* Override the above expansion on desktop to prevent overflow */
@media (min-width: 992px) {
    .navbar-nav {
        margin: 0;      /* reset negative margins */
        width: auto;    /* do not exceed container */
    }
}

/* Base container styles */
.container {
    width: 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
    position: relative;
}

/* Fix for Bootstrap containers */

.row > * {
    padding-right: 15px;
    padding-left: 15px;
}

.container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

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

/* Base HTML and Body styles */
html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

@media (max-width: 767.98px) {
    .container, .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    section {
        padding: 2rem 0;
        overflow: hidden;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .card, .accordion, .btn, .form-control {
        max-width: 100%;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .navbar-nav {
        margin: 0 -15px;
        width: calc(100% + 30px);
        max-width: 100%;
        flex-wrap: wrap;
    }
    
    /* Fix for mobile menu items */
    .navbar-nav .nav-item {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0;
        white-space: normal;
        text-align: left;
    }
    
    /* Ensure all content is properly contained */
    .container, .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Fix for cards and other components */
    .card, .accordion, .btn, .form-control, .table-responsive {
        max-width: 100%;
        width: 100%;
    }
    
    /* Adjust font sizes for better mobile readability */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Fix for any overflowing elements */
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    /* Fix for any full-width elements */
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
    .col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4,
    .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9,
    .col-sm-10, .col-sm-11, .col-sm-12, .col-sm,
    .col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4,
    .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9,
    .col-md-10, .col-md-11, .col-md-12, .col-md, .col-md-auto,
    .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5,
    .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10,
    .col-lg-11, .col-lg-12, .col-lg, .col-lg-auto, .col-xl-1,
    .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6,
    .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11,
    .col-xl-12, .col-xl, .col-xl-auto {
        padding-right: 15px;
        padding-left: 15px;
    }
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    margin: 0 0.1rem;
    border-radius: 5px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.navbar-dark .navbar-nav .nav-link i {
    margin-right: 4px;
    font-size: 0.9em;
    vertical-align: baseline;
    position: relative;
    top: -1px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary);
    background-color: rgba(55, 118, 171, 0.05);
    transform: translateY(-1px);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.navbar-dark .navbar-nav .btn-warning {
    background-color: var(--warning);
    color: #000 !important;
    font-weight: 600;
    padding: 0.4rem 1rem;
    margin-left: 0.3rem;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    border-radius: 5px;
}

.navbar-dark .navbar-nav .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img {
    transition: all 0.3s ease;
    height: 56px;
    width: auto;
    max-height: 60px;
}

/* Brand subtitle under logo */
.brand-subtitle {
    font-size: 0.85rem;
    line-height: 1.1;
    margin-top: 2px;
    letter-spacing: 0.3px;
    font-weight: 600;
}

/* Ensure subtitle is readable on dark navbar */
.navbar.navbar-dark .brand-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Mobile logo size */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 44px;
    }
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav {
    align-items: center;
}

.navbar-nav {
    flex-wrap: nowrap; /* keep one row on desktop */
    max-width: 100%;
}

/* Allow nav items to shrink to avoid overflow */
.navbar-nav .nav-item {
    flex: 0 1 auto;
}

/* Make the button more compact so it fits within one row */
.navbar-nav .nav-link.btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.9rem;
    line-height: 1.2;
}

@media (max-width: 991.98px) {
    .navbar-nav {
        flex-wrap: wrap; /* allow wrapping in mobile dropdown */
    }
}

/* Tighten spacing on medium desktops to prevent overflow */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-brand img { height: 52px; }
    .navbar-nav .nav-link { padding: 0.35rem 0.5rem; font-size: 0.9rem; }
    .navbar-nav .nav-link.btn { padding: 0.3rem 0.55rem; font-size: 0.88rem; }
}

.navbar-nav .nav-link {
    position: relative;
    padding: 0.4rem 0.6rem;
    margin: 0.1rem 0.2rem;
    color: var(--gray-700);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 50%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    color: #212529;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-section h1,
.hero-section .lead,
.hero-section p {
    color: #212529;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-section .text-warning {
    color: #0d6efd !important;
    font-weight: 800;
}

.hero-section .btn-outline-light {
    border-color: #0d6efd;
    color: #0d6efd;
}

.hero-section .btn-outline-light:hover {
    background-color: #0d6efd;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29-22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: -1;
}

.hero-logo {
    max-height: 80px;
    margin-bottom: 1.5rem !important;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    animation: pulse 2s infinite alternate, float 4s ease-in-out infinite;
}

.hero-logo:hover {
    transform: scale(1.1) rotate(0deg);
    filter: drop-shadow(0 10px 30px rgba(255, 193, 7, 0.6));
    animation-play-state: paused;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    }
    100% {
        transform: scale(1.05);
        filter: drop-shadow(0 8px 25px rgba(255, 193, 7, 0.4));
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
    100% {
        transform: translateY(0) rotate(-2deg);
    }
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.hero-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.hero-shape .shape-fill {
    fill: #FFFFFF;
}

.hero-illustration {
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--light), transparent);
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-section .row {
    justify-content: center;
    margin: 0 auto;
}

.hero-section .col-lg-6 {
    max-width: 100%;
    padding: 0 15px;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Section Padding */
section {
    padding: 5rem 0;
    position: relative;
}

/* Icon Box */
.icon-box {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(55, 118, 171, 0.1) 0%, rgba(55, 118, 171, 0) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.card:hover::before {
    opacity: 1;
}

/* Blog card specific tweaks: gentler image zoom on hover */
.blog-card .post-img {
    transition: none;
    will-change: auto;
}

.blog-card:hover .post-img {
    transform: none;
}

  /* Consistent blog card image sizing */
  .blog-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: contain; /* show full image without cropping */
    object-position: center;
    display: block;
    background: #f5f5f5; /* subtle background for letterboxing */
  }

/* Ensure a reserved area for media (image or placeholder) */
.blog-card-media {
    width: 100%;
}

.blog-card-img.placeholder {
    background: #f1f3f5;
    color: #adb5bd;
    border-bottom: 1px solid rgba(0,0,0,.05);
    aspect-ratio: 4 / 3;
    width: 100%;
}

.blog-card-img.placeholder i {
    font-size: 2rem;
}

@media (min-width: 992px) {
    .blog-card-img { height: auto; }
}

/* Single post featured image: enforce 4:3 aspect ratio */
.single-post-hero {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Disable hover lift specifically for blog cards */
.blog-card.card:hover {
    transform: none !important;
    /* Keep a subtle default shadow similar to bootstrap shadow-sm */
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, 0.075) !important;
}

/* Remove animations from community cards */
.community-card {
    animation: none !important;
    opacity: 1 !important;
}

.community-card:hover h4::after {
    width: 40px; /* keep static underline width */
}

.community-card .btn:hover i {
    transform: none;
}

/* Counter Section */
.counter-box {
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.counter-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.counter-box i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.counter-box .counter {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin: 1rem 0;
    display: block;
}

/* Contact Form */
.form-control {
    height: 50px;
    border: 1px solid #e1e5ee;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

textarea.form-control {
    height: auto;
    min-height: 150px;
    resize: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(55, 118, 171, 0.25);
}

/* Social Links */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(55, 118, 171, 0.1);
    color: var(--primary);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Audience logos */
.audience-logo {
    display: block;
    max-width: 60px;
    max-height: 60px;
    width: 100%;
    height: auto;
}

/* Join Us: Areas of Interest options smaller */
#interests,
#interests option {
    font-size: 0.8rem; /* smaller */
    line-height: 1.2;
}

/* Blog Category Filters Simple UI */
.blog-filters-bar {
  background: #fff;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.03);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.blog-filters-bar .filters-label {
  font-weight: 600;
  margin-right: 1rem;
  color: #222;
  white-space: nowrap;
}
.blog-filters-bar .filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.blog-filters-bar .filter-btn {
  border: 1px solid #c5c5c5;
  background: #f8f9fa;
  color: #333;
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  font-size: 1rem;
  transition: all 0.15s;
  font-weight: 500;
  text-transform: none;
  box-shadow: none;
  outline: none;
  cursor: pointer;
}
.blog-filters-bar .filter-btn.active, .blog-filters-bar .filter-btn:active {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}
.blog-filters-bar .filter-btn:focus {
  border-color: #0d6efd;
  outline: none;
}
@media (max-width: 600px) {
  .blog-filters-bar .filters-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.4rem;
  }
  .blog-filters-bar {
    padding: 0.5rem 0.5rem;
  }
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
}

footer::before {
    content: none; /* remove decorative wave */
}

/* Top Enquiry Bar (fixed bar above navbar) */
/* Targets the first fixed-top dark bar used for enquiry across pages */
body > .bg-dark.text-white.fixed-top {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary)) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body > .bg-dark.text-white.fixed-top a {
    color: #ffffff !important;
    opacity: 0.95;
}

body > .bg-dark.text-white.fixed-top a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Footer Enhancements */
/* Base footer (used if no variant class is present) */
footer.bg-dark {
    /* Clean, solid background for a calmer look */
    background: #102539 !important;
    color: #e9f2ff;
    padding-top: 2.5rem !important;
    padding-bottom: 2.25rem !important;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}


footer.bg-dark h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    position: relative;
    letter-spacing: 0.2px;
}

footer.bg-dark h3::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    margin-top: 0.5rem;
}

footer.bg-dark a {
    color: #dbe8ff;
    font-weight: 500;
    font-size: 0.975rem;
}

/* Ensure muted footer text is readable and consistent (handles pages using text-white-50) */
footer .text-white-50,
footer.bg-dark .text-white-50 {
    color: #e9f2ff !important;
    opacity: 1 !important;
}

footer.bg-dark a:hover {
    color: #ffffff;
    text-decoration: none;
}

footer.bg-dark .social-links a {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

footer.bg-dark .social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

footer.bg-dark hr {
    border-color: rgba(255, 255, 255, 0.15);
    margin: 2rem 0;
}

footer .list-unstyled li {
    margin-bottom: 0.4rem;
}

/* Remove any decorative arrows to keep UI clean */
footer .list-unstyled li a::before {
    content: none;
    margin: 0;
}

/* Footer Links spacing and hit area */
footer .list-unstyled li a {
    display: inline-block;
    padding: 4px 0;
    line-height: 1.55;
}

/* Footer columns spacing refinement */
footer .row.g-4 > [class*="col-"] {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* Footer text and paragraph readability */
footer p {
    color: #cfe1ff;
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 60ch;
}

/* Standardize footer small text for consistency across variants */
footer .small {
    font-size: 0.92rem;
    color: #dbe8ff;
}

/* Social links sizing and spacing */
footer .social-links a {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

footer .social-links a i {
    font-size: 1rem;
}

footer .social-links a:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Keyboard focus visibility */
footer a:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Final row spacing (copyright area) */
footer .row.align-items-center {
    padding-top: 0.75rem;
}

/* Mobile footer adjustments */
@media (max-width: 767.98px) {
    footer.bg-dark {
        padding-top: 2rem !important;
        padding-bottom: 1.75rem !important;
        text-align: left;
    }

    footer .social-links {
        margin-top: 0.5rem;
    }

    footer .social-links a { margin-bottom: 8px; }

    footer .list-unstyled li a {
        padding: 6px 0;
    }

    /* Center socials on small screens for visual balance */
    footer .social-links { text-align: left; }
    footer .social-links a { display: inline-flex; }
}

/* Global horizontal page padding */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl,
.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Navbar dropdown: replace default caret with Bootstrap Icon chevron */
.navbar .dropdown-toggle.no-caret::after {
    display: none !important;
}

.navbar .dropdown-toggle .bi-chevron-down {
    transition: transform 0.2s ease;
}

.navbar .dropdown.show > .dropdown-toggle .bi-chevron-down,
.navbar .dropdown .dropdown-toggle.show .bi-chevron-down {
    transform: rotate(180deg);
}

@media (min-width: 768px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl,
  .container-fluid {
      padding-left: 2rem;
      padding-right: 2rem;
  }
}

footer a {
    color: var(--gray-400);
    transition: all 0.3s ease;
}

footer a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(55, 118, 171, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(55, 118, 171, 0.4);
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--dark);
        max-height: calc(100vh - 132px); /* Adjusted for top bar */
        overflow-y: auto;
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        z-index: 1050;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        z-index: 1050;
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        margin: 0.25rem 0;
    }
    
    .hero-section {
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    section {
        padding: 4rem 0;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .counter-box .counter {
        font-size: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 80px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .counter-box .counter {
        font-size: 2rem;
    }
}

/* =================================
   Timeline Styles 
   ================================= */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--gray-300);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 10px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid var(--primary);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
    text-align: left;
}

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-badge {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-badge {
    right: -25px;
    top: 15px;
}

.timeline-item:nth-child(even) .timeline-badge {
    left: -25px;
    top: 15px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-date {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.timeline-content h4 {
    margin-top: 0;
    color: var(--dark);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.timeline-content p {
    margin-bottom: 0;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Responsive Timeline */
@media (max-width: 767.98px) {
    .timeline::before {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left !important;
    }
    
    .timeline-item::after {
        left: 20px !important;
    }
    
    .timeline-badge {
        left: 6px !important;
        right: auto !important;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 70px;
    }
}

/* Animation for timeline items */
.timeline-item {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(even) {
    transform: translateX(50px);
}

.timeline-item:nth-child(even).visible {
    transform: translateX(0);
}

/* Badge colors */
.timeline-badge.bg-primary { background-color: var(--primary) !important; }
.timeline-badge.bg-success { background-color: var(--success) !important; }
.timeline-badge.bg-warning { background-color: var(--warning) !important; color: var(--dark) !important; }
.timeline-badge.bg-info { background-color: var(--info) !important; color: var(--dark) !important; }
.timeline-badge.bg-danger { background-color: var(--danger) !important; }

/* Animation for badges */
.timeline-badge i {
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-badge i {
    transform: scale(1.2);
}

/* Content hover effects */
.timeline-content {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(55, 118, 171, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-content::before {
    opacity: 1;
}

/* =================================
   Contributors Section
   ================================= */
.contributor-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    position: relative;
    z-index: 1;
}

.contributor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(55, 118, 171, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contributor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.contributor-card:hover::before {
    opacity: 1;
}

.contributor-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contributor-card:hover .contributor-img {
    transform: scale(1.05);
    border-color: var(--secondary);
}

.contributor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.contributor-card h4 {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.contributor-card:hover h4 {
    color: var(--primary);
}

.contributor-card .text-muted {
    color: var(--gray-600) !important;
    font-weight: 500;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-700) !important;
    margin: 0 3px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-3px);
}

/* Responsive adjustments for contributors */
@media (max-width: 767.98px) {
    .contributor-img {
        width: 100px;
        height: 100px;
    }
    
    .contributor-card {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* =================================
   Communities Section
   ================================= */
.community-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.community-logo {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-logo i {
    color: var(--primary);
}

.community-card h4 {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.community-card h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.community-card:hover h4::after {
    width: 80px;
}

.community-card .btn {
    transition: all 0.3s ease;
}

.community-card .btn i {
    transition: transform 0.3s ease;
}

.community-card .btn:hover i {
    transform: translateX(3px);
}

.community-card .btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
}

.community-card .btn-outline-primary:hover {
    background: var(--primary);
    color: white !important;
}

.community-card .btn-outline-info {
    border-width: 2px;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.community-card .btn-outline-info:hover {
    background: var(--info);
    color: white !important;
}

/* Responsive adjustments for communities */
@media (max-width: 767.98px) {
    .community-card {
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .community-logo {
        min-height: 60px;
    }
    
    .community-card h4 {
        font-size: 1.25rem;
    }
}

/* Animation for community cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.community-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.community-card:nth-child(2) { animation-delay: 0.1s; }
.community-card:nth-child(3) { animation-delay: 0.2s; }
.community-card:nth-child(4) { animation-delay: 0.3s; }
.community-card:nth-child(5) { animation-delay: 0.4s; }
.community-card:nth-child(6) { animation-delay: 0.5s; }

/* Admin: Posts table UI */
.table-posts thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.table-posts tr.row-approved {
  background-color: #eaf7f0; /* soft green */
}
.table-posts tr.row-changes {
  background-color: #fff7e6; /* soft yellow */
}
.table-posts tr.row-pending {
  background-color: #eaf4ff; /* soft blue */
}
.table-posts td, .table-posts th {
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.table-posts .btn-group .btn { margin-right: .25rem; }

/* Elevate Bootstrap modals above navbar/z layers and hide custom cursor during modals */
.modal { z-index: 11050 !important; }
.modal-backdrop { z-index: 11040 !important; }
body.modal-open .cursor-dot,
body.modal-open .cursor-outline {
  opacity: 0 !important;
  z-index: -1 !important;
}
