/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

.poster-image,
.gallery-item img,
.instructor-image img,
.organizer-image img {
    will-change: transform;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: #0f3043;
    background: linear-gradient(135deg, #0f3043 0%, #1a4b73 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    color: #0f3043;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: #fff;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #b45734, #df9939);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f3043 0%, #1a4b73 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Workshop Details Section */
.workshop-details-section {
    padding: 40px 0;
    background: #ffffff;
}

.workshop-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.detail-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid rgba(223, 210, 195, 0.3);
}

.detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.detail-icon {
    margin-bottom: 1rem;
}

.detail-icon i {
    font-size: 2rem;
    color: #b45734;
    background: linear-gradient(135deg, #dfd2c3 0%, #f5f5f5 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(180, 87, 52, 0.2);
}

.detail-content h3 {
    color: #0f3043;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.detail-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Poster Section */
.poster-section {
    padding: 50px 0;
    background: #dfd2c3;
}

.poster-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.poster-image {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.poster-image:hover {
    transform: scale(1.02);
}

/* Registration Section */
.registration-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #b45734 0%, #a04a2e 100%);
    text-align: center;
}

.registration-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.registration-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(45deg, #b45734, #a04a2e);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(180, 87, 52, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.registration-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.registration-btn:hover::before {
    left: 100%;
}

.registration-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(180, 87, 52, 0.4);
}

.registration-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.registration-btn:hover i {
    transform: translateX(5px);
}

/* Content Sections */
.about-section,
.curriculum-section,
.facts-section {
    padding: 50px 0;
    background: #dfd2c3;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h3,
.curriculum-content h3 {
    color: #0f3043;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

/* Facts Section */
.facts-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.fact-item {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid rgba(223, 210, 195, 0.3);
}

.fact-item:hover {
    transform: translateY(-5px);
}

.fact-item h4 {
    color: #0f3043;
    margin-bottom: 0.8rem;
}

/* Instructors Section */
.instructors-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #0f3043 0%, #1a4b73 100%);
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.instructor-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.instructor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #b45734, #df9939);
}

.instructor-card:hover {
    transform: translateY(-10px);
}

.instructor-image {
    margin-bottom: 1.2rem;
}

.instructor-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #dfd2c3;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.workplace-logo {
    margin-bottom: 1rem;
}

.workplace-logo img {
    height: 40px;
    width: auto;
    opacity: 0.8;
}

.instructor-info h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.workplace {
    color: #0f3043;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(45deg, #0f3043, #1a4b73);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 48, 67, 0.4);
}

/* Organizer Section */
.organizer-section {
    padding: 50px 0;
    background: #dfd2c3;
}

.organizer-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.organizer-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 380px;
}

.organizer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #df9939, #c8852a);
}

.organizer-card:hover {
    transform: translateY(-10px);
}

.organizer-image {
    margin-bottom: 1.5rem;
}

.organizer-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Gallery Section */
.gallery-section {
    padding: 50px 0;
    background: #dfd2c3;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Payment Section */
.payment-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #df9939 0%, #c8852a 100%);
}

.payment-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.payment-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
}

.payment-logo {
    margin-bottom: 1.5rem;
}

.payment-logo img {
    height: 60px;
    width: auto;
}

.payment-text h3 {
    color: #333;
    margin-bottom: 1rem;
}

.payment-text p {
    color: #666;
    margin-bottom: 1.5rem;
}

.payment-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.payment-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 4px solid #df9939;
}

.step-number {
    background: linear-gradient(45deg, #b45734, #a04a2e);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: #0f3043;
    margin-bottom: 0.3rem;
    font-size: 1rem;
    font-weight: 600;
}

.step-content p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.payment-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(223, 153, 57, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(223, 153, 57, 0.3);
    margin: 1.5rem 0;
}

.payment-note i {
    color: #df9939;
    font-size: 1.2rem;
}

.payment-note p {
    color: #0f3043;
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.terms-checkbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 1.5rem;
}

.terms-registration-btn {
    margin-top: 10px;
}

.terms-btn {
    background: linear-gradient(45deg, #b45734, #a04a2e) !important;
    box-shadow: 0 8px 25px rgba(180, 87, 52, 0.3) !important;
    font-size: 1rem !important;
    padding: 14px 28px !important;
}

.terms-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    text-align: left;
    max-height: 350px;
    overflow-y: auto;
}

.terms-text h4 {
    color: #0f3043;
    margin-bottom: 1.2rem;
    text-align: center;
    font-size: 1.2rem;
}

.terms-content {
    font-size: 0.9rem;
    line-height: 1.6;
}

.terms-content p {
    margin-bottom: 0.8rem;
}

.terms-content strong {
    color: #0f3043;
    font-weight: 600;
}

.terms-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.terms-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #df9939;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.terms-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #df9939;
}

.terms-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


/* Contact Section */
.contact-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #dfd2c3 0%, #f5f5f5 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid rgba(223, 210, 195, 0.3);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.contact-icon {
    margin-bottom: 1.5rem;
}

.contact-icon i {
    font-size: 2.5rem;
    color: #b45734;
    background: linear-gradient(135deg, #dfd2c3 0%, #f5f5f5 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(180, 87, 52, 0.2);
}

.contact-content h3 {
    color: #0f3043;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.contact-content p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-link {
    display: inline-block;
    background: linear-gradient(45deg, #b45734, #a04a2e);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(180, 87, 52, 0.3);
}

.contact-link:hover {
    background: linear-gradient(45deg, #a04a2e, #8b3f26);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 87, 52, 0.4);
    color: white;
    text-decoration: none;
}

/* Footer */
.footer {
    background: #0f3043;
    padding: 30px 0;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.back-to-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-to-top-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.social-share {
    display: flex;
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .about-section,
    .curriculum-section,
    .facts-section,
    .instructors-section,
    .organizer-section,
    .gallery-section,
    .payment-section,
    .workshop-details-section,
    .contact-section {
        padding: 40px 0;
    }
    
    .workshop-details-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .payment-steps {
        gap: 0.8rem;
    }
    
    .payment-step {
        padding: 0.8rem;
    }
    
    .instructors-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.6rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .registration-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .payment-info {
        padding: 1.5rem;
    }
    
    .terms-text {
        padding: 1.2rem;
        max-height: 300px;
    }
    
    .terms-btn {
        font-size: 0.9rem !important;
        padding: 12px 24px !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .instructor-card,
    .organizer-card {
        padding: 1.2rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .facts-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-section,
    .curriculum-section,
    .facts-section,
    .instructors-section,
    .organizer-section,
    .gallery-section,
    .payment-section,
    .workshop-details-section,
    .contact-section {
        padding: 30px 0;
    }
    
    .workshop-details-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .detail-card {
        padding: 1.2rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-icon i {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .terms-btn {
        font-size: 0.85rem !important;
        padding: 10px 20px !important;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.terms-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #0f3043;
    font-weight: 500;
}

.label-text {
    user-select: none;
}

/* Focus states for better accessibility */
.registration-btn:focus,
.contact-link:focus,
input:focus {
    outline: 2px solid #df9939;
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contentful Integration Styles */
[data-contentful-field] {
    transition: opacity 0.3s ease;
}

[data-contentful-field].loading {
    opacity: 0.5;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
a:focus,
button:focus {
    outline: 2px solid #4ecdc4;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .hero-section {
        background: #000;
        color: #fff;
    }
    
    .instructor-card,
    .organizer-card {
        border: 2px solid #000;
    }
}
