/* Add smooth scrolling to the whole page */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Account for fixed navbar */
}

/* Font Face Declarations */
@font-face {
    font-family: 'Fractul';
    src: url('../public/fonts/Fractul-Bold.woff2') format('woff2'),
         url('../public/fonts/Fractul-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fractul';
    src: url('../public/fonts/Fractul-Light.woff2') format('woff2'),
         url('../public/fonts/Fractul-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Brand Colors */
:root {
    --color-primary: #2652BF;    /* Cobalt Blue */
    --color-base: #F7F7F7;       /* Off White */
    --color-accent: #D5E86B;     /* Neon Yellow */
    --color-text: #333333;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fractul', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-base);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--color-primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    flex: 0 0 auto;
    padding: 0.5rem 0;
    position: relative;
}

.logo a {
    display: inline-block;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo img:hover {
    opacity: 0.9;
}

/* Navigation Right Side */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-primary);
    padding: 8rem 4rem 2rem 4rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 0.5rem;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-logo img {
    height: 180px;
    width: auto;
    max-width: 100%;
}

.hero-content h1 {
    font-family: 'Fractul', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1;
    letter-spacing: -2px;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.hero-subtitle {
    font-family: 'Fractul', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .hero-year {
    font-family: 'Fractul', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.4s forwards;
    margin-left: auto;
    margin-right: auto;
}

.hero-tagline {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.hero-content p {
    font-size: 1.75rem;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2s forwards;
}

/* Newsletter Button */
.newsletter-btn {
    background-color: var(--color-accent);
    border: none;
    color: var(--color-primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Fractul', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2.5s forwards;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: white;
}

section:nth-child(odd) {
    background-color: var(--color-base);
}

section h2 {
    color: var(--color-primary);
    margin-bottom: 3rem;
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Fractul', sans-serif;
    font-weight: 700;
}



/* Grid Layouts - Removed unused grid styles */

/* About Section */
#about {
    padding: 8rem 0 5rem 0;
    background-color: white;
    text-align: center;
}

#about h2 {
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
}

#about p {
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: var(--color-primary);
    font-weight: 600;
}

/* Contact Form Styles */
.contact-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
    font-size: 1.1rem;
}

#contact {
    padding: 8rem 0 5rem 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Fractul', sans-serif;
    font-weight: 300;
    transition: border-color 0.3s ease;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(38, 82, 191, 0.1);
}

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

.contact-submit-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Fractul', sans-serif;
    width: 100%;
    transition: all 0.3s ease;
}

.contact-submit-btn:hover {
    background-color: #1e3f8f;
}

.form-message {
    margin: 1rem 0;
    padding: 0.75rem;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-message.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: white;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.youtube {
    background-color: #FF0000;
}

.social-btn.facebook {
    background-color: #1877F2;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0.9;
}

/* Turnstile Widget Styles */
.cf-turnstile {
    margin: 1rem 0;
    /* Center the Turnstile widget */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Prevent overflow on mobile */
    overflow: hidden;
    max-width: 100%;
}



/* Ensure Turnstile iframe fits within container */
.cf-turnstile iframe {
    max-width: 100%;
    height: auto;
    /* Better mobile handling */
    border: none;
    outline: none;
}

/* Additional Turnstile container adjustments */
.cf-turnstile > div {
    max-width: 100%;
    overflow: hidden;
}

/* Force all Turnstile elements to respect container width */
.cf-turnstile * {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Better mobile handling for Turnstile */
@media (max-width: 768px) {
    /* Adjust modal content for mobile */
    .modal-content {
        padding: 1.5rem;
        margin: 0 1rem;
        width: calc(100% - 2rem);
    }
    
    .cf-turnstile {
        /* Force the widget to fit within container */
        max-width: 100%;
        overflow: hidden;
        /* Add some right margin to prevent cut-off */
        margin-right: -0.5rem;
    }
    
    .cf-turnstile iframe {
        /* Force iframe to fit */
        max-width: 100% !important;
        width: 100% !important;
        /* Scale down slightly to ensure fit */
        transform: scale(0.9);
        transform-origin: center;
    }
}





/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: modalFadeIn 0.3s ease-out forwards;
}

.modal.active {
    display: flex !important;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #333;
}

.modal h2 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.modal p {
    margin-bottom: 1.5rem;
    color: #666;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(38, 82, 191, 0.1);
}





/* Success message styling */
.success-container {
    text-align: center;
    padding: 2rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.success-checkmark {
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    animation: checkmarkEntrance 1s ease-out forwards;
}

/* Modern circular checkmark animations */
.checkmark-circle {
    animation: circleDraw 1.2s ease-out forwards;
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
}

.checkmark-path {
    animation: pathDraw 0.8s ease-out 0.6s forwards;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
}

@keyframes checkmarkEntrance {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

/* Add a subtle pulse effect */
.success-checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: checkmarkPulse 2s ease-out 1s forwards;
}

@keyframes checkmarkPulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.success-text {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #2e7d32;
    max-width: 400px;
    animation: textSlideIn 1s ease-out 0.8s both;
    opacity: 0;
    transform: translateY(20px);
    font-weight: 600;
}

@keyframes textSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



.cta-button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Fractul', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #1c3f8f;
    transform: translateY(-1px);
}

/* Mobile Social Icons - Hidden by default, shown only on mobile */
.mobile-social-icons {
    display: none;
}

/* News Page Styles */
.highlight-address {
    color: var(--color-primary);
    font-weight: 600;
}

.news-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.news-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.news-header {
    text-align: center;
    margin-bottom: 2.5rem;
    margin-top: 2rem;
    padding-bottom: 2rem;
    padding-top: 1rem;
    border-bottom: 2px solid var(--color-primary);
}

.news-date {
    display: block;
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    margin: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.news-content {
    max-width: 900px;
    margin: 0 auto;
}

.pdf-container {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.media-container {
    text-align: center;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.pdf-download {
    display: inline-flex;
    align-items: center;
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pdf-download:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.pdf-download svg {
    width: 20px;
    height: 20px;
}

.pdf-container h4 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pdf-placeholder {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 1rem;
}

.pdf-placeholder p {
    margin: 0.5rem 0;
    color: #6b7280;
}

.news-context h4 {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.news-context p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

/* Responsive News Styles */
@media (max-width: 768px) {
    .news-item {
        padding: 0.5rem;
        margin: 0.25rem;
        width: calc(100% - 0.5rem);
    }
    
    .news-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        margin-top: 1rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .news-title {
        font-size: 1.6rem;
        line-height: 1.2;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .news-content {
        margin: 0;
        max-width: 100%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .pdf-container {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .media-container {
        margin-bottom: 1.5rem;
        max-width: 100%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .news-date {
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }
    
    .news-context h4,
    .news-context p {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Mobile PDF iframe optimization */
    .media-container iframe {
        width: 100% !important;
        height: 500px !important;
        max-width: 100% !important;
    }
}



/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        justify-content: space-between;
        padding: 0.5rem 1rem;
    }
    
    .logo img {
        height: 50px;
    }

    .mobile-menu-btn {
        display: block;
        order: 3;
    }

    .nav-right {
        gap: 1rem;
        order: 2;
        margin-left: auto;
    }
    
    .social-icons {
        display: none;
    }

    .social-icons {
        gap: 0.5rem;
    }

    .social-icon {
        padding: 0.25rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--color-primary);
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        transform: translateY(-20px);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0 0 15px 15px;
        backdrop-filter: blur(10px);
        background-color: rgba(38, 82, 191, 0.95);
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links a {
        padding: 0.75rem 1.5rem;
        display: block;
        border-radius: 8px;
        transition: all 0.2s ease;
        position: relative;
        overflow: hidden;
    }
    
    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }
    
    .nav-links a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 0;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: width 0.3s ease;
    }
    
    .nav-links a:hover::before {
        width: 100%;
    }
    
    .mobile-social-icons {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        padding: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 1rem;
        animation: fadeInUp 0.5s ease-out 0.2s both;
    }
    
    .mobile-social-icons .social-icon {
        padding: 0.75rem;
        border-radius: 50%;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.05);
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        width: 3rem;
        height: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-social-icons .social-icon:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(1.1) rotate(5deg);
    }
    
    .mobile-social-icons .social-icon:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.2);
    }
    
    #hero {
        padding: 8rem 2rem 2rem 2rem;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-tagline {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-content .hero-year {
        font-size: 4rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    section {
        padding: 3rem 0;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }



    /* Removed unused grid responsive styles */

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
        margin: 0 0.5rem;
        width: calc(100% - 1rem);
    }

    .newsletter-btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    /* Mobile Turnstile adjustments */
    .cf-turnstile {
        margin: 0.75rem 0;
        /* Ensure full width on mobile */
        width: 100%;
        min-width: 100%;
    }
    
    .cf-turnstile iframe {
        transform: scale(0.85);
        transform-origin: center;
        /* Ensure iframe fits */
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.25rem 0.75rem;
    }
    
    .logo img {
        height: 45px;
    }
    
    #hero {
        padding: 7rem 1.5rem 2rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-tagline {
        font-size: 1.75rem;
    }
    
    .hero-content .hero-year {
        font-size: 3rem;
    }
    
    /* Small mobile modal adjustments */
    .modal-content {
        padding: 1rem;
        margin: 0 0.75rem;
        width: calc(100% - 1.5rem);
    }
    
    /* Small mobile contact form adjustments */
    .contact-form {
        padding: 1rem;
        margin: 0 0.25rem;
        width: calc(100% - 0.5rem);
    }
    
    /* Small mobile Turnstile adjustments */
    .cf-turnstile {
        margin: 0.5rem 0;
        /* Ensure full width on small mobile */
        width: 100%;
        min-width: 100%;
    }
    
    .cf-turnstile iframe {
        transform: scale(0.7);
        transform-origin: center;
        /* Force iframe to fit with !important */
        max-width: 100% !important;
        width: 100% !important;
    }
}
/* Smooth Scrolling for All Pages */
html {
    scroll-behavior: smooth;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top-btn:hover {
    background-color: #1e3f8f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile adjustments for back to top button */
@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Scroll-triggered animation enhancements */
.scroll-visible {
    animation-play-state: running;
}

/* Smooth scroll behavior for all elements */
* {
    scroll-behavior: smooth;
}

/* Enhanced scroll animations */
.news-fade-in,
.contact-fade-in,
.about-fade-in {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Subtle hover effects for interactive elements */
.news-item:hover,
.contact-form:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Smooth transitions for all interactive elements */
button, input, select, textarea, a {
    transition: all 0.3s ease;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced scroll behavior for mobile */
@media (max-width: 768px) {
    .scroll-progress-bar {
        height: 2px;
    }
    
    /* Improve mobile scroll performance */
    body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* News Page Fade In Animations */
.news-fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.news-header .news-date.news-fade-in {
    animation-delay: 0.3s;
}

.news-header .news-title.news-fade-in:nth-child(2) {
    animation-delay: 0.5s;
}

.news-header .news-title.news-fade-in:nth-child(3) {
    animation-delay: 0.7s;
}

.news-header .news-title.news-fade-in:nth-child(4) {
    animation-delay: 0.9s;
}

.news-header .news-title.news-fade-in:nth-child(5) {
    animation-delay: 1.1s;
}

.pdf-container.news-fade-in {
    animation-delay: 1.3s;
}

.media-container.news-fade-in {
    animation-delay: 1.3s;
}

.news-context.news-fade-in {
    animation-delay: 1.5s;
}

/* Contact Page Fade In Animations */
.contact-fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.contact-fade-in:nth-child(1) {
    animation-delay: 0.3s;
}

.contact-fade-in:nth-child(2) {
    animation-delay: 0.5s;
}

.contact-fade-in:nth-child(3) {
    animation-delay: 0.7s;
}

.contact-fade-in:nth-child(4) {
    animation-delay: 0.9s;
}

.contact-fade-in:nth-child(5) {
    animation-delay: 1.1s;
}

.contact-fade-in:nth-child(6) {
    animation-delay: 1.3s;
}

.contact-fade-in:nth-child(7) {
    animation-delay: 1.5s;
}

/* About Page Fade In Animations */
.about-fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.about-fade-in:nth-child(1) {
    animation-delay: 0.3s;
}

.about-fade-in:nth-child(2) {
    animation-delay: 0.5s;
}

.about-fade-in:nth-child(3) {
    animation-delay: 0.7s;
}

.about-fade-in:nth-child(4) {
    animation-delay: 0.9s;
}

.about-fade-in:nth-child(5) {
    animation-delay: 1.1s;
}

.about-fade-in:nth-child(6) {
    animation-delay: 1.3s;
}

/* News Cards Section */
.news-cards-section {
    background: #f8f9fa;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.news-cards-title {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.news-card-image {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
}

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

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

.news-card-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.news-card-content {
    padding: 1.2rem;
}

.news-card-date {
    color: #667eea;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-title-main {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin-bottom: 0;
}

.news-cards-section .loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1rem;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .news-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .news-cards-title {
        font-size: 1.8rem;
    }
    
    .news-card-content {
        padding: 1rem;
    }
}

