/* styles.css */

/* Body */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f0f0; /* Light gray background */
    color: #333333; /* Dark gray text color */
}

/* Container */
.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: linear-gradient(135deg, #eef2f3, #f7f9f9);
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Common Job Card and Container Styles */
.common-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow-wrap: break-word; /* Ensure content wraps properly */
    word-wrap: break-word; /* Compatibility with older browsers */
    word-break: break-word; /* Break long words */
}

.common-container h1 {
    color: #0d6efd;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.common-container .title {
    font-weight: bold;
    color: #333333;
}

.common-container .content {
    display: block;
    margin-bottom: 10px;
    color: #666666;
}

/* Media Queries for Job Detail Page */
/* Mobile Styles */
@media (max-width: 600px) {
    .common-container {
        padding: 20px;
        margin: 20px auto;
    }

    .common-container h1 {
        font-size: 28px;
    }

    .common-container .title, .common-container .content {
        font-size: 14px;
        word-wrap: break-word;
        word-break: break-word;
    }
}

/* Specific styles for very small screens like iPhone SE */
@media (max-width: 375px) {
    .common-container {
        padding: 10px;
        margin: 10px auto;
    }

    .common-container h1 {
        font-size: 24px;
    }

    .common-container .title, .common-container .content {
        font-size: 12px;
    }
}


/* Heading */
h1 {
    color: #0d6efd;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

/* Job Listings */
.job-listings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Job Card */
.job-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.job-card-content {
    flex: 1;
    overflow: auto;
    max-height: 150px; /* Adjust this value based on your design */
}

.job-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.job-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.job-company, .job-location, .job-type {
    color: #666666;
    margin-bottom: 4px;
}


/* Job details */
.job-detail-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow-wrap: break-word; /* Ensure content wraps properly */
    word-wrap: break-word; /* Compatibility with older browsers */
    word-break: break-word; /* Break long words */
}

.job-detail-container h1 {
    color: #0d6efd;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.job-detail-container .title {
    font-weight: bold;
    color: #333333;
}

.job-detail-container .content {
    display: block;
    margin-bottom: 10px;
    color: #666666;
}

.title {
    font-weight: 900; /* Make title text bold */
    font-family: 'Roboto', sans-serif; /* Use Roboto font */
    color: #000000; /* Black title color */
}

/* Content */
.content {
    font-family: 'Roboto', sans-serif; /* Use Roboto font */
    color: #333333; /* Dark gray content color */
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    background-color: #0d6efd; /* Blue button background */
    color: #ffffff; /* White button text color */
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Links */
a {
    color: #0d6efd; /* Blue link color */
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0d6efd; /* Blue underline color */
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

a:hover {
    color: #0a58ca; /* Darker blue on hover */
}

a:hover::before {
    visibility: visible;
    transform: scaleX(1);
}

/* Navigation */
nav {
    background-color: #ffffff; /* White navigation background */
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: #333333; /* Dark gray navigation text color */
    font-weight: 600;
    text-decoration: none;
}

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

nav li {
    margin-left: 20px;
}

/* top image */
.logo {
    height: 40px; /* Adjust the height as needed */
    margin-right: 10px; /* Optional margin for spacing */
    vertical-align: middle; /* Align the image vertically with the text */
}


/* Error Message */
.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Ad Banner */
.ad-banner {
    text-align: center;
    background-color: #f0f0f0;
    padding: 10px;
    max-width: 100%;
    overflow: hidden;
}

.ad-banner img {
    max-width: 100%;
    height: 30px;
    display: block;
    margin: 0 auto;
}

/* Specific styles for form groups and inputs in add-job */
.add-job .mb-3 {
    margin-bottom: 15px;
}

.add-job .mb-3 label {
    font-weight: bold;
}

.add-job .form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Ensure textarea elements (like description) fit within container */
.add-job textarea.form-control {
    resize: vertical;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Button styling */
.add-job button.btn-primary {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

.add-job button.btn-primary:hover {
    background-color: #0056b3;
}

/* User Profile */
.user-profile {
    background-color: #e9ecef; /* Light gray background for a subtle contrast */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Style for Profile Items */
.profile-item {
    margin-bottom: 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #ffffff; /* Clean white background for profile items */
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff; /* Left border for emphasis */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Inner Profile Item Layout */
.profile-item-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

/* Profile Headers */
.profile-item-inner h3 {
    font-size: 18px;
    color: #007bff; /* Bright blue for headers */
    margin-bottom: 10px;
}

.profile-item-inner p,
.profile-item-inner a {
    color: #343a40; /* Dark gray for text for good readability */
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 16px;
    line-height: 1.5;
}


/* Profile Picture Styling */
.profile-picture {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid #007bff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-picture:hover {
    transform: scale(1.05);
}

/* Bio Text Styling */
.bio {
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
    color: #4a4a4a;
}

/* Button and Link Styling */
.profile-links .btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.profile-links .btn:hover {
    background-color: #0056b3;
}

.profile-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 16px;
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.profile-links a:hover {
    color: #003569;
}

/* Textarea in Edit Mode */
.profile-item-inner textarea[name="bio"] {
    min-height: 180px;
    padding: 15px;
    resize: vertical;
}







/* Navbar Base Styles */
.navbar {
    background: white;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
}

/* Add padding to body to prevent content from hiding under fixed navbar */
body {
    padding-top: 76px; /* Adjust this value based on your navbar height (56px) + padding (20px) */
}

/* Rest of your existing styles */
.brand-text {
    color: #007bff;
    font-size: 1.5rem;
}

/* Dropdown Styles */
.dropdown-menu {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border: none;
    min-width: 250px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Show dropdown on hover for larger screens */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Keep dropdown visible while hovering over it */
    .dropdown-menu:hover {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Items */
.dropdown-header {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}

.dropdown-item {
    padding: 12px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    white-space: normal;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.item-description {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dropdown-item:hover .item-description {
    opacity: 1;
}

/* Profile Picture */
.navbar-profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #25D366;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

/* Profile dropdown specific styles */
.dropdown-menu-end {
    right: 0;
    left: auto;
}

/* Button Styles */
.subscribe-btn {
    background: #007bff;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 123, 255, 0.3);
}

.login-btn {
    color: #007bff !important;
    font-weight: 600;
}

.signup-btn {
    background: #28a745;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(40, 167, 69, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    /* Adjust body padding for mobile */
    body {
        padding-top: 72px; /* Slightly smaller for mobile */
    }

    .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
        padding: 0 0 0 20px;
    }

    .dropdown-menu.show {
        display: block;
        opacity: 1;
        transform: none;
    }

    .item-description {
        opacity: 1;
    }

    .dropdown-item {
        padding: 8px 12px;
    }

    .dropdown-item:hover {
        transform: none;
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
    }

    .subscribe-btn, .signup-btn {
        display: inline-block;
        width: auto;
    }

    /* Ensure dropdowns work on mobile */
    .dropdown-toggle::after {
        float: right;
        margin-top: 10px;
    }
}

/* Fix for dropdown toggle spacing */
.dropdown-toggle::after {
    margin-left: 0.5em;
    vertical-align: middle;
}









/* Footer Styles */
footer {
    background-color: #f8f9fa;
    color: #343a40;
    padding: 40px 0; /* Increased padding for a taller footer */
    margin-top: 40px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 30px; /* Increased margin for better spacing */
}

.footer-section h2 {
    font-size: 20px; /* Increased font size for section titles */
    font-weight: 700;
    margin-bottom: 15px; /* Increased margin for section titles */
}

.footer-section p, 
.footer-section ul li a {
    font-weight: 400;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #343a40;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #0d6efd;
}

.pb-4 {
    padding-bottom: 1.5rem; /* Padding for social icons */
}

.footer-bottom {
    background-color: #454546; /* Dark background for footer bottom */
    color: #fff;
    text-align: center;
    padding: 20px 0; /* Adjust padding for footer bottom */
    margin-top: 20px;
    font-size: 14px;
    font-weight: 700;
}

.footer-copyright {
    margin-top: 10px; /* Space above copyright text */
}

/* Social Icons Styles */
.footer-content .fab {
    font-size: 20px; /* Font size for social icons */
    color: #343a40; /* Default color for icons */
    transition: color 0.3s ease;
}

.footer-content .fab:hover {
    color: #0d6efd; /* Change color on hover */
}


/* Pagination Container */
.pagination-container {
    max-width: 100%; /* Ensure it doesn't exceed the container */
    overflow-x: auto; /* Allow scrolling if content overflows horizontally */
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow elements to wrap if needed */
    margin-top: 20px;
}

.pagination .step-links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .step-links a,
.pagination .step-links span {
    margin: 5px;
    padding: 8px 16px;
    text-decoration: none;
    color: #007bff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    transition: background-color 0.2s;
    white-space: nowrap; /* Prevent text wrapping inside links */
}

.pagination .step-links a:hover {
    background-color: #e9ecef;
}

.pagination .step-links .current {
    font-weight: bold;
    color: #495057;
}











/* Base styles */
body {
    background-color: #f8f9fa;
}

/* Product page styles */
.product-image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-image {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
}

.image-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 2;
}

.nav-arrow {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-arrow {
    z-index: 10;
    cursor: pointer;
    position: relative;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
}

.image-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* Product details */
.product-details {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.price {
    font-size: 1.5rem;
    color: #28a745;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 1.5rem;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Rating system */
.star-rating {
    direction: rtl;
    display: inline-block;
    padding: 20px;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    color: #ddd;
    font-size: 1.5rem;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
    color: #ffc107;
}

.rating-stats {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.rating-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

#ratingMessage {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
}

.current-rating {
    font-size: 2.5rem;
    color: #ffc107;
    font-weight: bold;
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Comments section */
.comments-section {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 #fff;
}

.comments-section::-webkit-scrollbar {
    width: 6px;
}

.comments-section::-webkit-scrollbar-track {
    background: #fff;
}

.comments-section::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 3px;
}

.comment-card {
    background-color: #fff;
    transition: all 0.3s ease;
}

.comment-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.text-warning .fas.fa-star {
    font-size: 0.9rem;
    color: #ffc107;
}

.text-warning .far.fa-star {
    font-size: 0.9rem;
    color: #ddd;
}

/* Modal styles */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: pointer;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 25px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
}

/* Touch support */
.product-image-container {
    touch-action: pan-y pinch-zoom;
}

/* Opto Store specific styles */
.opto-store-heading {
    font-weight: 900;
    letter-spacing: -1px;
    color: #0d7aee;
    margin-bottom: 15px;
}

.opto-store-container {
    position: relative;
    width: 100%;
}

/* Card styles */
.card {
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Category and rating badges */
.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 0.9rem;
}

.rating-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 2;
}

.rating-stars {
    display: inline-block;
    margin-right: 4px;
}

.rating-count {
    font-size: 0.8rem;
    color: #fff;
    margin-left: 4px;
}

/* Navigation styles */
.navbar-custom {
    background: linear-gradient(135deg, #e6f2ff 0%, #b3d9ff 100%);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    padding: 10px 0;
    border: 1px solid #89c4f4;
    position: relative;
    width: 100%;
    z-index: 1000;
}

/* Pagination styles */
.pagination {
    justify-content: center;
}











/* Mobile View Adjustments */
@media (max-width: 576px) {
    .pagination .step-links a,
    .pagination .step-links span {
        padding: 6px 10px; /* Smaller padding for better fit */
        font-size: 14px;
        margin: 3px;
    }
}




.leaderboard-table-container {
    overflow-x: auto; /* Add horizontal scrolling if content overflows */
}

/* Additional styles for the Subscribe page */

/* Subscription Container */
.subscription-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff; /* White background */
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow-wrap: break-word;
}

.subscription-container h2 {
    color: #0d6efd;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

.payment-options {
    font-style: italic;
    margin-top: 10px;
    color: #555;
}

.subscription-details {
    margin-top: 50px;
}

/* Plan */
.plan {
    background-color: #f8f9fa; /* Light gray background */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.plan h4 {
    color: #0d6efd;
    font-size: 24px;
    margin-bottom: 15px;
}

.plan p {
    font-size: 18px;
    color: #333333;
    margin-bottom: 10px;
}

.plan ul {
    padding-left: 20px;
}

.plan li {
    font-size: 16px;
    color: #666666;
    margin-bottom: 5px;
}





















/* Home.html styles */
/* Hero Section Styles */
.hero-section {
    position: relative;
    width: 100%;
    height: 350px; /* Default height for larger screens */
  }
  
  .fade-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  .fade-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 2s ease-in-out, visibility 0s linear 2s;
  }
  
  .fade-slider img.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 2s ease-in-out;
  }
  
  .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
  }
  
  .hero-text h1 {
    font-size: 2.5em; /* Default font size for larger screens */
    margin-bottom: 10px;
  }
  
  .hero-text p {
    font-size: 1.2em; /* Default font size for larger screens */
  }
  
  .search-form { 
    display: flex; 
    justify-content: center; 
    margin-top: 20px; 
    gap: 5px;
  } 
  
  /* Shared styles for both input and select */
  .search-form input,
  .search-form select { 
    padding: 10px; 
    width: 250px;
    box-sizing: border-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
  } 
  
  /* Specific styles for the select/dropdown */
  .search-form select {  
    appearance: none; /* Remove default arrow */
    background-color: white;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23495057' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px; /* Space for custom arrow */
    cursor: pointer;
  }
  
  /* Add hover effect to indicate interactivity */
  .search-form select:hover {
    border-color: #adb5bd;
  }
  
  .search-form button { 
    padding: 10px 20px; 
    background-color: #28a745; 
    color: white; 
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
  } 
  
  .search-form button i {
    margin-right: 5px;
  }
  
  /* Field label styles */
  .field-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #495057;
  }
  
  /* Form field wrapper */
  .form-field {
    display: flex;
    flex-direction: column;
  }  
  
  /* Hover Effects for Product Images */
  .product-images img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
  }
  
  .product-images img:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
  }
  
  .product-images p {
    font-size: 1em;
    font-weight: 500;
    color: #333;
  }
  
  .product-images a {
    text-decoration: none;
    color: inherit;
  }
  
  .product-images a:hover p {
    text-decoration: underline;
  }
  
  .hover-shadow {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }
  
  .hover-shadow:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
  }

  .badge.bg-sponsored {
    background-color: #ffc107 !important;
    color: #000 !important;
    opacity: 0.95;
    font-size: 0.7em;
    padding: 0.3em 0.6em;
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.badge.bg-sponsored:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Stats Counter Styles with Primary Blue */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
  }
  
  .stat-item {
    text-align: center;
    color: #333;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }
  
  .stat-item:hover {
    transform: translateY(-5px);
  }
  
  .stat-item .counter {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff; /* Primary blue from your color palette */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .stat-item .counter::after {
    content: '+';
    margin-left: 5px;
    color: #007bff;
    font-size: 1.5rem;
  }
  
  .stat-item p {
    font-size: 0.9rem;
    margin-top: 5px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  
  .section-header {
    margin-bottom: 3rem;
  }
  
  .section-header h2 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #333;
  }
  
  .divider-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  
  .divider-with-icon .line {
    flex-grow: 1;
    height: 2px;
    background-color: #ddd;
    max-width: 100px;
  }
  
  .divider-with-icon i {
    color: #007bff;
    margin: 0 15px;
    font-size: 1.5rem;
  }
  
  .section-header p.text-muted {
    color: #6c757d;
    font-size: 1rem;
  } 
  

  .testimonials-section {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 350px; /* Increased height to accommodate longer content */
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 280px; /* Fixed height */
    overflow: hidden;
}

.testimonial-card.active {
    opacity: 1;
}

.testimonial-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-style: italic;
    color: #6c757d;
    font-size: 1.1em;
}

.testimonial-content p {
    max-height: 150px;
    overflow: hidden;
    position: relative;
    text-overflow: ellipsis;
}

.testimonial-content p::after {
    content: "...";
    position: absolute;
    right: 0;
    bottom: 0;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 15px;
}

.author-info h5 {
    margin-bottom: 5px;
    color: #333;
}

.author-info p {
    color: #6c757d;
    font-size: 0.9em;
}

.testimonial-navigation {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.nav-dot {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-dot.active {
    background-color: #007bff;
}

.company-logo {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 4px;
}






/* Main container styles */
/* Main container styles - scoped to auth pages */
.auth-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

/* Card styles - scoped to auth pages */
.auth-form-card,
.auth-callout-card {
    padding: 2rem;
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    text-align: center; /* Center all content in cards */
}

.auth-callout-card {
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Text alignment for form elements within auth containers */
.auth-container .form-group {
    text-align: left; /* Keep form labels left-aligned */
}

/* Button styles - scoped to authentication features */
.btn-google {
    position: relative;
    background-color: #fff;
    color: #757575;
    border: 1px solid #ddd;
    padding: 10px 24px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto; /* Center the button */
    max-width: 300px; /* Limit width on larger screens */
}

.btn-google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.google-icon {
    display: flex;
    align-items: center;
    height: 18px;
    margin-right: 10px;
}

.google-icon svg {
    vertical-align: middle;
    width: 18px;
    height: 18px;
}

.auth-container .btn-social,
.login-container .btn-social,
.signup-container .btn-social,
.socialaccount_providers .btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    transition: all 0.2s ease;
    margin: 0 auto; /* Center social buttons */
    max-width: 300px; /* Limit width on larger screens */
}

.auth-container .btn-social i,
.login-container .btn-social i,
.signup-container .btn-social i {
    margin-right: 10px;
}

.auth-container .btn-primary,
.login-container .btn-primary,
.signup-container .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 10px 24px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
    transition: all 0.2s ease;
}

.auth-container .btn-primary:hover,
.login-container .btn-primary:hover,
.signup-container .btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

.auth-container .btn-success,
.login-container .btn-success,
.signup-container .btn-success {
    background-color: #28a745;
    border-color: #28a745;
    padding: 10px 24px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
    transition: all 0.2s ease;
}

.auth-container .btn-success:hover,
.login-container .btn-success:hover,
.signup-container .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.3);
}

/* Separator styles - scoped to auth containers */
.auth-container .separator,
.login-container .separator,
.signup-container .separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #6c757d;
    margin: 20px 0;
}

.auth-container .separator::before,
.auth-container .separator::after,
.login-container .separator::before,
.login-container .separator::after,
.signup-container .separator::before,
.signup-container .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.auth-container .separator::before,
.login-container .separator::before,
.signup-container .separator::before {
    margin-right: 1rem;
}

.auth-container .separator::after,
.login-container .separator::after,
.signup-container .separator::after {
    margin-left: 1rem;
}

.auth-container .separator-text,
.login-container .separator-text,
.signup-container .separator-text {
    padding: 0 10px;
    background-color: #fff;
    font-size: 14px;
}

/* Headings centered - scoped to auth containers */
.auth-container h1, 
.auth-container h2, 
.auth-container h3, 
.auth-container h4, 
.auth-container h5, 
.auth-container h6,
.login-container h1,
.login-container h2,
.login-container h3,
.login-container h4,
.login-container h5,
.login-container h6,
.signup-container h1,
.signup-container h2,
.signup-container h3,
.signup-container h4,
.signup-container h5,
.signup-container h6 {
    text-align: center;
}

/* Form styles - scoped to auth containers */
.auth-container .form-group,
.login-container .form-group,
.signup-container .form-group {
    margin-bottom: 1.5rem;
}

.auth-container .form-control,
.login-container .form-control,
.signup-container .form-control {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ced4da;
}

.auth-container .form-control:focus,
.login-container .form-control:focus,
.signup-container .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Links styles - scoped to auth containers */
.auth-container a.text-muted,
.login-container a.text-muted,
.signup-container a.text-muted {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-container a.text-muted:hover,
.login-container a.text-muted:hover,
.signup-container a.text-muted:hover {
    color: #5a6268;
    text-decoration: underline;
}

/* Ensure form labels are properly aligned - scoped to auth containers */
.auth-container label,
.login-container label,
.signup-container label {
    display: block;
    margin-bottom: 0.5rem;
    text-align: left;
}

/* Center paragraphs - scoped to auth containers */
.auth-container p,
.login-container p,
.signup-container p {
    text-align: center;
}

/* Crispy forms adjustments - scoped to auth containers */
.auth-container .asteriskField,
.login-container .asteriskField,
.signup-container .asteriskField {
    display: inline-block;
    margin-left: 3px;
    color: #dc3545;
}

/* Fix for help text - scoped to auth containers */
.auth-container .form-text,
.login-container .form-text,
.signup-container .form-text {
    text-align: left;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Specifically for Google login page */
.socialaccount_providers {
    text-align: center;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.socialaccount_providers li {
    margin-bottom: 1rem;
}

.socialaccount_provider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 300px;
}

/* Social logins container */
.social-login {
    margin: 0 auto;
    max-width: 300px;
}

/* Login and signup button styles from your original code */
.login-btn {
    color: #007bff !important;
    font-weight: 600;
}

.signup-btn {
    background: #28a745;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(40, 167, 69, 0.3);
}

/* Responsive styles */
@media (max-width: 991.98px) {
    .auth-container {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .auth-form-card,
    .auth-callout-card {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .auth-container {
        padding: 0.5rem;
        margin: 0.5rem auto;
    }
    
    .auth-form-card,
    .auth-callout-card {
        padding: 1.25rem;
    }
    
    .auth-container h1,
    .login-container h1,
    .signup-container h1 {
        font-size: 1.75rem;
    }
    
    .auth-container h2,
    .login-container h2,
    .signup-container h2 {
        font-size: 1.5rem;
    }
    
    .auth-container .lead,
    .login-container .lead,
    .signup-container .lead {
        font-size: 1rem;
    }
    
    /* Ensure buttons remain centered on mobile */
    .btn-google, 
    .auth-container .btn-social,
    .login-container .btn-social,
    .signup-container .btn-social,
    .socialaccount_providers .btn-social {
        width: 100%;
        max-width: 280px;
    }
    
    .login-container, .signup-container {
        padding: 20px;
    }
}





















/* Custom styling for filter form */
/* Updated Custom styling for filter form */
.bg-gradient-primary {
    background: linear-gradient(135deg, #454343 0%, #007bff 100%);
}

.form-control-md, .form-select-md {
    font-size: 0.95rem;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    height: calc(2em + 0.5rem + 4px);
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: all 0.3s ease;
    padding: 0.375rem 1rem;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
    transform: translateY(-1px);
}

.btn-outline-secondary:hover {
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-header h5 {
        font-size: 0.95rem;
    }
    
    .form-control-md, .form-select-md {
        font-size: 0.9rem;
    }
    
    .btn-md {
        font-size: 0.9rem;
        padding: 0.325rem 0.75rem !important;
    }
}













/* Event List Styles */
/* Category color classes */
.category-color-blue { background-color: #3498db; }
.category-color-green { background-color: #27ae60; }
.category-color-red { background-color: #e74c3c; }
.category-color-orange { background-color: #f39c12; }
.category-color-purple { background-color: #9b59b6; }
.category-color-teal { background-color: #1abc9c; }
.category-color-dark { background-color: #34495e; }
.category-color-orange-dark { background-color: #e67e22; }
.category-color-green-light { background-color: #2ecc71; }

/* Ensure text is visible on colored backgrounds */
.event-category {
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


/* Container and Layout */
.event-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 15px;
}

/* Section Header */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.divider-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

.divider-with-icon .line {
    height: 2px;
    width: 50px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    margin: 0 15px;
}

.divider-with-icon i {
    font-size: 1.5rem;
    color: #3498db;
    background: white;
    padding: 0 10px;
}

/* Search and Filter Section */
.search-filter-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-input, .category-filter, .priority-filter, .date-filter {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus, .category-filter:focus, .priority-filter:focus, .date-filter:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    outline: none;
}

.filter-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Results Info and Sort */
.results-info p {
    font-size: 0.9rem;
    margin: 0;
}

.sort-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

/* Featured Events Section */
.featured-events-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

/* Event Cards */
.event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.featured-card {
    border: 2px solid #f39c12;
    position: relative;
}

.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.event-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Event Meta */
.event-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.event-category {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.event-priority {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-low {
    background: #d4edda;
    color: #155724;
}

.priority-medium {
    background: #fff3cd;
    color: #856404;
}

.priority-high {
    background: #f8d7da;
    color: #721c24;
}

.priority-urgent {
    background: #dc3545;
    color: white;
}

/* Event Title */
.event-title {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.event-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: #3498db;
}

.featured-events-section .event-title {
    font-size: 1.3rem;
}

.main-events-section .event-title {
    font-size: 1.1rem;
}

/* Event Excerpt */
.event-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Event Details */
.event-details {
    margin-bottom: 1.5rem;
}

.event-date {
    color: #3498db;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-date i {
    margin-right: 0.5rem;
}

.event-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.views-count, .reading-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Event Actions */
.event-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.event-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.btn-primary.event-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
}

.btn-primary.event-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-outline-secondary.event-btn {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
    flex: auto;
    min-width: auto;
}

.btn-outline-secondary.event-btn:hover {
    background: #6c757d;
    color: white;
}

/* No Events Message */
.no-events-message {
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.no-events-message i {
    font-size: 3rem;
    color: #bdc3c7;
}

.no-events-message h4 {
    color: #2c3e50;
    margin: 1rem 0;
}

/* Pagination */
.pagination-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.pagination .page-link {
    color: #3498db;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination .page-item.active .page-link {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

/* Sidebar */
.events-sidebar {
    padding-left: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Sidebar Events */
.sidebar-event {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.sidebar-event:last-child {
    border-bottom: none;
}

.sidebar-event-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-event-content {
    flex-grow: 1;
}

.sidebar-event-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.sidebar-event-title a:hover {
    color: #3498db;
}

.sidebar-event-date {
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.sidebar-event-date i {
    margin-right: 0.3rem;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 0.5rem;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.category-link:hover {
    background: #3498db;
    color: white;
    text-decoration: none;
}

.category-link i {
    margin-right: 0.5rem;
}

.category-count {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #2c3e50;
    text-decoration: none;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-link:hover {
    background: #3498db;
    color: white;
    text-decoration: none;
    transform: translateX(5px);
}

.quick-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .events-sidebar {
        padding-left: 0;
        margin-top: 3rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .event-list-container {
        padding: 1rem 15px;
    }
}

@media (max-width: 768px) {
    .search-filter-container {
        padding: 1rem;
    }
    
    .filter-btn {
        margin-top: 1rem;
    }
    
    .sort-options {
        text-align: left !important;
        margin-top: 1rem;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .event-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .divider-with-icon .line {
        width: 30px;
    }
    
    .event-image {
        height: 150px;
    }
    
    .event-content {
        padding: 1rem;
    }
    
    .sidebar-event {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .sidebar-event-image {
        width: 100%;
        height: 120px;
    }
}

/* Loading States and Animations */
.event-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus States for Accessibility */
.event-title a:focus,
.category-link:focus,
.quick-link:focus,
.event-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .search-filter-container,
    .events-sidebar,
    .pagination-container,
    .event-actions {
        display: none;
    }
    
    .event-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}







/* Event Detail Styles - Clean & Organized */
/* Inherits base styles from event list - add this to your existing styles.css or use as separate file */

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body.modal-open {
    overflow: hidden;
    height: 100vh;
}

/* ===== EVENT DETAIL CONTAINER ===== */
.event-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 15px;
}

/* ===== EVENT DETAIL CARD ===== */
.event-detail-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    overflow: hidden;
    background: white;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.event-detail-card:hover .event-detail-image {
    transform: scale(1.02);
}

/* ===== EVENT HEADER ===== */
.event-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 3px solid #3498db;
    padding: 2rem 1.5rem;
    position: relative;
}

.event-meta-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.event-detail-card .event-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.event-author-info {
    color: #6c757d;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.event-author-info i {
    color: #3498db;
    margin-right: 0.3rem;
}

/* ===== BADGES ===== */
.event-detail-card .event-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.event-detail-card .event-category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
}

.event-detail-card .event-priority-badge {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-detail-card .featured-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== EVENT IMAGE ===== */
.event-image-container {
    position: relative;
    overflow: hidden;
    max-height: 400px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.event-detail-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.event-detail-image:hover {
    transform: scale(1.02);
}

.event-detail-image[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.event-image-container:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.image-overlay span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== EVENT BODY ===== */
.event-detail-card .event-body {
    padding: 2.5rem;
}

/* ===== EVENT SUMMARY INFO ===== */
.event-summary-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    color: #3498db;
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.info-content {
    flex-grow: 1;
}

.info-content strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.event-date-display {
    color: #3498db;
    font-weight: 500;
}

/* ===== EVENT EXCERPT ===== */
.event-excerpt-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid #9c27b0;
    position: relative;
}

.event-excerpt-section::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    color: #9c27b0;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.excerpt-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    font-style: italic;
    margin-left: 2rem;
    white-space: pre-line;
}

/* ===== EVENT CONTENT ===== */
.event-content-section {
    margin-bottom: 2.5rem;
}

.event-detail-card .event-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2c3e50;
    white-space: pre-line;
    word-wrap: break-word;
}

.event-detail-card .event-content.preserve-formatting {
    white-space: pre-wrap;
}

.event-detail-card .event-content.convert-newlines {
    white-space: normal;
}

.event-detail-card .event-content.convert-newlines br {
    display: block;
    margin: 0.75rem 0;
    content: "";
}

/* Content Typography */
.event-detail-card .event-content h1,
.event-detail-card .event-content h2,
.event-detail-card .event-content h3,
.event-detail-card .event-content h4,
.event-detail-card .event-content h5,
.event-detail-card .event-content h6 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.event-detail-card .event-content h1 { font-size: 2rem; }
.event-detail-card .event-content h2 { font-size: 1.75rem; }
.event-detail-card .event-content h3 { font-size: 1.5rem; }
.event-detail-card .event-content h4 { font-size: 1.25rem; }

.event-detail-card .event-content p {
    margin-bottom: 1.5rem;
}

.event-detail-card .event-content p:not(:last-child) {
    margin-bottom: 1.5rem;
}

.event-detail-card .event-content p:empty {
    margin-bottom: 1rem;
    min-height: 1rem;
}

.event-detail-card .event-content ul,
.event-detail-card .event-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.event-detail-card .event-content li {
    margin-bottom: 0.5rem;
}

.event-detail-card .event-content blockquote {
    border-left: 4px solid #3498db;
    margin: 2rem 0;
    padding: 1rem 2rem;
    background: #f8f9fa;
    font-style: italic;
    color: #6c757d;
}

.event-detail-card .event-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.event-detail-card .event-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e83e8c;
}

.event-detail-card .event-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    white-space: pre;
}

.event-detail-card .event-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* ===== EVENT TAGS ===== */
.event-tags-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-subtitle::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #3498db;
    border-radius: 2px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.event-detail-card .event-tag {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.event-detail-card .event-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    color: white;
    text-decoration: none;
}

/* ===== EVENT LINKS ===== */
.event-links-section {
    margin-bottom: 2rem;
    text-align: center;
}

.event-detail-card .event-link-btn {
    margin: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.event-detail-card .event-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* ===== EVENT ACTIONS ===== */
.event-actions-section {
    padding: 2rem 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-detail-card .action-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.event-detail-card .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.bookmark-btn.bookmarked {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.bookmark-btn.bookmarked:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

/* ===== EVENT META INFORMATION ===== */
.event-meta-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    border-top: 3px solid #3498db;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-item strong {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-item span {
    color: #6c757d;
    font-size: 0.95rem;
}

.meta-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.meta-item a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* ===== RELATED EVENTS SECTION ===== */
.related-events-section {
    margin-top: 4rem;
}

.related-events-section .section-header h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
}

.related-event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.related-event-image {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 15px;
    height: 150px;
}

.related-event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.related-event-image:hover img {
    transform: scale(1.05);
}

.related-event-image img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.related-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.related-event-image:hover .related-image-overlay {
    opacity: 1;
}

.related-image-overlay i {
    font-size: 1.5rem;
}

.related-event-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-event-category {
    margin-bottom: 1rem;
}

.related-event-card .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.related-event-title {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.related-event-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-event-title a:hover {
    color: #3498db;
    text-decoration: none;
}

.related-event-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    white-space: pre-line;
}

.related-event-meta {
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.related-event-date {
    color: #3498db;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.related-event-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.related-event-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.related-event-action {
    margin-top: auto;
}

/* ===== EVENT NAVIGATION ===== */
.event-navigation {
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
}

.event-navigation .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.event-navigation .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ===== IMAGE MODAL ===== */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.image-modal {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
}

.modal-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    z-index: 1;
}

.image-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

.image-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff6b6b;
    font-size: 18px;
    text-align: center;
    z-index: 1;
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.image-caption {
    margin-top: 15px;
    color: white;
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== ACCESSIBILITY ===== */
.event-detail-card .event-category-badge:focus,
.event-detail-card .event-tag:focus,
.event-detail-card .event-link-btn:focus,
.event-detail-card .action-btn:focus,
.related-event-title a:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .event-detail-container {
        padding: 1rem 15px;
    }
    
    .event-detail-card .event-title {
        font-size: 2rem;
    }
    
    .event-detail-card .event-body {
        padding: 1.5rem;
    }
    
    .meta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .event-meta-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .event-author-info {
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }
    
    .event-detail-card .event-title {
        font-size: 1.75rem;
    }
    
    .event-detail-card .event-body {
        padding: 1rem;
    }
    
    .event-summary-info,
    .event-actions-section,
    .event-meta-section {
        padding: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .event-detail-card .action-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .tags-container {
        justify-content: center;
    }
    
    .event-navigation .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    /* Image Overlay Mobile */
    .image-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .image-overlay i {
        font-size: 1.5rem;
    }
    
    .image-overlay span {
        font-size: 0.8rem;
    }
    
    .related-image-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.4);
    }
    
    .related-event-image img {
        height: 180px;
    }
    
    /* Image Modal Mobile */
    .image-modal {
        max-width: 98vw;
        max-height: 98vh;
    }
    
    .modal-image {
        max-height: 80vh;
    }
    
    .image-modal-close {
        top: -45px;
        right: -5px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .image-caption {
        font-size: 12px;
        max-width: 90%;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .event-detail-card .event-title {
        font-size: 1.5rem;
    }
    
    .event-detail-card .event-content {
        font-size: 1rem;
    }
    
    .excerpt-content {
        font-size: 1rem;
        margin-left: 1rem;
    }
    
    .event-excerpt-section::before {
        font-size: 2rem;
        top: 0.5rem;
        left: 0.5rem;
    }
    
    .related-event-card {
        margin-bottom: 1.5rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .event-actions-section,
    .event-navigation,
    .related-events-section {
        display: none;
    }
    
    .event-detail-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .event-header {
        background: none !important;
        border-bottom: 2px solid #000;
    }
    
    .event-detail-card .event-title {
        color: #000 !important;
    }
    
    .event-detail-card .event-content {
        color: #000 !important;
    }
    
    .event-meta-section {
        background: none !important;
        border: 1px solid #ddd;
        border-top: 2px solid #000;
    }
}








































/* Event Calendar Styles */
/* Add this to your existing styles.css file */

/* Calendar Container */
.calendar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 15px;
}

/* Calendar Controls */
.calendar-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.calendar-controls .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-controls .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#todayBtn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
}

#todayBtn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
}

/* View Controls */
.view-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.view-controls .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Calendar Wrapper */
.calendar-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* FullCalendar Custom Styles */
.fc {
    font-family: inherit;
}

.fc-toolbar {
    margin-bottom: 1.5rem !important;
}

.fc-toolbar-title {
    font-size: 1.75rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
}

.fc-button-primary {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.fc-button-primary:hover {
    background: linear-gradient(135deg, #2980b9, #21618c) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3) !important;
}

.fc-button-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25) !important;
}

.fc-button-primary:disabled {
    opacity: 0.6 !important;
    transform: none !important;
}

/* Calendar Grid */
.fc-theme-standard .fc-scrollgrid {
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
}

.fc-theme-standard td, 
.fc-theme-standard th {
    border-color: #e9ecef !important;
}

.fc-col-header-cell {
    background: #f8f9fa !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    padding: 1rem 0.5rem !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
}

.fc-daygrid-day {
    transition: background-color 0.2s ease !important;
}

.fc-daygrid-day:hover {
    background-color: #f8f9fa !important;
}

.fc-day-today {
    background-color: rgba(52, 152, 219, 0.1) !important;
}

.fc-day-today .fc-daygrid-day-number {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    margin: 0.25rem !important;
}

.fc-daygrid-day-number {
    color: #2c3e50 !important;
    font-weight: 500 !important;
    padding: 0.5rem !important;
    text-decoration: none !important;
}

.fc-daygrid-day-number:hover {
    color: #3498db !important;
}

/* Calendar Events */
.fc-event {
    border: none !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 1px 2px !important;
}

.fc-event:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.fc-event-title {
    font-weight: 500 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.fc-event-time {
    font-weight: 400 !important;
    opacity: 0.9 !important;
}

/* Category-based event colors */
.fc-event.category-default {
    background-color: #6c757d !important;
    color: white !important;
}

.fc-event.category-blue {
    background-color: #3498db !important;
    color: white !important;
}

.fc-event.category-green {
    background-color: #27ae60 !important;
    color: white !important;
}

.fc-event.category-red {
    background-color: #e74c3c !important;
    color: white !important;
}

.fc-event.category-orange {
    background-color: #f39c12 !important;
    color: white !important;
}

.fc-event.category-purple {
    background-color: #9b59b6 !important;
    color: white !important;
}

.fc-event.category-teal {
    background-color: #1abc9c !important;
    color: white !important;
}

.fc-event.category-dark {
    background-color: #34495e !important;
    color: white !important;
}

.fc-event.category-orange-dark {
    background-color: #e67e22 !important;
    color: white !important;
}

.fc-event.category-green-light {
    background-color: #2ecc71 !important;
    color: white !important;
}

/* Featured events */
.fc-event.featured-event {
    border: 2px solid #f39c12 !important;
    font-weight: 600 !important;
    position: relative !important;
}

.fc-event.featured-event::before {
    content: '★' !important;
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    background: #f39c12 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    font-size: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Calendar Sidebar */
.calendar-sidebar {
    padding-left: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #3498db;
    border-radius: 2px;
}

.widget-content {
    margin-top: 1rem;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.legend-item:hover {
    background-color: #f8f9fa;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.1);
}

.legend-color.category-color-default {
    background-color: #6c757d;
}

.legend-label {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
}

/* Sidebar Events */
.sidebar-event {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
    transition: padding 0.2s ease;
}

.sidebar-event:last-child {
    border-bottom: none;
}

.sidebar-event:hover {
    padding-left: 0.5rem;
    border-left: 3px solid #3498db;
}

.sidebar-event-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-event-title {
    margin: 0;
}

.sidebar-event-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.sidebar-event-title a:hover {
    color: #3498db;
    text-decoration: none;
}

.sidebar-event-date {
    color: #6c757d;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-event-date i {
    margin-right: 0.4rem;
    color: #3498db;
    width: 14px;
}

.sidebar-event-category {
    margin-top: 0.5rem;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #2c3e50;
    text-decoration: none;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.quick-link:hover {
    background: #3498db;
    color: white;
    text-decoration: none;
    transform: translateX(5px);
}

.quick-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: inherit;
}

/* Event Modal */
.modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #3498db;
}

.modal-title {
    color: #2c3e50;
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

#viewEventBtn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#viewEventBtn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Loading State */
.calendar-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    color: #6c757d;
}

.calendar-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .calendar-sidebar {
        padding-left: 0;
        margin-top: 3rem;
    }
    
    .calendar-container {
        padding: 1rem 15px;
    }
    
    .fc-toolbar {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .fc-toolbar-chunk {
        display: flex !important;
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .calendar-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .view-controls {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .calendar-wrapper {
        padding: 1rem;
    }
    
    .fc-toolbar-title {
        font-size: 1.25rem !important;
    }
    
    .fc-button-group {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
    }
    
    .fc-button {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .fc-col-header-cell {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.75rem !important;
    }
    
    .fc-daygrid-day-number {
        padding: 0.25rem !important;
        font-size: 0.85rem !important;
    }
    
    .fc-event {
        font-size: 0.7rem !important;
        padding: 1px 4px !important;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .legend-item {
        padding: 0.4rem;
    }
    
    .sidebar-event {
        padding: 0.75rem 0;
    }
}

@media (max-width: 576px) {
    .calendar-container {
        padding: 0.5rem 10px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .calendar-wrapper {
        padding: 0.5rem;
    }
    
    .fc-toolbar-title {
        font-size: 1.1rem !important;
    }
    
    .fc-button {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.6rem !important;
    }
    
    .fc-daygrid-day-number {
        font-size: 0.8rem !important;
    }
    
    .fc-day-today .fc-daygrid-day-number {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.75rem !important;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .quick-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .calendar-controls,
    .view-controls,
    .calendar-sidebar {
        display: none;
    }
    
    .calendar-wrapper {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .fc-toolbar {
        border-bottom: 2px solid #000;
    }
    
    .fc-button {
        display: none !important;
    }
    
    .fc-event {
        background: white !important;
        color: black !important;
        border: 1px solid #000 !important;
    }
}

/* Accessibility */
.fc-button:focus,
.quick-link:focus,
.sidebar-event-title a:focus,
.category-tag:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Animation for calendar load */
.calendar-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar for sidebar */
.sidebar-widget .widget-content {
    max-height: 300px;
    overflow-y: auto;
}

.sidebar-widget .widget-content::-webkit-scrollbar {
    width: 4px;
}

.sidebar-widget .widget-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.sidebar-widget .widget-content::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 2px;
}

.sidebar-widget .widget-content::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}
/* Modal Positioning Fixes - Replace the existing modal CSS with this */

/* Enhanced Modal Positioning */
.modal {
    z-index: 1060;
}

.modal-dialog {
    margin: 1.75rem auto;
    max-width: 90vw;
    max-height: 90vh;
}

/* Desktop modal centering - only apply on larger screens */
@media (min-width: 769px) {
    .modal.show .modal-dialog {
        position: fixed !important;
        top: 90% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        z-index: 1061;
    }
}

/* Mobile modal positioning - let Bootstrap handle it naturally */
@media (max-width: 768px) {
    .modal.show .modal-dialog {
        position: relative !important;
        transform: none !important;
        margin: 1rem auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: calc(100% - 2rem) !important;
        max-width: none !important;
        height: auto !important;
        max-height: calc(100vh - 2rem) !important;
    }
    
    .modal-content {
        max-height: calc(100vh - 2rem);
        display: flex;
        flex-direction: column;
    }
    
    .modal-body {
        flex: 1;
        overflow-y: auto;
        max-height: calc(100vh - 200px);
    }
}

/* Very small screens */
@media (max-width: 576px) {
    .modal.show .modal-dialog {
        top: 50% !important;
        margin: 0.5rem auto !important;
        width: calc(100% - 1rem) !important;
        max-height: calc(100vh - 1rem) !important;
    }
    
    .modal-content {
        max-height: calc(100vh - 1rem);
    }
    
    .modal-body {
        max-height: calc(100vh - 150px);
    }
}

/* Ensure modal content is scrollable if needed */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* Enhanced Event Modal Styles */
#eventModal .modal-dialog {
    max-width: 600px;
    width: 90%;
}

#eventModal .modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #3498db;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem 2rem;
    flex-shrink: 0;
}

#eventModal .modal-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.25rem;
}

#eventModal .modal-body {
    padding: 2rem;
    background: white;
    overflow-y: auto;
}

#eventModal .modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
    padding: 1rem 2rem;
    flex-shrink: 0;
}

/* Event Modal Content Styles */
.event-modal-content {
    color: #2c3e50;
}

.event-modal-content h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.event-details {
    margin-bottom: 1.5rem;
}

.event-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.event-detail-item:last-child {
    margin-bottom: 0;
}

.event-detail-item i {
    color: #3498db;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.event-detail-item strong {
    color: #2c3e50;
    font-weight: 600;
    margin-right: 0.5rem;
}

.event-description,
.event-organizer {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.event-description h6,
.event-organizer h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.event-description p,
.event-organizer p {
    color: #495057;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Day Events Modal Styles */
.day-events-list h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.event-list-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-list-item:hover {
    background: #ffffff;
    border-color: #3498db !important;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.event-list-content {
    padding: 0.5rem 0;
}

.event-list-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.event-list-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.event-time,
.event-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.event-time i,
.event-location i {
    color: #3498db;
    font-size: 0.9rem;
}

.view-event-btn {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    border: none !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    font-size: 0.9rem !important;
}

.view-event-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3) !important;
}

/* Empty Day Modal Styles */
.empty-day-content {
    text-align: center;
    padding: 2rem 1rem;
}

.empty-day-content i {
    color: #e9ecef;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-day-content h5 {
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 1rem;
}

.empty-day-content p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Category tags in modal */
.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

/* Category color classes for tags */
.category-color-default { background-color: #6c757d; }
.category-color-blue { background-color: #3498db; }
.category-color-green { background-color: #27ae60; }
.category-color-red { background-color: #e74c3c; }
.category-color-orange { background-color: #f39c12; }
.category-color-purple { background-color: #9b59b6; }
.category-color-teal { background-color: #1abc9c; }
.category-color-dark { background-color: #34495e; }
.category-color-orange-dark { background-color: #e67e22; }
.category-color-green-light { background-color: #2ecc71; }
.category-color-primary { background-color: #3498db; }
.category-color-secondary { background-color: #6c757d; }
.category-color-success { background-color: #27ae60; }
.category-color-danger { background-color: #e74c3c; }
.category-color-warning { background-color: #f39c12; }
.category-color-info { background-color: #1abc9c; }

/* Mobile-specific modal adjustments */
@media (max-width: 768px) {
    #eventModal .modal-header,
    #eventModal .modal-footer {
        padding: 1rem;
    }
    
    #eventModal .modal-body {
        padding: 1rem;
    }

    .event-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .event-list-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .event-modal-content h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    #eventModal .modal-header,
    #eventModal .modal-footer,
    #eventModal .modal-body {
        padding: 0.75rem;
    }

    .event-modal-content h4 {
        font-size: 1.1rem;
    }

    .event-detail-item {
        padding: 0.5rem;
    }
}

/* Ensure modal backdrop doesn't interfere */
.modal-backdrop {
    z-index: 1055;
}

/* Animation for modal appearance */
.modal.fade .modal-dialog {
    transition: all 0.3s ease-out;
    opacity: 0;
}

.modal.show .modal-dialog {
    opacity: 1;
}

/* Desktop animation */
@media (min-width: 769px) {
    .modal.fade .modal-dialog {
        transform: translate(-50%, -60%);
    }
    
    .modal.show .modal-dialog {
        transform: translate(-50%, -50%) !important;
    }
}

/* Mobile animation */
@media (max-width: 768px) {
    .modal.fade .modal-dialog {
        transform: translateY(-50px);
    }
    
    .modal.show .modal-dialog {
        transform: translateY(0) !important;
    }
}

/* Ensure buttons are accessible */
.modal .btn-close:focus,
.modal .btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    box-shadow: none;
}




































































































































































































































































































/* Additional CSS for Events by Category Page */
/* Add this to your existing styles.css file */

/* Event Category Container */
.event-category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 15px;
}

/* Category Info Section */
.category-info-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
}

.category-info-section .results-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #6c757d;
}

.category-info-section .btn-outline-primary {
    border-color: #3498db;
    color: #3498db;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-info-section .btn-outline-primary:hover {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
    transform: translateY(-1px);
}

/* Category Info Widget Enhancements */
.sidebar-widget .category-info {
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.category-info .category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-info .category-name i {
    color: #3498db;
    font-size: 1.2rem;
}

.category-info .category-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-info .event-count {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Enhanced Events Grid for Category Page */
.events-grid .row {
    margin-left: -10px;
    margin-right: -10px;
}

.events-grid .row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

/* Category-specific event card adjustments */
.event-category-container .event-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-category-container .event-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-category-container .event-actions {
    margin-top: auto;
}

/* Enhanced no events message for category page */
.event-category-container .no-events-message {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px dashed #dee2e6;
}

.event-category-container .no-events-message i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.event-category-container .no-events-message h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-category-container .no-events-message p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Other Categories Widget Enhancement */
.sidebar-widget .category-list .category-item:last-child .category-link {
    margin-bottom: 0;
}

.sidebar-widget .category-list .category-link {
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

.sidebar-widget .category-list .category-link:hover {
    border-color: #3498db;
}

/* Responsive adjustments for category page */
@media (max-width: 992px) {
    .event-category-container {
        padding: 1rem 15px;
    }
    
    .category-info-section {
        padding: 1rem;
    }
    
    .category-info-section .row {
        align-items: center;
    }
    
    .category-info-section .text-right {
        text-align: left !important;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .event-category-container .section-header h2 {
        font-size: 2rem;
    }
    
    .events-grid .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .events-grid .row > [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .category-info-section {
        text-align: center;
    }
    
    .category-info-section .results-info {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .event-category-container .no-events-message {
        padding: 2rem 1rem;
    }
    
    .event-category-container .no-events-message i {
        font-size: 3rem;
    }
    
    .category-info .category-name {
        font-size: 1rem;
        text-align: center;
        justify-content: center;
    }
    
    .category-info .category-stats {
        justify-content: center;
    }
}



/* Additional styles for upcoming events page */
/* Add this to your existing CSS file */

.upcoming-events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 15px;
}

.upcoming-card {
    /* Inherits from .event-card but adds upcoming-specific styling */
    border-left: 4px solid #f39c12;
}

.upcoming-badge {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

/* Responsive adjustments for upcoming events container */
@media (max-width: 992px) {
    .upcoming-events-container {
        padding: 1rem 15px;
    }
}

@media (max-width: 768px) {
    .upcoming-events-container {
        padding: 1rem 10px;
    }
}



















@media (max-width: 768px) {
    .testimonial-slider {
        height: 400px; /* Slightly taller for mobile */
    }

    .testimonial-card {
        height: 320px; /* Adjusted for mobile */
        padding: 15px;
    }
}

  /* Responsive Adjustments for Mobile */
  @media (max-width: 768px) {
    .stats-container {
      flex-wrap: wrap;
      gap: 15px;
      margin-top: -20px;
      padding: 0 15px;
    }
    
    .stat-item {
      flex: 1 0 30%;
      padding: 10px 15px;
    }
    
    .stat-item .counter {
      font-size: 1.7rem;
    }
    
    .stat-item .counter::after {
      font-size: 1.2rem;
    }
    
    .stat-item p {
      font-size: 0.8rem;
    }
  }
  
  @media (max-width: 576px) {
    .stats-container {
      flex-direction: column;
      align-items: center;
      margin-top: -10px;
    }
    
    .stat-item {
      flex: 1 0 100%;
      width: 80%;
      margin-bottom: 10px;
    }
    
    .stat-item .counter {
      font-size: 1.5rem;
    }
    
    .stat-item .counter::after {
      font-size: 1rem;
    }
    
    .stat-item p {
      font-size: 0.75rem;
    }
  }


  
  
  /* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
      height: 450px;
    }
  
    .hero-text {
      top: 45%;
    }
  
    .hero-text h1 {
      font-size: 2em;
    }
  
    .hero-text p {
      font-size: 1.1em;
    }
  
    .search-form {
      flex-direction: column;
      width: 90%;
      margin: 20px auto;
    }
  
    .search-form input,
    .search-form select,
    .search-form button {
      width: 100%;
      margin-bottom: 10px;
    }
  }
  
  @media (max-width: 600px) {
    .hero-section {
      height: 500px;
    }
  
    .hero-text {
      top: 40%;
    }
  
    .hero-text h1 {
      font-size: 1.8em;
    }
  
    .hero-text p {
      font-size: 1em;
    }
  
    .search-form input,
    .search-form select,
    .search-form button {
      flex: 1 0 100%;
      max-width: none;
    }
  }
  
  @media (max-width: 480px) {
    .hero-section {
      height: 450px;
    }
  
    .hero-text {
      top: 55%;
    }
  
    .hero-text h1 {
      font-size: 1.6em;
    }
  
    .hero-text p {
      font-size: 0.9em;
    }
  
    .search-form input,
    .search-form select,
    .search-form button {
      width: 100%;
      flex: 1 0 100%;
    }
  }











































/* Media Queries */

/* Ensure the description textarea fits within the container on smaller screens */
@media (max-width: 576px) {
    #id_description {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}


/* Mobile Styles */
@media (max-width: 600px) {
    /* Styles for mobile devices (up to 600px) */
    .container {
      padding: 20px;
      margin: 20px auto;
    }
  
    .user-profile {
      padding: 20px; /* Adjusted to match container padding */
    }

    .profile-item {
        margin-bottom: 10px;
    }
    
    .profile-item-inner h3 {
        font-size: 16px;
    }
    
    .profile-item-inner p,
    .profile-item-inner a {
        font-size: 14px;
        word-break: break-word;
    }
    
    .profile-picture {
        width: 100px;
        height: 100px;
    }
    
    .bio {
        font-size: 14px;
    }

    .user-profile h2 {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .leaderboard-table-container {
        margin: 0 -15px; /* Negative margins to account for container padding */
        padding: 0 15px; /* Add padding to create a scrollable area */
    }
  
    h1 {
      font-size: 28px;
    }
  
    .job-listings {
      grid-template-columns: 1fr;
    }
  
    .job-card {
        padding: 15px;
        max-width: 100%;
        word-wrap: break-word;
        word-break: break-word;
    }

    .job-card-content {
        max-height: 120px; /* Adjust the maximum height of the scrollable area for smaller screens */
    }

    .job-detail-container {
        padding: 20px;
        margin: 20px auto;
    }

    .job-detail-container h1 {
        font-size: 28px;
    }

    .job-detail-container .title, .job-detail-container .content {
        font-size: 14px;
        word-wrap: break-word;
        word-break: break-word;
    }

    .form-control textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
  
    .btn {
      padding: 10px 20px;
    }
  
    .footer-content {
      padding: 0 10px;
    }
  
    .ad-banner img {
      height: auto;
    }
  }


/* Tablet Styles */
@media (min-width: 601px) and (max-width: 1024px) {
    .container {
      padding: 25px;
      margin: 30px auto;
    }
  
    h1 {
      font-size: 32px;
    }
  
    .job-listings {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
  
    .job-card {
      padding: 18px;
    }
  
    .btn {
      padding: 11px 22px;
    }
  
    .footer-content {
      padding: 0 20px;
    }
  
    .ad-banner img {
      height: 100px;
    }
  }

/* Responsive Design */
@media (max-width: 768px) {
    .user-profile {
      padding: 15px;
    }
  
    .profile-item h3 {
      font-size: 18px;
    }
  
    .profile-item p, .profile-item a {
      font-size: 14px;
    }
  
    .profile-picture {
      width: 120px;
      height: 120px;
    }
  
    .bio {
      font-size: 14px;
    }

    .leaderboard-table-container table {
        width: 100%; /* Make the table span the full width of the container */
        border-collapse: collapse; /* Remove table cell spacing */
    }
      
    .leaderboard-table-container th,
    .leaderboard-table-container td {
        white-space: nowrap; /* Prevent text from wrapping within table cells */
    }
  }

/* Desktop Styles */
@media (min-width: 1025px) {
    .container {
      max-width: 1200px;
    }
  
    .job-listings {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
  
    .ad-banner img {
      height: 130px;
    }
  }

/* Large Screens */
@media (min-width: 1025px) {
    .container {
      max-width: 1200px;
    }
  
    .job-listings {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
  
    .ad-banner img {
      height: 130px;
    }
  }

/* Add media queries for larger screens */
@media (min-width: 992px) {
    .profile-item,
    .add-job .mb-3 {
        margin-bottom: 30px;
    }

    .profile-item-inner h3,
    .add-job label {
        font-size: 18px;
    }

    .profile-item-inner p,
    .profile-item-inner a,
    .add-job .form-control {
        font-size: 16px;
    }
}





/* Profile Styling for Desktop */
@media (min-width: 1025px) {
    .user-profile {
        padding: 20px;
        max-width: 900px; /* Adjust to your preference */
        margin: 0 auto;   /* Center the profile box on larger screens */
    }

    .profile-item {
        max-width: 600px; /* Set a max-width to prevent overflow */
        width: 100%; /* Full width of its container */
        margin: 0 auto 20px auto; /* Center the container horizontally */
    }

    .profile-item-inner p,
    .profile-item-inner a {
        font-size: 16px;
        word-break: break-word; /* Ensure long words break properly */
        overflow-wrap: break-word; /* Additional word-breaking support */
        max-width: 100%; /* Make the text fill the container but not overflow */
    }

    .profile-picture {
        width: 150px;
        height: 150px;
    }

    .bio {
        font-size: 16px;
    }
}

/* Fix for Medium Screens (Tablets) */
@media (min-width: 768px) and (max-width: 1024px) {
    .user-profile {
        padding: 20px;
        max-width: 90%; /* Utilize more width for tablets */
    }

    .profile-item {
        max-width: 100%; /* Allow more space on medium screens */
        width: 100%; /* Full width within its container */
        margin: 0 auto 20px auto; /* Center it horizontally */
    }

    .profile-item-inner p,
    .profile-item-inner a {
        font-size: 14px;
        word-break: break-word; /* Prevent overflow */
        overflow-wrap: break-word;
        max-width: 100%; /* Text should fit within the profile-item */
    }
}

/* Profile Styling for larger screens */
@media (min-width: 1025px) {
    .user-profile form .form-control {
        width: 100%;  /* Take full width of the container */
        max-width: 600px;  /* Set a max width for input fields on larger screens */
        margin: 0 auto;  /* Center the input fields */
    }
}

/* Profile Styling for tablet screens */
@media (min-width: 768px) and (max-width: 1024px) {
    .user-profile form .form-control {
        width: 100%; /* Use full width for inputs */
        max-width: 500px; /* Set max width for better readability */
        margin: 0 auto;
    }
}

/* Profile Styling for mobile screens */
@media (max-width: 767px) {
    .user-profile form .form-control {
        width: 100%; /* Use full width on smaller screens */
        max-width: none; /* Remove max-width for mobile */
    }
}

/* makes the bio input form wider in desktop mode */
@media (min-width: 768px) {
    .col-md-8 {
        width: 100%; /* Make this wider for desktop/tablet */
        max-width: 900px; /* Adjust as needed */
    }
}




