/* Study Talk 2.0 - Complete Styles */

/* Container */
.study-talk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Grid Layout */
.study-talk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Card Styles */
.study-talk-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.study-talk-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15), 0 20px 40px rgba(0, 0, 0, 0.1);
}

.study-talk-card.fully-booked {
    opacity: 0.7;
}

.study-talk-card.fully-booked:hover {
    transform: translateY(-4px);
}

/* Image */
.study-talk-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.study-talk-image img {
    width: 100%;
    /*height: 100%;*/
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.fully-booked-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(220, 38, 38, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    z-index: 10;
}

/* Content */
.study-talk-content {
    padding: 24px;
}

.study-talk-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

/* Meta Information */
.study-talk-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    font-size: 14px;
}

.meta-item .icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    color: #118040;
    flex-shrink: 0;
}

/* Excerpt */
.study-talk-excerpt {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Action Buttons (View Details + Book Now) */
.study-talk-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.study-talk-details-btn {
    flex: 1;
    /*background: #f7fafc;*/
    background-color: #FFFFFF00;
    color: #118040;
    border: 2px solid #118040;
    /*padding: 14px 24px;*/
    padding: 14px;
    border-radius: 12px;
    /*font-size: 16px;*/
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.study-talk-details-btn:hover {
    background: #118040;
    color: white;
    transform: translateY(-2px);
}

.study-talk-details-btn .icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* Book Button */
.study-talk-book-btn {
    flex: 1;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background-color: #118040;
    color: white;
    border: none;
    /*padding: 14px 24px;*/
    padding: 14px;
    border-radius: 12px;
    /*font-size: 16px;*/
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.study-talk-book-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
    background-color: #118040;
}

.study-talk-book-btn:active:not(:disabled) {
    transform: translateY(0);
    background-color: #118040;
}

.study-talk-book-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
}

.study-talk-book-btn .icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* Pagination Styles */
.study-talk-pagination {
    margin-top: 50px;
    text-align: center;
}

.study-talk-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.study-talk-pagination .page-numbers li {
    margin: 0;
}

.study-talk-pagination .page-numbers a,
.study-talk-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.study-talk-pagination .page-numbers a:hover {
    /*background: #667eea;*/
    background-color: #118040;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.study-talk-pagination .page-numbers .current {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background-color: #118040;
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.study-talk-pagination .page-numbers .prev,
.study-talk-pagination .page-numbers .next {
    padding: 0 20px;
}

.study-talk-pagination .page-numbers .icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.study-talk-pagination .page-numbers .dots {
    border: none;
    background: transparent;
    color: #a0aec0;
}

/* Modal Styles */
.study-talk-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.study-talk-modal.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    max-width: 550px;
    margin: 50px auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f7fafc;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1a202c;
    transform: rotate(90deg);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 40px 30px;
    text-align: center;
}

.modal-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
}

.modal-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 15px;
}

/* Booking Form */
.booking-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
}

.form-group .required {
    color: #e53e3e;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    position: relative;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner */
.spinner {
    animation: rotate 1s linear infinite;
    width: 20px;
    height: 20px;
}

.spinner circle {
    stroke: white;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Form Message */
.form-message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* No Study Talks Message */
.no-study-talks {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
    font-size: 18px;
}

/* Single Page Layout */
.study-talk-single-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.study-talk-single-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

/* Breadcrumb */
.study-talk-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #718096;
}

.study-talk-breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.study-talk-breadcrumb a:hover {
    color: #764ba2;
}

.study-talk-breadcrumb .separator {
    color: #cbd5e0;
}

.study-talk-breadcrumb .current {
    color: #1a202c;
    font-weight: 600;
}

/* Single Image */
.study-talk-single-image {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.study-talk-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Single Title */
.study-talk-single-title {
    font-size: 36px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

/* Single Meta */
.study-talk-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    margin-bottom: 30px;
}

.study-talk-single-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3748;
    font-size: 15px;
}

.study-talk-single-meta .icon {
    width: 22px;
    height: 22px;
    color: #667eea;
    flex-shrink: 0;
}

/* Single Description */
.study-talk-single-description {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.study-talk-single-description h2 {
    font-size: 28px;
    color: #1a202c;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.study-talk-single-description p {
    line-height: 1.8;
    color: #4a5568;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Sidebar */
.study-talk-single-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-booking-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.booking-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.booking-card-header h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 700;
}

.booking-card-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.booking-card-info {
    padding: 25px 30px;
    background: #f7fafc;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-size: 14px;
    color: #718096;
    font-weight: 600;
}

.info-row .value {
    font-size: 15px;
    color: #1a202c;
    font-weight: 700;
}

.text-success {
    color: #48bb78 !important;
}

.text-danger {
    color: #f56565 !important;
}

.sidebar-book-btn {
    width: calc(100% - 60px);
    margin: 25px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.sidebar-book-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.sidebar-book-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
}

.sidebar-book-btn .icon {
    width: 22px;
    height: 22px;
}

.booking-features {
    padding: 0 30px 30px;
}

.booking-features .feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #4a5568;
    font-size: 14px;
}

.booking-features .feature:last-child {
    margin-bottom: 0;
}

.booking-features .icon {
    width: 18px;
    height: 18px;
    color: #48bb78;
    flex-shrink: 0;
}

.fully-booked-message {
    padding: 0 30px 30px;
    margin: 0;
    text-align: center;
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
}

/* Success Modal */
.success-modal .modal-content {
    max-width: 600px;
}

.success-content {
    text-align: center;
    padding: 50px 40px;
}

.success-checkmark {
    margin: 0 auto 30px;
}

.checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.checkmark-circle {
    stroke: #48bb78;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: #48bb78;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.success-title {
    font-size: 32px;
    color: #1a202c;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.success-subtitle {
    color: #718096;
    font-size: 16px;
    margin: 0 0 30px 0;
}

.success-details {
    background: #f7fafc;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    color: #667eea;
    font-weight: 600;
    font-size: 15px;
}

.detail-value {
    color: #1a202c;
    font-weight: 600;
    font-size: 15px;
}

.success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #d4edda;
    border-radius: 10px;
    margin-bottom: 25px;
}

.success-message .icon {
    width: 24px;
    height: 24px;
    color: #155724;
    flex-shrink: 0;
}

.success-message p {
    margin: 0;
    color: #155724;
    font-size: 14px;
    font-weight: 600;
}

.success-close-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.success-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .study-talk-container {
        padding: 20px 15px;
    }
    
    .study-talk-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .study-talk-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .modal-header,
    .booking-form {
        padding: 30px 24px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .study-talk-single-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .study-talk-single-title {
        font-size: 28px;
    }
    
    .study-talk-single-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .study-talk-single-description {
        padding: 25px 20px;
    }
    
    .study-talk-single-description h2 {
        font-size: 24px;
    }
    
    .study-talk-single-sidebar {
        position: static;
    }
    
    .success-content {
        padding: 35px 25px;
    }
    
    .success-title {
        font-size: 26px;
    }
    
    .study-talk-pagination .page-numbers {
        gap: 5px;
    }
    
    .study-talk-pagination .page-numbers a,
    .study-talk-pagination .page-numbers span {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }
}

/* Smooth Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}