/* Jay County Conservation Club - Custom Styles for MDB Bootstrap */

/* Custom Variables */
:root {
    --primary-green: #198754;
    --secondary-green: #20c997;
    --dark-green: #0f5132;
    --light-green: #d1e7dd;
    --accent-orange: #fd7e14;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Custom Button Styles - Consolidated to prevent conflicts */
.btn,
a.btn,
button.btn {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none;
    display: inline-block;
}

/* Ensure button links are always clickable */
a.btn {
    display: inline-block;
    pointer-events: auto !important;
}

.btn-success {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-success:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
}

.btn-outline-success {
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-outline-success:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-warning {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
}

.btn-warning:hover {
    background-color: #e55a00;
    border-color: #e55a00;
    color: white;
}

/* Hero Section */
.hero {
    background-image: url('jcccwebback.jpg'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: visible;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll; /* Better performance on mobile */
    }
}

/* Dark overlay to ensure text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 81, 50, 0.7) 0%, rgba(25, 135, 84, 0.6) 100%);
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Optional: Add texture overlay for visual interest (uncomment if desired) */
/*
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    opacity: 0.3;
}
*/

.hero-content {
    position: relative !important;
    z-index: 100 !important;
    pointer-events: auto !important;
    isolation: isolate;
}

/* Ensure hero section doesn't block clicks */
.hero {
    pointer-events: auto;
}

.hero > * {
    pointer-events: auto;
}

/* Ensure buttons in hero are above overlay */
.hero .btn,
.hero a.btn,
.hero button.btn,
.hero-content .btn,
.hero-content a.btn {
    position: relative;
    z-index: 101;
    pointer-events: auto !important;
}

/* Dues Notice Section */
.dues-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

/* Card Enhancements */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Prevent card hover from affecting buttons inside */
.card:hover .btn,
.card:hover a.btn,
.card:hover button.btn {
    transform: none;
    position: relative;
    z-index: 11;
}

/* Disable hover effects on touch devices */
@media (hover: none) {
    .card:hover {
        transform: none;
    }
}

/* Custom Navbar Brand */
.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

/* Ensure navbar toggler is always visible on mobile */
@media (max-width: 991px) {
    .navbar-toggler {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .navbar-collapse {
        text-align: center;
    }
}

/* Mobile menu improvements */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.95);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 0.5rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.5rem 0.75rem;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background-color: transparent;
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-radius: 4px;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
        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%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 1.5em;
        height: 1.5em;
    }
    
    .navbar-brand {
        flex: 1;
    }
    
    .navbar-brand span {
        display: none;
    }
    
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .navbar-brand span {
        display: none;
    }
    
    .navbar-toggler {
        padding: 0.4rem 0.6rem;
        min-width: 44px;
        min-height: 44px;
    }
}

/* Footer Enhancements */
.footer a:hover {
    color: var(--primary-green) !important;
    text-decoration: none;
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 76px;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Membership Benefits Section */
.membership-benefits {
    padding: 80px 0;
    background: var(--bg-light);
}

.benefit-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-icon i {
    font-size: 2rem;
    color: white;
}

/* Membership Requirements */
.membership-requirements {
    padding: 80px 0;
}

.requirements-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.requirement-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.requirement-section h3 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-green);
    padding-bottom: 0.5rem;
}

/* Application Form */
.application-form {
    padding: 80px 0;
    background: var(--bg-light);
}

.membership-form {
    background: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #dee2e6;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: white;
}

.contact-info-card {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    height: 100%;
}

.contact-info-card i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

/* Calendar Styles */
.calendar-nav {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
    margin-top: 76px;
}

.calendar-section {
    padding: 50px 0;
    background: var(--bg-light);
}

.calendar-container {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.calendar-month {
    padding: 2rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #dee2e6;
}

.calendar-day {
    background: white;
    padding: 1rem;
    min-height: 100px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calendar-day:hover {
    background: var(--light-green);
}

.calendar-day.today {
    background: var(--primary-green);
    color: white;
}

.calendar-day.has-events {
    background: var(--light-green);
    position: relative;
}

.calendar-day.has-events::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
}

.calendar-week {
    display: contents;
}

.day-events {
    margin-top: 0.5rem;
}

.day-event {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
    background: var(--primary-green);
    color: white;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.day-event:hover {
    background: var(--dark-green);
}

.day-event-more {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    background: var(--secondary-green);
    color: white;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.calendar-list {
    padding: 2rem;
}

.event-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-green);
}

.event-date {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-description {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Upcoming Events */
.upcoming-events {
    padding: 80px 0;
    background: white;
}

.event-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card .card-img-top {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* Event Categories */
.event-categories {
    padding: 80px 0;
    background: var(--bg-light);
}

.category-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.category-icon i {
    font-size: 2rem;
    color: white;
}

/* Event Registration */
.event-registration {
    padding: 80px 0;
    background: white;
}

.registration-form {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

/* Image Gallery Styles */
.gallery-image {
    height: 300px;
    object-fit: cover;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .display-4 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .navbar-brand span {
        font-size: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Center align all text content on mobile */
    body {
        text-align: center;
    }
    
    .container,
    .container-fluid {
        text-align: center;
    }
    
    /* Headings center aligned */
    h1, h2, h3, h4, h5, h6,
    .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
        text-align: center !important;
    }
    
    /* Paragraphs and text */
    p, .lead, .text-start {
        text-align: center !important;
    }
    
    /* Cards center aligned */
    .card {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .card-body {
        text-align: center;
    }
    
    .card-title,
    .card-text {
        text-align: center;
    }
    
    /* Buttons center aligned and clickable on mobile */
    .btn {
        display: inline-block;
        position: relative;
        z-index: 10 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }
    
    /* Ensure button links are clickable */
    a.btn {
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 10 !important;
        position: relative !important;
    }
    
    .d-flex {
        justify-content: center;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .requirements-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .membership-form {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .calendar-day {
        padding: 0.5rem;
        min-height: 60px;
        font-size: 0.9rem;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero .display-4 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
    
    .hero .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Navigation mobile improvements */
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        text-align: center;
    }
    
    .navbar .d-flex {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-top: 1rem;
        align-items: center;
    }
    
    .navbar .d-flex .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    /* Section padding adjustments */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Card adjustments */
    .card-body {
        padding: 1.5rem !important;
    }
    
    /* Image gallery mobile */
    .image-gallery .gallery-image {
        height: 250px;
    }
    
    /* About section stats */
    .about .col-6 {
        margin-bottom: 1rem;
    }
    
    .about {
        text-align: center;
    }
    
    /* Features section */
    .features .col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    .features {
        text-align: center;
    }
    
    /* Contact info cards */
    .contact-info .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    .contact-info {
        text-align: center;
    }
    
    /* Footer adjustments */
    .footer .col-lg-4,
    .footer .col-lg-2 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer .text-md-end {
        text-align: center !important;
    }
    
    /* Dues notice */
    .dues-notice .card-body {
        padding: 1.5rem !important;
        text-align: center;
    }
    
    .dues-notice {
        text-align: center;
    }
    
    /* Display adjustments */
    .display-5 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    /* Row and column centering */
    .row {
        justify-content: center;
    }
    
    [class*="col-"] {
        text-align: center;
    }
    
    /* Lists center aligned */
    ul, ol {
        text-align: center;
        list-style-position: inside;
    }
    
    /* Alerts and notices center aligned */
    .alert {
        text-align: center;
    }
    
    /* Input groups center aligned */
    .input-group {
        justify-content: center;
    }
    
    /* Text utilities override for mobile */
    .text-start,
    .text-left {
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    /* Ensure everything is centered on small mobile */
    body,
    .container,
    section {
        text-align: center;
    }
    
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .membership-form {
        padding: 1.5rem;
    }
    
    .calendar-day {
        padding: 0.25rem;
        min-height: 50px;
        font-size: 0.8rem;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .navbar-brand img {
        height: 30px !important;
    }
    
    .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    /* Hero section mobile */
    .hero {
        min-height: 60vh;
        padding-top: 80px;
    }
    
    .hero .display-4 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero .lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero .btn-lg {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero .d-flex.flex-wrap {
        flex-direction: column;
    }
    
    /* Section headings */
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem !important;
    }
    
    /* Image gallery */
    .image-gallery .gallery-image {
        height: 200px;
    }
    
    .image-gallery .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* About section */
    .about .col-6 {
        margin-bottom: 1rem;
    }
    
    .about .card-body {
        padding: 1rem !important;
    }
    
    .about .card-body i {
        font-size: 2rem !important;
    }
    
    /* Features */
    .features .col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    .features .card-body i {
        font-size: 2.5rem !important;
    }
    
    /* Contact info */
    .contact-info .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    .contact-info .card-body i {
        font-size: 2rem !important;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .footer .d-flex.gap-3 {
        justify-content: center;
    }
    
    /* Dues notice */
    .dues-notice {
        padding: 2rem 0 !important;
    }
    
    .dues-notice .card-body {
        padding: 1.25rem !important;
    }
    
    .dues-notice h2 {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Text sizes */
    .lead {
        font-size: 1rem;
    }
    
    /* Spacing */
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-success {
    color: var(--primary-green) !important;
}

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

.border-success {
    border-color: var(--primary-green) !important;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    /* Ensure buttons are touch-friendly */
    .btn {
        min-height: 44px; /* iOS recommended touch target size */
        padding: 0.75rem 1.5rem;
        display: inline-block;
        position: relative;
        z-index: 1;
        pointer-events: auto;
        cursor: pointer;
    }
    
    /* Make links easier to tap - but only non-button links */
    a:not(.btn) {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Ensure button links are clickable */
    a.btn {
        display: inline-block;
        pointer-events: auto;
        cursor: pointer;
        text-decoration: none;
        z-index: 1;
        position: relative;
    }
    
    /* Improve form inputs for mobile */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    /* Better spacing for touch */
    .nav-link {
        padding: 1rem 0.5rem;
        min-height: 44px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .footer {
        display: none !important;
    }
    
    .page-header {
        margin-top: 0;
        padding: 2rem 0;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}

/* FAQ Search Highlighting */
.search-highlight {
    border: 2px solid #28a745 !important;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3) !important;
}

.search-highlight .accordion-button {
    background-color: #d4edda !important;
    color: #155724 !important;
}

/* Form Validation Styles */
.is-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Tree Voting Modal Styles */
#treeVotingModal {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* CRITICAL: Remove modal backdrop when modal is hidden */
body:not(.modal-open) .modal-backdrop {
    display: none !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* CRITICAL: Ensure navbar and header are always clickable */
.navbar,
header,
.navbar *,
header * {
    pointer-events: auto !important;
    z-index: 1030 !important;
}

/* CRITICAL: Ensure all buttons are always clickable */
.btn,
a.btn,
button.btn,
a[href],
button,
.nav-link {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    position: relative !important;
}

#treeVotingModal .modal-dialog {
    margin: 1rem auto;
    max-width: 90%;
    width: 100%;
    display: flex;
    align-items: center;
    min-height: calc(100% - 2rem);
}

#treeVotingModal .modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

#treeVotingModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
    margin: auto;
    width: 100%;
}

#treeVotingModal img {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    display: block;
}

@media (max-width: 992px) {
    #treeVotingModal .modal-dialog {
        max-width: 95%;
        margin: 0.75rem auto;
    }
}

@media (max-width: 768px) {
    #treeVotingModal .modal-dialog {
        max-width: 95%;
        margin: 0.5rem auto;
    }
    
    #treeVotingModal .modal-body {
        padding: 1.5rem !important;
    }
    
    #treeVotingModal img {
        max-height: 300px !important;
        width: 100%;
    }
    
    #treeVotingModal .modal-title {
        font-size: 1.1rem;
    }
    
    #treeVotingModal h4 {
        font-size: 1.3rem;
    }
    
    #treeVotingModal .lead {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    #treeVotingModal .modal-dialog {
        margin: 0.5rem auto;
        max-width: 95%;
        min-height: auto;
    }
    
    #treeVotingModal .modal-dialog-centered {
        min-height: auto;
    }
    
    #treeVotingModal .modal-content {
        margin: 0;
    }
    
    #treeVotingModal .modal-body {
        padding: 1.25rem !important;
    }
    
    #treeVotingModal img {
        max-height: 250px !important;
        width: 100%;
    }
    
    #treeVotingModal .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    #treeVotingModal .modal-title {
        font-size: 1rem;
    }
    
    #treeVotingModal h4 {
        font-size: 1.2rem;
    }
    
    #treeVotingModal .alert {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}
