:root {
  --primary: #4C956C;
  --secondary: #385F71;
  --dark1: #331E38;
  --dark2: #25171A;
  --light-bg: #EAF6FF;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --primary-color: #129490;
  --secondary-color: #FF9F1C;
  --background-color: #E0E2DB;
  --text-color: #242F40;
  --accent-color: #64C9C4; /* Lighter teal for hover/accent */
  --card-bg-color: #FFFFFF; /* Keep cards white for contrast */
  --border-color: #CCCCCC; /* Neutral border */
  --link-color: var(--primary-color);
  --link-hover-color: var(--accent-color);
  --bs-primary-rgb: 18, 148, 144; /* For Bootstrap components */
  --bs-secondary-rgb: 255, 159, 28; /* For Bootstrap components */
}

/* Regular table styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile-first table styles */
@media screen and (max-width: 768px) {
    .mobile-table {
        border: 0;
    }

    .mobile-table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    .mobile-table tr {
        display: block;
        margin-bottom: 1.5rem;
        background-color: var(--card-bg-color);
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.12);
        padding: 1rem;
    }

    .mobile-table td {
        display: block;
        font-size: 0.9rem;
        text-align: left;
        padding: 0.5rem 0.5rem 0.5rem 45%;
        position: relative;
        border: none;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-color);
    }

    .mobile-table td:last-child {
        border-bottom: none;
    }

    .mobile-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 40%;
        padding-right: 10px;
        font-weight: 600;
        color: var(--text-color); /* Use main text color */
        opacity: 0.8;
    }

    /* Filter controls for mobile */
    .form-inline {
        display: block;
    }

    .form-inline .form-group {
        margin-bottom: 1rem;
        width: 100%;
    }

    .form-inline label {
        display: block;
        margin-bottom: 0.5rem;
        color: var(--text-color);
    }

    .form-inline select.form-control {
        width: 100%;
        display: block;
    }

    /* Pagination for mobile */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination .page-item {
        margin: 2px;
    }

    /* Container padding for mobile */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Navigation bar mobile adjustments */
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .nav-item {
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-item:last-child {
        border-bottom: none;
    }
}

/* Base table styles */
.table-responsive {
    margin-bottom: 1rem;
}

.mobile-table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
}

/* Modern Typography & Background */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--light-bg);
    color: var(--dark2);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 700; /* Adjust weight as needed */
    color: var(--secondary); /* Use a consistent heading color */
}

/* Remove decorative background shapes for cleaner look */
.bg-shapes {
    display: none;
}

/* Modern Button Styles */
.btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #FFFFFF; /* White text on secondary */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background-color: #FFAE42; /* Slightly lighter orange */
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-danger {
    background-color: #dc3545; /* Keep Bootstrap danger */
    color: #FFFFFF;
}
.btn-danger:hover {
    background-color: #c82333;
    color: #FFFFFF;
}


.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Card Styling */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.5rem;
}

/* Table Styling */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead th {
    background: rgba(76, 149, 108, 0.1);
    color: var(--secondary);
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.badge {
    padding: 0.5em 1em;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Link Styles */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Footer Styles (assuming footer uses bg-light) */
.bg-light {
    background-color: #f1f3f0 !important; /* Slightly lighter than main bg */
}
.text-muted {
    color: #5a687a !important; /* Adjust muted text for new bg */
}

/* Mobile Optimizations */
@media (max-width: 576px) {
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

/* Admin Action Buttons (Example - Adjust if needed) */
.admin-action-btn {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.admin-action-btn:hover {
    background-color: #f8f9fa; /* Light hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.admin-action-btn i {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.admin-action-btn:hover i {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* Role Description Card Styles */
.role-card {
  border-radius: 4px; /* Even less rounded corners */
  border: 2px solid var(--text-color); /* Doodle border */
  box-shadow: 4px 4px 0px 0px var(--text-color); /* Offset shadow for 3D feel */
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  overflow: hidden; /* Ensure header bg doesn't bleed */
  color: var(--text-color); /* Default text color */
}

.role-card:hover {
  transform: translate(-2px, -2px); /* Shift up and left on hover */
  box-shadow: 6px 6px 0px 0px var(--text-color); /* Increase shadow offset */
  color: var(--text-color); /* Ensure text color doesn't change on hover via link */
}

.role-link:hover {
    text-decoration: none; /* Remove underline from link hover */
}

.role-card .card-header {
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--text-color); /* Match border */
}

.role-card .card-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0;
}

.role-card .card-body {
  padding: 1.25rem;
}
.role-card .card-body ul {
  padding-left: 1.2rem;
  list-style: disc;
}
.role-card .card-body li {
  margin-bottom: 0.6rem;
}

/* Specific Role Colors (New Palette) */
#role-speaker .card-header { background-color: #0F5257; color: #FFFFFF; } /* Dark Teal */
#role-chair .card-header   { background-color: #28AFB0; color: #FFFFFF; } /* Bright Teal */
#role-leader .card-header  { background-color: #A690A4; color: #FFFFFF; } /* Muted Purple */
#role-contact .card-header { background-color: #563440; color: #FFFFFF; } /* Dark Mauve */

/* Ensure header text color overrides default card text color */
#role-speaker .card-header h3,
#role-chair .card-header h3,
#role-leader .card-header h3,
#role-contact .card-header h3 {
    color: #FFFFFF;
}

/* Homepage Action Buttons */
.home-action-btn {
    border-radius: 4px; /* Less rounded corners for homepage buttons */
}

/* Form Controls */
.form-control {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(0,0,0,0.1);
    transition: var(--transition);
    background: rgba(255,255,255,0.9);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(76, 149, 108, 0.1);
    background: white;
}

.form-label {
    font-weight: 500;
    color: var(--dark2);
    margin-bottom: 0.5rem;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.8);
    box-shadow: var(--shadow-sm);
}

.nav-link {
    font-weight: 500;
    color: var(--dark2);
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(76, 149, 108, 0.1);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .card {
        border-radius: 12px;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
    
    .table-responsive {
        border-radius: 12px;
        box-shadow: var(--shadow-sm);
    }

    /* Mobile navbar brand improvements */
    .navbar-brand {
        display: flex;
        align-items: center;
        padding: 0.5rem 0;
        margin-right: 0;
        color: var(--secondary);
    }

    .navbar-brand i {
        font-size: 1.2rem;
    }

    .navbar-brand span {
        display: inline-block;
        vertical-align: middle;
        color: var(--secondary);
    }

    /* Mobile navbar container adjustments */
    .navbar .container-fluid {
        padding: 0.5rem 1rem;
    }

    /* Mobile navbar toggler improvements */
    .navbar-toggler {
        padding: 0.5rem;
        margin-right: 0.5rem;
    }

    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(2px);
    border-radius: inherit;
}

/* Modern Grid Layout */
.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Modern List Group */
.list-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 1.5rem;
    transition: var(--transition);
}

.list-group-item:hover {
    background: rgba(76, 149, 108, 0.05);
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Homepage Revamp Styles */
.hero-section-revamped {
    background: url("../img/hero.jpg") no-repeat center center;
    background-size: cover;
    padding: 8rem 0;
    position: relative;
    color: white;
    text-align: center;
}

.hero-section-revamped::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-text-container {
    position: relative;
    z-index: 2;
}

.hero-title-revamped {
    font-weight: 800; /* Extra bold for Montserrat */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    color: white; /* Ensure hero title is white */
}

.hero-subtitle-revamped {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary); /* Primary color for section titles */
}

#about-sbhi p.lead {
    font-size: 1.1rem;
}

.info-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content vertically in card */
}

.info-card .feature-icon-small {
    width: 50px;
    height: 50px;
}

.info-card .btn-sm {
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
}

.panel-card .card-header h5 {
    color: var(--secondary); /* Match general heading color */
}

.panel-card .card-footer {
    background-color: rgba(0,0,0,0.03) !important; /* Subtle footer for panel cards */
}