@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 50%, #fce7f3 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 4px solid #3b82f6;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.header-left h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #2563eb, #f59e0b, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-left p {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.calendar-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.calendar-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

/* Button */
.btn-calendar {
    padding: 1rem 2rem;
    background: linear-gradient(90deg, #3b82f6, #a855f7, #ec4899);
    color: white;
    border: none;
    border-radius: 1rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem auto;
}

.btn-calendar:hover {
    transform: scale(1.05);
}

.btn-calendar:active {
    transform: scale(0.95);
}

/* Main Content */
.main-content {
    padding: 0.4rem 0;
}

.card-edu {
    background: white;
    border-radius: 1.5rem;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 0.6rem;
}

/* Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-right: 4rem;
}

@media (max-width: 1024px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
}

/* Carousel */
.carousel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 28rem;
}

.carousel-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #e9d5ff);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
    padding: 1.5rem;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    width: 100%;
}

.btn-nav {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.btn-nav:hover {
    transform: scale(1.1);
}

.btn-nav:active {
    transform: scale(0.95);
}

/* Dots Indicator */
.dots-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #93c5fd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #1e40af;
    width: 2rem;
}

/* Info Section */
.info-section {
    background: linear-gradient(135deg, #f0f9ff, #f3e8ff);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid #93c5fd;
}

.info-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    color: #1e3a8a;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #1e40af;
    line-height: 1.5;
}

.info-list strong {
    color: #1e3a8a;
}

.check-mark {
    color: #16a34a;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Calendar Section */
.calendar-section {
    width: 100%;
    background: linear-gradient(180deg, #f0f9ff, #f3e8ff);
    padding: 2rem 0;
    display: none;
    animation: slideIn 0.3s ease;
}

.calendar-section.show {
    display: block;
}

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

.calendar-content {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 4px solid #93c5fd;
}

.calendar-header {
    text-align: center;
    padding: 2rem;
}

.calendar-header h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.calendar-header p {
    color: #666;
    font-weight: 300;
}

.calendar-iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

/* Share Card */
.share-card-section {
    width: 100%;
    background: linear-gradient(135deg, #fff5e6, #ffe8f0);
    padding: 3rem 0;
    margin-top: 2rem;
}

.share-card {
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
}

@media (max-width: 1024px) {
    .share-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.share-card-image {
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.share-card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.share-card-content h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.share-card-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn-primary {
    background: linear-gradient(90deg, #3b82f6, #a855f7);
    color: white;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.share-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.share-btn-secondary {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.share-btn-secondary:hover {
    background: #f0f9ff;
}

.url-input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.url-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #93c5fd;
    border-radius: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    color: #333;
}

.url-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.copy-btn {
    padding: 0.75rem 1.5rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #059669;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-top: 4px solid #93c5fd;
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
}

footer p {
    color: #666;
    font-weight: 300;
    margin: 0.5rem 0;
}

footer p:last-child {
    color: #999;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-left h1 {
        font-size: 1.5rem;
    }

    .btn-calendar {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .card-edu {
        padding: 1.5rem;
    }

    .calendar-iframe {
        height: 400px;
    }

    .info-section {
        padding: 1rem;
    }

    .info-title {
        font-size: 1rem;
    }

    .info-list li {
        font-size: 0.8rem;
    }
}
