/* Custom CSS for Testimonial System */
:root {
    --primary-color: #890706;
    --primary-color-light: #a52a2a;
    --primary-color-dark: #6b0504;
    --white: #FFFFFF;
    --light-gray: #f8f9fa;
    --accent-color: #f4c430;
    --text-color-dark: #333333;
    --text-color-light: #6c757d;
    --success-color: #28a745;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-color-dark);
    background-color: var(--light-gray);
    line-height: 1.6;
}

/* Navbar Styling */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--white) !important;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
}

.navbar-light .navbar-nav .nav-link:hover {
    background-color: var(--primary-color-light);
    transform: translateY(-2px);
}

.navbar-toggler {
    border-color: var(--white);
}

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

/* Card Styling */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.card-header {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.card-body {
    padding: 2rem;
}

/* Button Styling */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary-custom-outline {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
    border-radius: var(--border-radius);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary-custom-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Form Styling */
.form-control {
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(137, 7, 6, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-color-dark);
    margin-bottom: 0.5rem;
}

/* Testimonial Cards */
.card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.05s ease-in-out, box-shadow 0.05s ease-in-out;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color-dark);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

.testimonial-video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.testimonial-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--white);
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.play-icon-overlay:hover {
    opacity: 1;
}

.card-footer {
    background-color: var(--light-gray);
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.testimonial-card {
    border-left: 4px solid var(--primary-color);
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.testimonial-event {
    font-size: 0.875rem;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

.testimonial-event i {
    color: var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    position: relative;
    padding: 0 1rem;
}

.testimonial-text::before {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color-light);
    opacity: 0.3;
    position: absolute;
    left: -5px;
    top: -10px;
}

.testimonial-text::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color-light);
    opacity: 0.3;
    position: absolute;
    right: -5px;
    bottom: -30px;
}

/* Video Testimonial */
.video-testimonial {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

.video-testimonial video {
    width: 100%;
    display: block;
}

/* Section Styling */
.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

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

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

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

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Alert Styling */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Bento Grid Specific Styles */
.bento-grid-container {
    background-color: #1a1a1a; /* Dark background for the bento section */
    padding: 60px 0;
}

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

.bento-card {
    background-color: #2a2a2a; /* Slightly lighter dark for cards */
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #e0e0e0; /* Light text color */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bento-card:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.bento-card .testimonial-author {
    color: var(--primary-color-light);
    font-size: 1.2rem;
    font-weight: 700;
}

.bento-card .testimonial-event {
    color: #b0b0b0;
    font-size: 0.95rem;
}

.bento-card .testimonial-event i {
    color: var(--primary-color-light);
}

.bento-card .testimonial-text {
    color: #c0c0c0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.bento-card .text-muted {
    color: #888 !important;
}

/* Responsive adjustments for bento grid */
@media (min-width: 992px) {
    .bento-grid .col-lg-6 {
        grid-column: span 2;
    }
    .bento-grid .col-lg-3 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-grid .col-md-6, .bento-grid .col-sm-12 {
        width: 100%;
    }
}

/* Admin Dashboard Specific Styles */
.admin-dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--light-gray); /* Light background for the admin area */
}

.admin-sidebar {
    width: 250px;
    background-color: var(--primary-color); /* Darker sidebar background */
    color: #ecf0f1;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.admin-sidebar .sidebar-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-sidebar .sidebar-header h3 {
    color: var(--white);
    font-weight: 700;
    font-size: 1.8rem;
}

.admin-sidebar .sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.admin-sidebar .sidebar-nav ul li {
    margin-bottom: 10px;
}

.admin-sidebar .sidebar-nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.admin-sidebar .sidebar-nav ul li a:hover,
.admin-sidebar .sidebar-nav ul li a.active {
    background-color: #34495e;
}

.admin-main-content {
    flex-grow: 1;
    padding: 30px;
}

.admin-navbar {
    background-color: var(--white);
    padding: 20px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-navbar .navbar-brand {
    color: var(--text-color-dark) !important;
}

.admin-navbar .nav-item .nav-link {
    color: var(--text-color-dark) !important;
}

.admin-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.admin-widget-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

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

.admin-widget-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.admin-widget-card .details h4 {
    margin-bottom: 5px;
    color: var(--text-color-dark);
    font-size: 1.5rem;
}

.admin-widget-card .details p {
    color: var(--text-color-light);
    margin-bottom: 0;
}

.admin-recent-activity .activity-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.admin-recent-activity .activity-item .icon {
    font-size: 1.5rem;
    color: #28a745; /* Success color for activity */
    margin-right: 15px;
}

.admin-recent-activity .activity-item .content p {
    margin-bottom: 0;
    color: var(--text-color-dark);
}

.admin-recent-activity .activity-item .content small {
    color: var(--text-color-light);
}

/* Responsive adjustments for admin dashboard */
@media (max-width: 992px) {
    .admin-sidebar {
        width: 200px;
        padding: 15px;
    }

    .admin-sidebar .sidebar-header h3 {
        font-size: 1.5rem;
    }

    .admin-main-content {
        padding: 20px;
    }

    .admin-navbar {
        padding: 15px 20px;
    }

    .admin-widgets-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .admin-dashboard-container {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .admin-sidebar .sidebar-header {
        margin-bottom: 0;
    }

    .admin-sidebar .sidebar-nav {
        display: none; /* Hide nav on small screens, can be toggled with JS */
    }

    .admin-main-content {
        padding: 15px;
    }

    .admin-widgets-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}