/* ============================================
   Variables i Colors
   ============================================ */
:root {
    --color-primary: #FF6B9D;
    --color-secondary: #C44569;
    --color-accent: #FFA502;
    --color-success: #26DE81;
    --color-info: #45AAF2;
    --color-warning: #FD79A8;
    
    --color-bg: #FFF5F7;
    --color-bg-alt: #FFFFFF;
    --color-text: #2C3A47;
    --color-text-light: #778CA3;
    
    --font-primary: 'Baloo 2', cursive;
    --font-secondary: 'Nunito', sans-serif;
    
    --shadow-sm: 0 2px 10px rgba(255, 107, 157, 0.1);
    --shadow-md: 0 4px 20px rgba(255, 107, 157, 0.15);
    --shadow-lg: 0 8px 30px rgba(255, 107, 157, 0.2);
    
    --radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset i Base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ============================================
   Navbar
   ============================================ */
.navbar {
    background: var(--color-bg-alt);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--color-text);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--color-primary);
}

.language-btn:hover {
    background: rgba(255, 107, 157, 0.2);
    transform: translateY(-2px);
}

.current-lang-flag {
    font-size: 1.2rem;
}

.current-lang-code {
    font-size: 0.9rem;
    font-weight: 700;
}

.lang-arrow {
    font-size: 0.7rem;
    transition: var(--transition);
}

.language-btn[aria-expanded="true"] .lang-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.language-btn[aria-expanded="true"] + .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.language-dropdown li:hover {
    background: var(--color-bg);
}

.language-dropdown li.active {
    background: rgba(255, 107, 157, 0.1);
    font-weight: 700;
}

.lang-flag {
    font-size: 1.2rem;
}

.lang-name {
    font-size: 0.95rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, #FFF5F7 0%, #FFE8F0 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.wave {
    display: inline-block;
    animation: wave 2s infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-secondary);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-primary);
    border: 3px solid var(--color-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    height: 400px;
}

.floating-emoji {
    position: absolute;
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

.floating-emoji:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-emoji:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 0.5s;
}

.floating-emoji:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 1s;
}

.floating-emoji:nth-child(4) {
    bottom: 20%;
    right: 20%;
    animation-delay: 1.5s;
}

.floating-emoji:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: white;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.view-all {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* ============================================
   Cards Grid
   ============================================ */
.about-grid,
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Events Section */
.events-message {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.events-message p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Event Date Badge */
.event-date-badge {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 107, 157, 0.3);
}

.event-day {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 2px;
}

.event-month {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-card,
.activity-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 3px solid transparent;
}

.blog-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 3px solid transparent;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.about-card:hover,
.activity-card:hover,
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.card-icon,
.activity-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.about-card h3,
.activity-card h3 {
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ============================================
   Blog Cards
   ============================================ */
.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-date {
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--color-bg);
    color: var(--color-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.clickable-tag {
    cursor: pointer;
}

.clickable-tag:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.05);
}

.blog-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

.blog-card-title a:hover {
    color: var(--color-primary);
}

.blog-card-excerpt {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 700;
    transition: var(--transition);
    align-self: flex-start;
}

.read-more:hover {
    transform: translateX(5px);
}

/* ============================================
   Pinned/Featured Posts
   ============================================ */
.blog-card-pinned {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    border: 3px solid var(--color-accent) !important;
}

.blog-card-pinned::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    border-radius: var(--radius);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.blog-card-pinned:hover::before {
    opacity: 0.2;
}

.pinned-badge {
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: pulse-star 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(255, 165, 2, 0.4));
}

@keyframes pulse-star {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(255, 165, 2, 0.4));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 4px 8px rgba(255, 165, 2, 0.6));
    }
}

/* ============================================
   Blog Filters
   ============================================ */
.blog-filters {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

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

.filter-group:last-of-type {
    margin-bottom: 1rem;
}

.filter-title {
    color: var(--color-secondary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-tag {
    background: var(--color-bg);
    color: var(--color-primary);
    border: 2px solid transparent;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-tag:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.filter-tag.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}

.date-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.date-select {
    flex: 1;
    min-width: 250px;
    padding: 0.8rem 1rem;
    border: 2px solid var(--color-bg);
    border-radius: 15px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.date-select:hover,
.date-select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: var(--shadow-sm);
}

.filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--color-bg);
}

.btn-clear-filters {
    background: var(--color-warning);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 20px;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-clear-filters:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.results-count {
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 1rem;
}

.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--color-text-light);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    padding: 0.5rem 1.5rem;
    background: var(--color-bg);
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
    display: inline-block;
}

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

.footer-section .social-links a {
    padding: 0.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-section .social-links a:hover {
    transform: translateY(-5px);
}

.social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.social-icon[alt="X"] {
    filter: brightness(0);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.opensource-note {
    font-size: 0.9rem;
    opacity: 0.9;
}

.opensource-note a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    transition: var(--transition);
}

.opensource-note a:hover {
    color: white;
    opacity: 1;
}

/* ============================================
   Page Header (Blog page)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, #FFF5F7 0%, #FFE8F0 100%);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--color-text-light);
}

.blog-main {
    padding: 5rem 0;
}

.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    font-size: 1.3rem;
    color: var(--color-text-light);
}

/* ============================================
   Post Page
   ============================================ */
.post-header {
    background: linear-gradient(135deg, #FFF5F7 0%, #FFE8F0 100%);
    padding: 4rem 0 3rem;
}

.post-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
    font-weight: 600;
}

.post-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.post-description {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-content {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.post-content h2 {
    color: var(--color-secondary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    color: var(--color-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.post-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-text-light);
}

.post-footer {
    padding: 2rem 0 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius);
    font-weight: 700;
    transition: var(--transition);
}

.back-link:hover {
    background: var(--color-secondary);
    transform: translateX(-5px);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image {
        display: none;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Language selector in mobile menu */
    .nav-links .language-selector {
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 2px solid var(--color-bg);
    }
    
    .nav-links .language-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .nav-links .language-dropdown {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
        border: 2px solid var(--color-bg);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .about-grid,
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        gap: 1rem;
    }
    
    .blog-card {
        padding: 1.25rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Ensure mobile menu is fully visible */
    .nav-links {
        max-height: 80vh;
        overflow-y: auto;
        padding: 1.5rem;
    }
    
    .nav-links .language-dropdown {
        max-height: 200px;
        overflow-y: auto;
    }
}

/* ============================================
   Language Switcher
   ============================================ */
.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
}

.language-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.language-btn:hover {
    background: var(--color-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.current-lang {
    font-weight: 700;
}

.lang-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-btn[aria-expanded="true"] .lang-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li {
    padding: 0;
    margin: 0;
}

.language-dropdown li.active {
    background: var(--color-bg);
}

.language-dropdown a,
.language-dropdown span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.language-dropdown a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

.lang-flag {
    font-size: 1.5rem;
    line-height: 1;
}

.lang-name {
    flex: 1;
    font-family: var(--font-secondary);
    font-weight: 600;
}

.check-mark {
    color: var(--color-success);
    font-weight: bold;
}

/* ============================================
   RTL Support for Arabic and Urdu
   ============================================ */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .navbar .container {
    flex-direction: row-reverse;
}

[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

/* Override for mobile - nav-links should be vertical in RTL too */
@media (max-width: 768px) {
    [dir="rtl"] .nav-links {
        flex-direction: column;
    }
}

[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .language-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .hero .container {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .about-grid,
[dir="rtl"] .activities-grid,
[dir="rtl"] .blog-grid {
    direction: rtl;
}

[dir="rtl"] .footer-content {
    direction: rtl;
}

[dir="rtl"] .social-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-methods {
    direction: rtl;
}

/* RTL Blog Filters */
[dir="rtl"] .tag-filters,
[dir="rtl"] .date-filters,
[dir="rtl"] .filter-actions {
    direction: rtl;
}

[dir="rtl"] .blog-tags {
    direction: rtl;
}

/* RTL Typography fixes */
[dir="rtl"] body {
    font-family: var(--font-secondary), 'Noto Sans Arabic', 'Noto Nastaliq Urdu', sans-serif;
}

/* Ensure emojis and icons remain LTR */
[dir="rtl"] .wave,
[dir="rtl"] .floating-emoji,
[dir="rtl"] .card-icon,
[dir="rtl"] .activity-icon,
[dir="rtl"] .contact-icon {
    direction: ltr;
    display: inline-block;
}

/* Fix arrow directions in RTL */
[dir="rtl"] .read-more::after,
[dir="rtl"] .view-all::after {
    content: '←';
}

[dir="rtl"] .back-link::before {
    content: '→';
}

/* Mobile RTL fixes */
@media (max-width: 768px) {
    [dir="rtl"] .navbar .container {
        flex-direction: row-reverse;
    }
    
    [dir="rtl"] .menu-toggle {
        margin-left: 0;
        margin-right: auto;
    }
    
    [dir="rtl"] .language-switcher {
        margin-right: 0;
        margin-left: 0;
    }
    
    [dir="rtl"] .nav-links {
        text-align: right;
        flex-direction: column; /* Ensure vertical stacking */
    }
    
    [dir="rtl"] .nav-links li {
        width: 100%;
        text-align: right;
    }
    
    [dir="rtl"] .nav-links a {
        display: block;
        text-align: right;
    }
    
    [dir="rtl"] .nav-links .language-dropdown {
        left: auto;
        right: auto;
    }
    
    [dir="rtl"] .nav-links .language-btn {
        flex-direction: row-reverse;
    }
    
    [dir="rtl"] .language-dropdown li {
        flex-direction: row-reverse;
    }
}

/* ============================================
   Font Loading for Arabic and Urdu
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;600;700&family=Noto+Nastaliq+Urdu:wght@400;600;700&display=swap');

/* Apply specific fonts for Arabic and Urdu */
html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
    font-family: 'Noto Sans Arabic', var(--font-secondary), sans-serif;
}

html[lang="ur"] body,
html[lang="ur"] h1,
html[lang="ur"] h2,
html[lang="ur"] h3,
html[lang="ur"] h4,
html[lang="ur"] h5,
html[lang="ur"] h6 {
    font-family: 'Noto Nastaliq Urdu', var(--font-secondary), sans-serif;
}

/* Adjust line-height for better readability in RTL languages */
html[lang="ar"] body,
html[lang="ur"] body {
    line-height: 1.8;
}

html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3 {
    line-height: 1.4;
}

/* RTL Language Selector */
[dir="rtl"] .language-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .language-dropdown li {
    flex-direction: row-reverse;
    text-align: right;
    /* Keep vertical stacking */
    display: flex;
}

[dir="rtl"] .language-btn {
    flex-direction: row-reverse;
}

/* Ensure dropdown always shows vertically, not horizontally */
.language-dropdown {
    display: flex;
    flex-direction: column;
}

[dir="rtl"] .language-dropdown {
    display: flex;
    flex-direction: column;
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--color-primary);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    border-top: 4px solid var(--color-accent);
    z-index: 10000 !important;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out, visibility 0.5s;
    -webkit-transform: translateY(100%);
    -webkit-transition: -webkit-transform 0.5s ease-out, opacity 0.5s ease-out, visibility 0.5s;
}

.cookie-consent-banner.show {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-transform: translateY(0);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-consent-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.cookie-consent-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    color: white;
    opacity: 0.95;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--color-accent);
    color: var(--color-primary);
}

.cookie-btn-accept:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.cookie-btn-reject {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cookie-learn-more {
    color: var(--color-accent);
    text-decoration: underline;
    font-size: 0.9rem;
    white-space: nowrap;
}

.cookie-learn-more:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1rem;
        max-height: 90vh;
        overflow-y: auto;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-consent-text h3 {
        font-size: 1.1rem;
    }
    
    .cookie-consent-text p {
        font-size: 0.9rem;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .cookie-learn-more {
        display: block;
        margin-top: 0.5rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 0.875rem;
    }
    
    .cookie-consent-text h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .cookie-consent-text p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .cookie-btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
    }
}

/* Cookie customize button */
.cookie-btn-customize {
    background: transparent;
    color: white;
    border: 2px solid var(--color-accent);
}

.cookie-btn-customize:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Cookie Preferences Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

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

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--color-accent);
    background: var(--color-primary);
}

.cookie-modal-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-modal-body > p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

.cookie-option {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.cookie-option:hover {
    border-color: var(--color-accent);
}

.cookie-option-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.cookie-option-info {
    flex: 1;
}

.cookie-option-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.cookie-option-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cookie-required {
    background: #28a745;
    color: white;
}

.cookie-optional {
    background: #ffc107;
    color: var(--color-primary);
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 28px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: var(--color-accent);
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(22px);
}

.cookie-switch input:disabled + .cookie-slider {
    background-color: #28a745;
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-btn-primary {
    background: var(--color-primary);
    color: white;
}

.cookie-btn-primary:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 31, 63, 0.3);
}

@media (max-width: 768px) {
    .cookie-modal-content {
        margin: 1rem;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
    
    /* Blog filters responsive */
    .blog-filters {
        padding: 1.5rem;
    }
    
    .tag-filters {
        gap: 0.5rem;
    }
    
    .filter-tag {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .date-filters {
        flex-direction: column;
    }
    
    .date-select {
        width: 100%;
        min-width: auto;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-clear-filters {
        width: 100%;
    }
    
    .results-count {
        text-align: center;
    }
}
