:root {
    --primary-color: #E6C98E;
    --secondary-color: #8B4513;
    --dark-color: #333;
    --light-color: #f9f9f9;
    --accent-color: #5D4037;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-top {
    background: var(--accent-color);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
}

.social-links a {
    color: #fff;
    margin-left: 15px;
    font-size: 18px;
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
}

.logo h1 {
    color: var(--secondary-color);
    font-size: 24px;
}

.logo span {
    display: block;
    font-size: 14px;
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: url('../images/back.jpg') center center/cover no-repeat;
    background-attachment: fixed;
    color: #fff;
    padding: 150px 0;
    text-align: center;
    position: relative;
    min-height: 500px;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInDown 1s;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: #fff;
    margin-left: 15px;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--dark-color);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 18px;
}

/* About Preview */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-preview img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content h3 {
    color: var(--secondary-color);
    font-size: 28px;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Featured Courses */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-10px);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card-content {
    padding: 20px;
}

.course-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.course-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.blog-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Events */
.events-list {
    display: grid;
    gap: 30px;
}

.event-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.event-date {
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.event-date .day {
    font-size: 48px;
    font-weight: bold;
    color: var(--dark-color);
}

.event-date .month {
    font-size: 18px;
    color: var(--accent-color);
}

.event-content {
    padding: 25px;
}

.event-content h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background: var(--accent-color);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .about-preview {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        grid-template-columns: 1fr;
    }
}

/* Additional Styles */
.page-header {
    background: url('../images/back.jpg') center center/cover no-repeat;
    background-attachment: fixed;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.page-header h1,
.page-header h2 {
    font-size: 42px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-header p {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info-section {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.contact-form-section {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.register-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.education-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.edu-category {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.edu-category:hover {
    transform: translateY(-10px);
}

.edu-category i {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.edu-category h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card-content {
    padding: 20px;
}

.video-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-top: 10px;
}

.hymns-list {
    display: grid;
    gap: 30px;
}

.hymn-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.hymn-icon {
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--dark-color);
}

.hymn-content {
    padding: 25px;
}

.hymn-category {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.hymn-lyrics {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.hymn-lyrics h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

audio {
    width: 100%;
    margin-top: 15px;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
}

.lightbox .close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.about-content-full {
    max-width: 800px;
    margin: 0 auto;
}

.about-content-full h3 {
    color: var(--secondary-color);
    font-size: 28px;
    margin: 30px 0 15px;
}

.about-content-full ul {
    list-style: none;
    padding-left: 0;
}

.about-content-full ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.about-content-full ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hymn-card {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        grid-template-columns: 1fr;
    }
}


/* Donation Page Styles */
.donation-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.donation-info {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.donation-info h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.donation-info ul {
    list-style: none;
    padding: 0;
}

.donation-info ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.donation-info ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.donation-impact {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--primary-color);
}

.donation-impact h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.impact-item {
    background: var(--light-color);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

.impact-item strong {
    color: var(--secondary-color);
    font-size: 18px;
}

.donation-form-section {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.donation-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.amount-btn {
    padding: 15px;
    border: 2px solid var(--primary-color);
    background: #fff;
    color: var(--dark-color);
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.amount-btn:hover,
.amount-btn.active {
    background: var(--primary-color);
    color: var(--dark-color);
}

.bank-info {
    background: var(--light-color);
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.bank-info p {
    margin: 10px 0;
}

.donation-note {
    background: #fff3cd;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
    margin: 20px 0;
}

.donation-closed {
    max-width: 600px;
    margin: 0 auto;
}

.status-confirmed {
    background: #28a745;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .donation-wrapper {
        grid-template-columns: 1fr;
    }
    
    .donation-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* YouTube Channel Embed */
.youtube-channel-embed {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.youtube-embed-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.youtube-embed-container iframe {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}


/* Psalms Page Styles */
.psalms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.psalm-month-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.psalm-month-card:hover {
    transform: translateY(-10px);
}

.psalm-month-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 40px;
    text-align: center;
    position: relative;
}

.psalm-month-icon i {
    font-size: 48px;
    color: #fff;
}

.month-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.psalm-month-content {
    padding: 25px;
    text-align: center;
}

.psalm-month-content h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.psalm-month-content p {
    color: #666;
    margin-bottom: 20px;
}

.psalm-detail {
    max-width: 900px;
    margin: 0 auto;
}

.psalm-content-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.psalm-content-box h2 {
    color: var(--secondary-color);
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
}

.psalm-content-box h3 {
    color: var(--accent-color);
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.psalm-number {
    text-align: center;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 30px;
}

.psalm-text {
    line-height: 2;
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 30px;
    padding: 30px;
    background: var(--light-color);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.psalm-audio {
    margin: 30px 0;
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
}

.psalm-audio h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.psalm-download {
    text-align: center;
    margin-top: 30px;
}

.psalms-intro {
    margin-bottom: 40px;
}


/* About Page Tabs */
.about-tabs .btn {
    padding: 12px 25px;
    margin: 0 5px;
}

.about-tabs .btn.active {
    background: var(--secondary-color);
    color: #fff;
}

.page-content {
    line-height: 1.8;
}

.page-content img {
    max-width: 100%;
    height: auto;
}

.page-content h3 {
    color: var(--secondary-color);
    margin: 30px 0 15px;
}

.page-content p {
    margin-bottom: 15px;
}


/* Amharic Registration Form */
.amharic-form {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.page-header h2 {
    font-family: 'Nyala', 'Ebrima', sans-serif;
    color: var(--secondary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.amharic-form .form-group label {
    font-family: 'Nyala', 'Ebrima', sans-serif;
    font-size: 16px;
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.amharic-form input,
.amharic-form select,
.amharic-form textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fafafa;
}

.amharic-form input:focus,
.amharic-form select:focus,
.amharic-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(230, 201, 142, 0.1);
}

.amharic-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-family: 'Nyala', 'Ebrima', sans-serif;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-submit:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

.register-form {
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .amharic-form {
        padding: 25px;
    }
}


/* Hymns Page Layout */
.hymns-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    min-height: 500px;
}

.hymns-sidebar {
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.hymns-sidebar h3 {
    font-family: 'Nyala', 'Ebrima', sans-serif;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}

.months-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.months-list li {
    margin-bottom: 5px;
}

.month-link {
    display: block;
    padding: 12px 15px;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-family: 'Nyala', 'Ebrima', sans-serif;
}

.month-link:hover {
    background: var(--light-color);
    padding-left: 20px;
}

.month-link.active {
    background: var(--primary-color);
    color: var(--dark-color);
    font-weight: bold;
}

.hymns-main-content {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-height: 500px;
}

.hymns-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.hymns-header h2 {
    font-family: 'Nyala', 'Ebrima', sans-serif;
    color: var(--secondary-color);
    font-size: 32px;
    margin-bottom: 10px;
}

.hymns-header p {
    font-family: 'Nyala', 'Ebrima', sans-serif;
    color: #666;
    font-size: 18px;
}

.hymns-welcome {
    text-align: center;
    padding: 100px 20px;
}

.hymns-welcome h2 {
    font-family: 'Nyala', 'Ebrima', sans-serif;
    color: var(--secondary-color);
    font-size: 36px;
    margin-bottom: 20px;
}

.hymns-welcome p {
    font-family: 'Nyala', 'Ebrima', sans-serif;
    color: #666;
    font-size: 20px;
}

.no-hymns {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-family: 'Nyala', 'Ebrima', sans-serif;
    font-size: 18px;
}

@media (max-width: 768px) {
    .hymns-layout {
        grid-template-columns: 1fr;
    }
    
    .hymns-sidebar {
        position: static;
    }
}


/* Gallery Categories Grid */
.gallery-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-card a {
    text-decoration: none;
    color: inherit;
}

.category-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.category-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-placeholder i {
    font-size: 80px;
    color: #fff;
}

.category-info {
    padding: 20px;
    text-align: center;
}

.category-info h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.category-info p {
    color: #666;
}


/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(230, 201, 142, 0.8);
    color: #333;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    color: #fff;
    font-size: 18px;
    margin-top: 15px;
    text-align: center;
}

.gallery-item {
    cursor: pointer;
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        font-size: 40px;
        padding: 10px;
    }
    
    .lightbox-close {
        font-size: 40px;
        top: 10px;
        right: 20px;
    }
}


/* Education Categories with Images */
.edu-category-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.edu-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.edu-category:hover .edu-category-image img {
    transform: scale(1.1);
}

.edu-category-content {
    padding: 30px;
}

.edu-subtitle {
    font-family: 'Nyala', 'Ebrima', sans-serif;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.edu-category h3 {
    font-family: 'Nyala', 'Ebrima', sans-serif;
    font-size: 24px;
}

.edu-category p {
    font-family: 'Nyala', 'Ebrima', sans-serif;
}

/* Events Styles */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.event-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.event-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    padding: 10px;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.02);
}

.event-date-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(102, 126, 234, 0.95);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.event-date-overlay .day {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.event-date-overlay .month {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

.event-date-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-date-badge .day {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.event-date-badge .month {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.event-date-badge .year {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 5px;
}

.event-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-content h3 {
    color: #2d3748;
    margin: 0 0 15px 0;
    font-size: 22px;
}

.event-location {
    color: #718096;
    margin: 0 0 15px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-location i {
    color: #667eea;
}

.event-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.event-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* Videos Grid Styles */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-card:hover .video-play-overlay {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-overlay i {
    color: #fff;
    font-size: 32px;
}

.video-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    color: #2d3748;
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.video-description {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.video-category,
.video-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #718096;
    font-size: 13px;
}

.video-category i,
.video-date i {
    color: #667eea;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 80px;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #2d3748;
    margin-bottom: 10px;
}

.empty-state p {
    color: #718096;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

/* Stories Grid Styles */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.story-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.story-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f7fafc;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.story-date,
.story-tags {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #718096;
    font-size: 13px;
}

.story-date i,
.story-tags i {
    color: #667eea;
}

.story-content h3 {
    color: #2d3748;
    margin: 0 0 15px 0;
    font-size: 20px;
    line-height: 1.4;
}

.story-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.story-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #667eea;
    color: #fff;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: #f7fafc;
    border-color: #667eea;
    color: #667eea;
}

.pagination-number.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

.pagination-dots {
    color: #cbd5e0;
    padding: 0 5px;
}

@media (max-width: 768px) {
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Single Article View */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.back-link:hover {
    gap: 12px;
}

.article-single {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-header {
    padding: 40px 40px 20px;
    border-bottom: 2px solid #e2e8f0;
}

.article-header h1 {
    color: #2d3748;
    margin: 0 0 20px 0;
    font-size: 32px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.article-date,
.article-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
    font-size: 14px;
}

.article-date i,
.article-tags i {
    color: #667eea;
}

.article-content {
    padding: 40px;
    color: #2d3748;
    font-size: 16px;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

.article-content h3 {
    color: #667eea;
    margin: 30px 0 15px;
}

.article-content::after {
    content: "";
    display: table;
    clear: both;
}

.article-footer {
    padding: 20px 40px 40px;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .article-featured-image {
        height: 250px;
    }
    
    .article-header {
        padding: 25px 20px 15px;
    }
    
    .article-header h1 {
        font-size: 24px;
    }
    
    .article-content {
        padding: 25px 20px;
        font-size: 15px;
    }
    
    .article-footer {
        padding: 15px 20px 25px;
    }
}

/* Education/Subjects Styles */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.subject-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.subject-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f7fafc;
}

.subject-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.subject-card:hover .subject-image img {
    transform: scale(1.05);
}

.subject-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.subject-card-content h3 {
    color: #2d3748;
    margin: 0 0 15px 0;
    font-size: 20px;
    line-height: 1.4;
}

.subject-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.subject-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.subject-has-pdf {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e53e3e;
    font-size: 13px;
    font-weight: 600;
}

.subject-has-pdf i {
    font-size: 16px;
}

.subject-card-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Single Subject View */
.subject-single {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.subject-cover-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.subject-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subject-header {
    padding: 40px 40px 20px;
    border-bottom: 2px solid #e2e8f0;
}

.subject-header h1 {
    color: #2d3748;
    margin: 0 0 15px 0;
    font-size: 32px;
    line-height: 1.3;
}

.subject-description {
    color: #718096;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.subject-pdf-download {
    margin-top: 20px;
}

.subject-content {
    padding: 40px;
    color: #2d3748;
    font-size: 16px;
    line-height: 1.8;
}

.subject-content p {
    margin-bottom: 20px;
}

.subject-content img {
    max-width: 100%;
    height: auto;
}

.subject-content h3 {
    color: #667eea;
    margin: 30px 0 15px;
}

.subject-content::after {
    content: "";
    display: table;
    clear: both;
}

.subject-footer {
    padding: 20px 40px 40px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .subjects-grid {
        grid-template-columns: 1fr;
    }
    
    .subject-cover-image {
        height: 250px;
    }
    
    .subject-header {
        padding: 25px 20px 15px;
    }
    
    .subject-header h1 {
        font-size: 24px;
    }
    
    .subject-content {
        padding: 25px 20px;
        font-size: 15px;
    }
    
    .subject-footer {
        padding: 15px 20px 25px;
    }
}

/* Subject Placeholder */
.subject-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
}

.subject-placeholder i {
    font-size: 60px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.subject-placeholder span {
    font-size: 48px;
    font-weight: 700;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:hover {
    color: var(--secondary-color);
}

/* Show navigation by default on desktop */
.header-main nav {
    display: block !important;
}

@media (max-width: 992px) {
    .header-main .container {
        flex-wrap: wrap;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hide navigation by default on mobile */
    .header-main nav:not(.show) {
        display: none !important;
    }
    
    /* Full screen overlay menu when open */
    .header-main nav.show {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(255, 255, 255, 0.99) !important;
        backdrop-filter: blur(10px);
        z-index: 9999 !important;
        overflow-y: auto !important;
        padding-top: 80px !important;
        animation: slideIn 0.3s ease;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .header-main nav ul {
        flex-direction: column;
        padding: 20px 0;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .header-main nav ul li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .header-main nav ul li:last-child {
        border-bottom: none;
    }
    
    .header-main nav ul li a {
        display: block;
        padding: 18px 30px;
        font-size: 18px;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .header-main nav ul li a:hover {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        padding-left: 40px;
    }
    
    /* Close button for mobile menu */
    .header-main nav.show::before {
        content: '\f00d';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: fixed;
        top: 20px;
        right: 20px;
        font-size: 30px;
        color: var(--primary-color);
        cursor: pointer;
        z-index: 10000;
        width: 50px;
        heckground: white;
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 10px 0;
    }
    
    .header-top .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .logo img {
        width: 50px;
        height: 50px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .logo span {
        font-size: 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    background: #f7fafc;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 10px;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0;
    font-size: 16px;
}

/* Gallery Categories */
.gallery-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f7fafc;
    padding: 10px;
}

.category-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 60px;
}

.category-info {
    padding: 20px;
}

.category-info h3 {
    margin: 0 0 10px 0;
    color: #2d3748;
}

.category-info p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #667eea;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #667eea;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .gallery-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}


/* Gallery Styles - Full Photo Display */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    background: #f7fafc;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    padding: 10px;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0;
    font-size: 16px;
}

/* Gallery Categories Grid */
.gallery-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card img {
    width: 100%;
    height: 250px;
    object-fit: contain !important;
    background: #f7fafc;
    padding: 15px;
    display: block;
}

.category-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 60px;
}

.category-info {
    padding: 20px;
    background: #fff;
}

.category-info h3 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 18px;
}

.category-info p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

/* Lightbox for Full Image View */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain !important;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #667eea;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #667eea;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .gallery-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}


/* Horizontal Scrolling Events - Horizontal Rectangle Cards */
.events-scroll-container {
    position: relative;
    margin-top: 30px;
    overflow: hidden;
}

.events-horizontal-scroll {
    display: flex !important;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px 0 20px;
    -webkit-overflow-scrolling: touch;
}

.events-horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}

.events-horizontal-scroll::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.events-horizontal-scroll::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.event-mini-card {
    flex: 0 0 350px !important;
    width: 350px !important;
    height: 140px !important;
    background: #fff !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    cursor: pointer;
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    align-items: center !important;
}

.event-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15) !important;
}

.event-mini-date {
    flex-shrink: 0 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    padding: 15px 20px !important;
    border-radius: 10px !important;
    text-align: center !important;
    min-width: 80px !important;
    display: block !important;
}

.event-mini-date .day {
    display: block !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #fff !important;
}

.event-mini-date .month {
    display: block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    margin-top: 5px !important;
    color: #fff !important;
}

.event-mini-card h4 {
    margin: 0 0 10px 0 !important;
    font-size: 18px !important;
    color: #2d3748 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.event-mini-location {
    margin: 0 !important;
    color: #718096 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.event-mini-location i {
    color: #667eea !important;
    flex-shrink: 0 !important;
}

@media (max-width: 768px) {
    .event-mini-card {
        flex: 0 0 300px !important;
        width: 300px !important;
        height: 120px !important;
        padding: 15px !important;
        gap: 15px !important;
    }
    
    .event-mini-date {
        min-width: 70px !important;
        padding: 12px 15px !important;
    }
    
    .event-mini-date .day {
        font-size: 28px !important;
    }
    
    .event-mini-card h4 {
        font-size: 16px !important;
    }
}


/* Horizontal Scrolling Articles */
.articles-scroll-container {
    position: relative;
    margin-top: 30px;
    overflow: hidden;
}

.articles-horizontal-scroll {
    display: flex !important;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px 0 20px;
    -webkit-overflow-scrolling: touch;
}

.articles-horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}

.articles-horizontal-scroll::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.articles-horizontal-scroll::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.article-mini-card {
    flex: 0 0 320px !important;
    width: 320px !important;
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    cursor: pointer;
}

.article-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15) !important;
}

.article-mini-image {
    width: 100% !important;
    height: 180px !important;
    overflow: hidden !important;
    background: #f7fafc !important;
}

.article-mini-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.article-mini-card:hover .article-mini-image img {
    transform: scale(1.1);
}

.article-mini-content {
    padding: 20px !important;
}

.article-mini-meta {
    color: #718096 !important;
    font-size: 13px !important;
    margin-bottom: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.article-mini-meta i {
    color: #667eea !important;
}

.article-mini-content h4 {
    margin: 0 0 15px 0 !important;
    font-size: 18px !important;
    color: #2d3748 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.article-read-more {
    color: #667eea !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: gap 0.3s ease !important;
}

.article-read-more:hover {
    gap: 10px !important;
}

.article-read-more i {
    font-size: 12px !important;
}

@media (max-width: 768px) {
    .article-mini-card {
        flex: 0 0 280px !important;
        width: 280px !important;
    }
    
    .article-mini-image {
        height: 160px !important;
    }
    
    .article-mini-content {
        padding: 15px !important;
    }
    
    .article-mini-content h4 {
        font-size: 16px !important;
    }
}


/* Footer Developer Section */
.footer-developer {
    margin-top: 10px !important;
    font-size: 14px !important;
    opacity: 0.9;
}

.footer-developer a:hover {
    text-decoration: underline !important;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #667eea;
    transform: translateY(-3px);
}


/* ============================================
   MOBILE RESPONSIVE GALLERY STYLES
   ============================================ */

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .gallery-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Gallery Grid - 2 columns on mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-top: 20px !important;
    }
    
    .gallery-item {
        border-radius: 8px !important;
        aspect-ratio: 1 !important;
    }
    
    .gallery-item img {
        padding: 5px !important;
    }
    
    .gallery-overlay {
        padding: 10px !important;
        font-size: 12px !important;
    }
    
    .gallery-overlay h4 {
        font-size: 13px !important;
    }
    
    /* Category Cards - 1 column on mobile */
    .gallery-categories-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 20px !important;
    }
    
    .category-card {
        border-radius: 10px !important;
    }
    
    .category-card img,
    .category-placeholder {
        height: 200px !important;
    }
    
    .category-info {
        padding: 15px !important;
    }
    
    .category-info h3 {
        font-size: 18px !important;
        margin-bottom: 5px !important;
    }
    
    .category-info p {
        font-size: 14px !important;
    }
    
    /* Lightbox mobile optimization */
    .lightbox {
        padding: 10px !important;
    }
    
    .lightbox-content {
        max-width: 95% !important;
        max-height: 90vh !important;
    }
    
    .lightbox-content img {
        max-height: 70vh !important;
        object-fit: contain !important;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 24px !important;
        padding: 8px 12px !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .lightbox-close {
        top: 10px !important;
        right: 10px !important;
        font-size: 28px !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .lightbox-counter {
        font-size: 14px !important;
        padding: 8px 15px !important;
    }
    
    /* Page header mobile */
    .page-header h2 {
        font-size: 28px !important;
    }
    
    .page-header p {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    /* Small mobile - keep 2 columns but smaller gaps */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .gallery-item {
        border-radius: 6px !important;
    }
    
    .gallery-categories-grid {
        gap: 15px !important;
    }
    
    .category-card img,
    .category-placeholder {
        height: 180px !important;
    }
    
    .category-placeholder {
        font-size: 40px !important;
    }
    
    .category-info h3 {
        font-size: 16px !important;
    }
    
    .category-info p {
        font-size: 13px !important;
    }
    
    /* Back button mobile */
    .btn {
        font-size: 14px !important;
        padding: 10px 20px !important;
    }
}

/* ============================================
   EVENT COVER PAGE STYLES (Like Gallery)
   ============================================ */

.events-grid-cover {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.event-cover-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-cover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.event-cover-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-cover-image {
    position: relative;
    width: 100%;
    height: 250px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    padding: 15px;
    transition: transform 0.3s ease;
}

.event-cover-card:hover .event-cover-image img {
    transform: scale(1.05);
}

.event-cover-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
}

.event-cover-placeholder i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.event-date-large {
    text-align: center;
}

.event-date-large .day {
    display: block;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
}

.event-date-large .month {
    display: block;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

.event-cover-info {
    padding: 20px;
    background: #fff;
}

.event-cover-info h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #2d3748;
    font-weight: 600;
}

.event-cover-info p {
    margin: 0 0 15px 0;
    color: #718096;
    font-size: 14px;
}

.event-cover-info p i {
    margin-right: 5px;
    color: var(--primary-color);
}

.event-view-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.event-cover-card:hover .event-view-link {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.event-view-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.event-cover-card:hover .event-view-link i {
    transform: translateX(5px);
}

/* Event Detail Page */
.event-detail-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.event-detail-image {
    width: 100%;
    height: 400px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    padding: 20px;
}

.event-detail-content {
    padding: 40px;
}

.event-detail-content h2 {
    margin: 0 0 25px 0;
    font-size: 32px;
    color: #2d3748;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    font-size: 16px;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 20px;
}

.meta-item strong {
    color: #2d3748;
}

.event-detail-description {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 30px;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .events-grid-cover {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-cover-image,
    .event-cover-placeholder {
        height: 220px;
    }
    
    .event-detail-image {
        height: 300px;
    }
    
    .event-detail-content {
        padding: 25px;
    }
    
    .event-detail-content h2 {
        font-size: 24px;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-lg {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .event-cover-image,
    .event-cover-placeholder {
        height: 200px;
    }
    
    .event-date-large .day {
        font-size: 56px;
    }
    
    .event-date-large .month {
        font-size: 18px;
    }
    
    .event-detail-content {
        padding: 20px;
    }
}
