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

body {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    background-color: #3f72af;
    background-image: linear-gradient(135deg, #3f72af 0%, #dbe2ef 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: 60px;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    background-color: rgba(63, 114, 175, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

.container {
    width: 100%;
    max-width: 500px;
    text-align: center;
    padding: 2rem;
}

.profile {
    margin-bottom: 2rem;
}

.profile-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f9b17a;
    box-shadow: 0 0 20px rgba(249, 177, 122, 0.5);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
}

h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.profile p {
    color: #ffffff;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-icon {
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.link-button {
    background-color: #ffffff;
    color: #333333;
    padding: 1.7rem;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid #dbe2ef;
    display: block;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.link-button div {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
}

.link-button h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #3f72af;
}

.link-button p {
    font-size: 1rem;
    color: #666666;
    line-height: 1.5;
    margin-top: 0.2rem;
}

.link-button:hover {
    background-color: #f8f9fb;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #f9b17a;
}

.link-button:hover h3 {
    color: #f9b17a;
}

.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border-top: 5px solid #3f72af;
}

.event-card:nth-child(1) .event-icon {
    color: #3f72af;
}

.event-card:nth-child(2) .event-icon {
    color: #112d4e;
}

.event-card:nth-child(2) .event-link {
    border-color: #112d4e;
    color: #112d4e;
}

.event-card:nth-child(2) {
    border-top-color: #112d4e;
}

.event-card:nth-child(3) .event-icon {
    color: #f9b17a;
}

.event-card:nth-child(3) {
    border-top-color: #f9b17a;
}

.event-link {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: transparent;
    border: 2px solid #3f72af;
    color: #3f72af;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.event-link:hover {
    background: #3f72af;
    color: white;
}

.news-slider {
    margin-top: 2rem;
    margin-bottom: 3rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slider-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.slider-header h2 {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 480px) {
    .slider-header h2 {
        font-size: 1.3rem;
    }
    
    .slider-subtitle {
        font-size: 0.8rem;
    }
}

.slider-container {
    width: 100%;
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.news-item {
    min-width: 100%;
    padding: 1rem;
}

.news-link {
    text-decoration: none;
    color: white;
    display: block;
    transition: transform 0.3s ease;
}

.news-link:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-link:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 0.5rem;
}

.news-date {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.3rem;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.news-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6b6b;
    border: 3px solid white;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
    background: #20bf6b;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.7rem;
    }
    
    .link-button {
        padding: 1.2rem;
    }
    
    .link-button h3 {
        font-size: 0.9rem;
    }
    
    .link-button p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
        margin-bottom: 60px;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.7rem;
    }
    
    .link-button {
        padding: 1.2rem;
    }
    
    .link-button h3 {
        font-size: 0.9rem;
    }
    
    .link-button p {
        font-size: 0.75rem;
    }
    
    .footer {
        font-size: 0.7rem;
        padding: 0.8rem;
    }
    
    .news-image {
        height: 150px;
    }

    .slider-nav {
        width: 35px;
        height: 35px;
    }

    .news-content h3 {
        font-size: 1rem;
    }

    .news-content p {
        font-size: 0.8rem;
    }
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    background-color: rgba(63, 114, 175, 0.8);
    backdrop-filter: blur(5px);
    border-top: 3px solid rgba(255, 255, 255, 0.3);
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    color: #333;
    border: 5px solid #3f72af;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close-popup:hover {
    opacity: 1;
}

.popup-content h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.popup-content p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #dbe2ef;
    border-radius: 12px;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

.form-group input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.form-group select {
    appearance: none;
    padding-right: 2rem;
    cursor: pointer;
}

.form-group select option {
    background: #1a1a1a;
    color: white;
}

.submit-btn {
    background: #3f72af;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.submit-btn:hover {
    transform: translateY(-5px);
    background: #f9b17a;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Share Popup Styles */
.share-popup {
    text-align: center;
}

.popup-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #dbe2ef;
}

.popup-header h2 {
    margin: 0.5rem 0 0 0;
    color: #3f72af;
    font-size: 1.5rem;
    font-weight: 700;
}

.popup-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #ff6b6b;
    padding: 3px;
    background: white;
}

.qr-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.qr-wrapper {
    display: inline-block;
    padding: 10px;
    background: white;
    border-radius: 15px;
    border: 3px solid #dbe2ef;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qr-code {
    width: 180px;
    height: 180px;
    display: block;
}

.qr-container p {
    color: #1a1a1a;
    margin: 0;
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.share-btn {
    background: #3f72af;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Fredoka', sans-serif;
}

.share-btn:hover {
    background: #f9b17a;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.share-btn i {
    font-size: 1rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    font-size: 1rem;
    display: none;
    animation: fadeIn 0.3s ease;
    z-index: 2000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid #3f72af;
}

.toast.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Confetti Animation */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    border-radius: 0;
    animation: confetti-fall linear forwards;
    transform: rotate(0);
}

@keyframes confetti-fall {
    0% {
        top: -10px;
        transform: rotate(0deg) translateX(0);
    }
    25% {
        transform: rotate(90deg) translateX(25px);
    }
    50% {
        transform: rotate(180deg) translateX(-25px);
    }
    75% {
        transform: rotate(270deg) translateX(25px);
    }
    100% {
        top: 100vh;
        transform: rotate(360deg) translateX(-25px);
    }
}

@media (max-width: 480px) {
    .qr-code {
        width: 150px;
        height: 150px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }
}
