/* Countdown Pages Styling - Native Clean Flat Layout */

:root {
    --primary-color: #26c1ea;
    --primary-hover: #1ba0c4;
    --bg-light: #f9f9f9;
    --border-color: #eee;
    --text-primary: #333333;
    --text-secondary: #666666;
    --transition-speed: 0.25s;
}

/* Base Layout */
.countdown-section {
    padding: 30px 0;
    font-family: 'Droid Arabic Kufi', 'Open Sans', sans-serif;
    color: var(--text-primary);
    direction: rtl;
}

/* Flat Card Wrapper matching the site's layout */
.glass-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 25px;
    transition: border-color var(--transition-speed) ease;
}

.glass-card:hover {
    border-color: #ddd;
}

/* Table Times alignment overrides */
.table-times {
    margin-bottom: 0 !important;
}

.tw-time.active {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

.tw-time .tw-clock {
    color: inherit !important;
    font-family: Orbitron, sans-serif !important;
}

/* Sidebar List Styling */
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 10px;
}

.sidebar-list a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
}

.sidebar-list a:hover {
    background: var(--bg-light);
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
}

.sidebar-list a i {
    margin-left: 10px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Future Dates Table */
.countdown-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.countdown-table th, .countdown-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.countdown-table th {
    background: var(--bg-light);
    color: var(--text-primary);
    font-weight: bold;
}

.countdown-table tr:hover td {
    background: #fafafa;
}

.badge-year {
    background: rgba(38, 193, 234, 0.1);
    color: var(--primary-color);
    padding: 3px 10px;
    font-weight: bold;
    font-size: 0.85rem;
}

/* FAQ Accordion Styling */
.faq-container {
    margin-top: 20px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-header {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    background: #fafafa;
}

.faq-icon {
    font-size: 0.95rem;
    transition: transform var(--transition-speed) ease;
    color: var(--primary-color);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-content-inner {
    padding: 15px 20px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    background: #ffffff;
}

.faq-item.active .faq-content {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Content Formatting (inside article) */
.article-content {
    line-height: 1.8;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.article-content h2, .article-content h3 {
    color: var(--text-primary);
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: bold;
}

.article-content h2 {
    font-size: 1.4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-right: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content strong {
    color: var(--text-primary);
}

/* Index Grid Layout */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.countdown-grid-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}

.countdown-grid-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card-img-wrapper {
    height: 150px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.countdown-grid-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-body-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body-content h3 {
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-body-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.btn-card-action {
    display: inline-block;
    text-align: center;
    background: var(--primary-color);
    color: #ffffff !important;
    padding: 8px 15px;
    font-weight: bold;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background var(--transition-speed) ease;
}

.btn-card-action:hover {
    background: var(--primary-hover);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .glass-card {
        padding: 15px;
    }
}
