/* =========================================
   1. BASE & TYPOGRAPHY
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    height: 100vh;
    background-color: #f8f9fa;
}

/* =========================================
   2. SIDEBAR NAVIGATION
   ========================================= */
.sidebar {
    width: 260px;
    background-color: #1a5c9a;
    color: white;
    display: flex;
    flex-direction: column;
}

.logo-area {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    list-style: none;
    padding: 20px 0;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    font-size: 15px;
}

.nav-links li a:hover, 
.nav-links li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid white;
}

.nav-links li a i {
    width: 30px;
}

/* =========================================
   3. MAIN CONTENT AREA & HEADER
   ========================================= */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    gap: 10px;
    height: 80px;
    align-items: center;
}

.lang-btn {
    padding: 8px 15px;
    border: none;
    background-color: #e2e6ea;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
}

.lang-btn.active-lang {
    background-color: #d1d5db;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 20px 20px 40px;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

/* =========================================
   4. BROADCASTS & TEACHINGS CARDS
   ========================================= */
.featured-media {
    margin-bottom: 30px;
    background-color: #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.broadcast-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.play-btn {
    background-color: #c92a2a;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.titles h3 {
    font-size: 16px;
    color: #333;
}

.card-subtitle {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
}

.card-actions {
    display: flex;
}

.card-actions button, 
.card-actions .action-link { 
    flex: 1; 
    padding: 15px; 
    border: none; 
    background: none; 
    cursor: pointer; 
    color: #666; 
    font-weight: bold; 
    font-size: 14px; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
}

.card-actions .action-link,
.card-actions button:first-child {
    border-right: 1px solid #f0f0f0;
}

.card-actions button:hover, 
.card-actions .action-link:hover { 
    background-color: #f8f9fa; 
}

/* =========================================
   5. SEARCH PAGE
   ========================================= */
.search-container {
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-form {
    width: 100%;
    max-width: 650px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a0a0;
    font-size: 18px;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    outline: none;
    color: #333;
}

.search-input::placeholder {
    color: #a0a0a0;
}

.search-input:focus {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* =========================================
   6. TEACHINGS FILTERS (Dropdowns)
   ========================================= */
.filter-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-dropdown {
    padding: 12px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    outline: none;
    background-color: white;
    cursor: pointer;
    appearance: auto; 
}

.filter-category { flex: 1; }
.filter-topic { flex: 2; }

/* =========================================
   7. GALLERY PAGE
   ========================================= */
.gallery-container { padding: 20px 0; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px; 
}
.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out; 
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img {
    width: 100%;
    height: 180px; 
    object-fit: cover; 
    display: block;
}
.image-caption {
    padding: 10px;
    font-size: 13px;
    color: #555;
    text-align: center;
    border-top: 1px solid #eee;
}

/* =========================================
   8. ARCHIVES PAGE
   ========================================= */
.archive-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.filter-submit-btn {
    background-color: #3b4248; 
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.2s;
}
.filter-submit-btn:hover { background-color: #2c3136; }

/* =========================================
   9. MSEDV STORY PAGE
   ========================================= */
.story-container { max-width: 850px; margin: 0 auto; }
.story-text { line-height: 1.7; color: #333; margin-bottom: 30px; font-size: 15px; }
.story-image-box {
    background-color: #fcfcfc;
    padding: 50px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* =========================================
   10. CONTACTS PAGE
   ========================================= */
.contact-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    background-color: #f8f9fa;
}

.contact-text {
    flex: 1;
    margin-left: 20px;
    font-weight: 500;
    font-size: 15px;
}

.contact-arrow {
    color: #ccc;
    font-size: 14px;
}