

    /* Override H2 style if needed, though user has their own H2 styles */
    .student-h2 {
        font-weight: 800;
        color: #1a1a1a;
        margin-bottom: 3rem;
    }

    /* Guides container for the overlapping effect */
    .guides-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Ensures the row uses Bootstrap gaps for spacing and allows wrapping on small screens */
    .guides-container .row {
        --bs-gutter-x: 1.5rem; 
    }

    .guide-card {
        background-color: white; /* Card Background is White */
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        overflow: hidden; 
        cursor: pointer;
        position: relative;
        z-index: 1; 
        
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, z-index 0.1s ease;
        
        /* Initial tilt and position adjustment for overlapping effect */
        transform: rotate(-4deg); 
        
        /* Reduced overlap margin for a cleaner, safer fit on wider screens */
        margin-right: -20px; 
        margin-bottom: 15px; 
    }

    /* Alternate tilt for visual appeal */
    .guide-card:nth-child(even) {
        transform: rotate(4deg); 
    }
    
    /* Remove overlap on small/medium screens to prevent overflow */
    @media (max-width: 1199px) { /* Up to large desktop */
        .guide-card {
            margin-right: 0;
            transform: rotate(0deg); /* Straighten cards on smaller screens for better layout */
        }
        .guide-card:nth-child(even) {
            transform: rotate(0deg); 
        }
    }


    /* Reset overlap for the last card on large screens */
    .guide-card:last-child {
        margin-right: 0;
    }

    /* Hover effect: Straighten, lift, and enhance shadow */
    .guide-card:hover {
        transform: rotate(0deg) scale(1.05);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
        z-index: 10; 
    }
    
    /* Ensure content below the image has its own background color if needed */
    .card-content {
        padding: 1.25rem;
        background-color: white; /* Explicitly white for content */
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .card-content h3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #2b706c; 
        margin-bottom: 0.25rem;
    }

    .card-content p {
        font-size: 0.9rem;
        color: #777;
        margin-bottom: 0;
    }

    /* Image specific styling */
    .guide-image-container {
        width: 100%;
        height: 250px; /* Card image height */
        overflow: hidden;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        background-color: #fcefdc; /* Light Peach/Cream for image container contrast (from original image) */
        position: relative; /* Essential for absolute positioning of overlay */
    }

    .guide-image {
        width: 100%;
        height: 100%;
        object-fit: cover; 
        display: block; 
        border-radius: 12px; /* Ensure full image has rounded corners */
        position: relative;
        top: 0;
        left: 0;
        z-index: 1; 
        transition: opacity 0.3s ease; /* Added transition for smooth fade */
    }
    
    /* --- HOVER VIDEO STYLES (REQUIRED FOR PLAYBACK) --- */
    .guide-hover-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0; /* Initially hidden */
        transition: opacity 0.3s ease;
        z-index: 7; /* Above the image */
    }
    /* --- END HOVER VIDEO STYLES --- */

    /* ================================================== */
    /* MODAL OVERLAY STYLES (MATCHING IMAGE REFERENCE) */
    /* ================================================== */
    .modal-dialog-full {
        /* --- MODIFY MODAL WIDTH HERE --- */
        max-width: 1200px; 
        height: 90vh; /* Adjust height */
        margin: auto;
        display: flex;
        align-items: center;
    }

    .modal-content-custom {
        height: 100%; /* Take full height of dialog */
        border-radius: 1rem; /* More rounded corners */
        display: flex;
        flex-direction: row; /* Default desktop layout */
        overflow: hidden; /* Prevent content overflow */
    }

    .modal-video-col {
        flex: 0 0 50%; /* Take up 50% width */
        max-width: 50%;
        position: relative;
        background-color: #fcefdc; /* Light peach/cream background for video area */
        border-top-left-radius: 1rem;
        border-bottom-left-radius: 1rem;
        display: flex; 
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    .modal-video-col video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        border-radius: 1rem;
    }
    
    .modal-video-col img.modal-video-poster {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 1rem;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2; 
        transition: opacity 0.3s ease;
    }

    .modal-text-col {
        flex: 0 0 50%; /* Take up 50% width */
        max-width: 50%;
        padding: 2.5rem 3rem; 
        display: flex;
        flex-direction: column;
        justify-content: space-between; 
    }

    /* Modal Icons */
    .modal-close-btn, .volume-toggle-btn {
        position: absolute;
        z-index: 10;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
        border: none;
        font-size: 1.2rem;
        color: #666;
        cursor: pointer;
        opacity: 1;
        transition: background-color 0.2s;
    }
    .modal-close-btn { top: 1.25rem; right: 1.25rem; }
    .volume-toggle-btn { top: 1.25rem; left: 1.25rem; }
    .modal-close-btn:hover, .volume-toggle-btn:hover { background-color: white; color: #333; }
    
    .modal-bio-content h4 { font-size: 2.2rem; font-weight: bold; color: #1a1a1a; margin-bottom: 0.25rem; }
    .modal-bio-content .modal-title-text { font-size: 1.1rem; color: #666; margin-bottom: 1.5rem; }
    .modal-bio-content p { font-size: 0.95rem; line-height: 1.6; color: #444; }

    /* Guide Style Tags */
    .guide-style-tags { margin-top: 2rem; }
    .guide-style-tags h6 { font-size: 1rem; font-weight: 700; color: #444; margin-bottom: 1rem; }
    .guide-style-tags span {
        display: inline-flex; align-items: center; background-color: #e0f2f1;
        color: #2b706c; padding: 0.4rem 0.8rem; border-radius: 20px;
        font-size: 0.85rem; font-weight: 600; margin-right: 0.5rem; margin-bottom: 0.5rem;
    }
    .guide-style-tags span i { margin-right: 0.5rem; }

    /* Modal Navigation Buttons */
    .modal-navigation {
        margin-top: auto; padding-top: 2rem; border-top: 1px solid #eee;
        display: flex; justify-content: space-between; align-items: center;
    }
    .modal-navigation .btn-link { color: #2b706c; font-weight: 600; text-decoration: none; font-size: 0.95rem; }
    .modal-navigation .btn-primary-custom {
        background-color: #2b706c; border-color: #2b706c; color: white;
        padding: 0.8rem 1.8rem; border-radius: 8px; font-weight: 600; font-size: 1rem;
        transition: background-color 0.2s ease;
    }
    .modal-navigation .btn-primary-custom:hover { background-color: #245e5a; border-color: #245e5a; }

    /* Responsive Adjustments for Modal */
    @media (max-width: 767.98px) {
        .modal-content-custom { flex-direction: column; }
        .modal-video-col, .modal-text-col { flex: none; width: 100%; max-width: 100%; }
        .modal-video-col { height: 300px; border-bottom-left-radius: 0; border-top-right-radius: 1rem; }
        .modal-text-col { padding: 1.5rem; }
        .modal-navigation { flex-wrap: wrap; justify-content: center; gap: 1rem; }
        .modal-navigation .btn-link, .modal-navigation .btn-primary-custom { width: 100%; text-align: center; }
    }
    
    #modalBio {
        font-weight: normal !important;
    }
    #modalTitle {
        font-weight: normal !important;
    }
    
