/* ==============================================================
   Urdu News Pro - Sections Stylesheet
   New Stilo-style sections:
     - Currency Ticker
     - Featured Slider
     - Numbered Top News
     - Latest Circular Grid
     - Mobile App Banner
     - Telegram Widget
     - Video Section
     - Photo Gallery
     - Important Links
     - Social Media Section
     - Cookie Consent Bar
     - Back to Top
     - Sidebar Social Block
     - Custom Widgets (gold rates, prayer times, weather)
   ============================================================== */

/* ---------- Currency Ticker ---------- */
.currency-ticker {
    background: linear-gradient(90deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
    border-top: 2px solid #b8001f;
    border-bottom: 1px solid #333;
    position: relative;
    display: flex;
    align-items: center;
}

.currency-ticker-label {
    background: #b8001f;
    color: #fff;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 4px 0 8px rgba(0,0,0,0.3);
}

.ticker-icon { font-size: 16px; }

.currency-ticker-wrap {
    flex: 1;
    overflow: hidden;
    padding: 0 20px;
    position: relative;
}

.currency-ticker-track {
    display: flex;
    gap: 30px;
    animation: ticker-scroll 40s linear infinite;
    width: max-content;
}

.currency-ticker-wrap.is-paused .currency-ticker-track {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* In RTL, scroll direction is reversed naturally */
html[dir="rtl"] @keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.1);
}

.ticker-code {
    font-weight: 700;
    color: #ffcb05;
    font-size: 13px;
}

.ticker-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.ticker-price {
    color: #ddd;
    font-size: 13px;
}

.ticker-change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}

.ticker-up .ticker-change {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.ticker-down .ticker-change {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

@media (max-width: 768px) {
    .currency-ticker-label {
        padding: 6px 12px;
        font-size: 12px;
    }
    .currency-ticker-wrap { padding: 0 10px; }
    .ticker-item { padding: 4px 10px; gap: 6px; }
    .ticker-code, .ticker-name { font-size: 12px; }
    .ticker-price, .ticker-change { font-size: 11px; }
}

/* ---------- Featured Slider ---------- */
.slider-section {
    margin-bottom: 40px;
}

.slider-container {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.slider-track {
    position: relative;
    width: 100%;
    height: 500px;
}

.slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.slider-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.slider-image {
    position: absolute;
    inset: 0;
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-image-placeholder {
    background: linear-gradient(135deg, #b8001f 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    color: #fff;
    pointer-events: none;
}

.slider-overlay-inner {
    max-width: 700px;
}

.slider-cat {
    display: inline-block;
    background: #b8001f;
    color: #fff !important;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    text-decoration: none;
    margin-bottom: 10px;
    pointer-events: auto;
}

.slider-title {
    margin: 8px 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.4;
}

.slider-title a {
    color: #fff;
    text-decoration: none;
}

.slider-title a:hover {
    color: #ffcb05;
}

.slider-meta {
    color: #ddd;
    font-size: 13px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.slider-meta .meta-sep { color: rgba(255,255,255,0.5); }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 5;
    line-height: 1;
}

.slider-arrow:hover {
    background: #b8001f;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-prev { right: 20px; }
.slider-arrow-next { left: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.slider-dot.is-active {
    background: #b8001f;
    border-color: #fff;
    width: 28px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .slider-track { height: 320px; }
    .slider-overlay { padding: 18px; }
    .slider-title { font-size: 18px; }
    .slider-cat { padding: 3px 10px; font-size: 11px; }
    .slider-arrow { width: 38px; height: 38px; font-size: 20px; }
    .slider-arrow-prev { right: 10px; }
    .slider-arrow-next { left: 10px; }
    .slider-dots { bottom: 12px; }
}

/* ---------- Home Row with Sidebar (latest + sidebar) ---------- */
.home-row {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.home-row-main { flex: 1; min-width: 0; }
.home-row-sidebar { width: 320px; flex-shrink: 0; }

@media (max-width: 992px) {
    .home-row { flex-direction: column; }
    .home-row-sidebar { width: 100%; }
}

/* ---------- Numbered Top News ---------- */
.numbered-news-section {
    margin-bottom: 50px;
}

.numbered-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.numbered-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s, transform 0.3s;
}

.numbered-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.numbered-link {
    display: block;
    color: inherit;
    text-decoration: none;
    position: relative;
}

.numbered-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.numbered-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.numbered-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 48px;
    height: 48px;
    background: #b8001f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(184, 0, 31, 0.4);
    border: 3px solid #fff;
    z-index: 2;
}

.numbered-body {
    padding: 15px;
}

.numbered-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: #1a1a1a;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 65px;
}

.numbered-card:hover .numbered-title {
    color: #b8001f;
}

.numbered-date {
    color: #888;
    font-size: 12px;
}

@media (max-width: 992px) {
    .numbered-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .numbered-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .numbered-title { font-size: 13px; min-height: 55px; }
    .numbered-badge { width: 36px; height: 36px; font-size: 16px; }
}

/* ---------- Latest Circular Grid ---------- */
.latest-circular-section {
    margin-bottom: 50px;
}

.latest-circular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.circular-card {
    background: #fff;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}

.circular-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.circular-link {
    display: flex;
    gap: 15px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.circular-thumb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #e0e0e0;
}

.circular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.circular-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #b8001f, #1a1a1a);
}

.circular-body {
    flex: 1;
    min-width: 0;
}

.circular-title {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.circular-card:hover .circular-title {
    color: #b8001f;
}

.circular-date {
    color: #888;
    font-size: 12px;
}

@media (max-width: 600px) {
    .latest-circular-grid { grid-template-columns: 1fr; gap: 12px; }
    .circular-thumb { width: 60px; height: 60px; }
    .circular-title { font-size: 14px; }
}

/* ---------- Mobile App Banner ---------- */
.mobile-app-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
}

.app-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-text { flex: 1; }

.app-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
}

.app-subtitle {
    margin: 0 0 12px;
    color: #ddd;
    font-size: 13px;
}

.app-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.2s;
}

.app-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.app-btn-icon { font-size: 16px; }

.app-btn-text {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.2;
}

.app-btn-text small { font-size: 10px; opacity: 0.8; }
.app-btn-text strong { font-size: 13px; }

.app-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

@media (max-width: 600px) {
    .app-image { display: none; }
    .app-content { gap: 0; }
}

/* ---------- Telegram Widget ---------- */
.telegram-widget {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.tg-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.tg-icon svg {
    color: #fff;
    flex-shrink: 0;
}

.tg-titles { display: flex; flex-direction: column; }

.tg-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.tg-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
}

.tg-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.tg-stat {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 8px 6px;
    border-radius: 4px;
}

.tg-stat-value {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.tg-stat-label {
    display: block;
    color: rgba(255,255,255,0.85);
    font-size: 11px;
    margin-top: 2px;
}

.tg-join-btn {
    display: block;
    text-align: center;
    background: #fff;
    color: #0088cc !important;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
}

.tg-join-btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

/* ---------- Video Section ---------- */
.video-section {
    margin-bottom: 50px;
}

.video-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.video-main {
    min-width: 0;
}

.video-card-main {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.video-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #1a1a1a;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.video-card-main:hover .video-thumb img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(184, 0, 31, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    padding-right: 5px;
    transition: all 0.2s;
}

.video-card-main:hover .video-play-btn {
    background: #b8001f;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.video-card-body {
    padding: 18px;
}

.video-card-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.5;
    color: #1a1a1a;
}

.video-card-main:hover .video-card-title {
    color: #b8001f;
}

.video-card-date {
    color: #888;
    font-size: 12px;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-card-small {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.video-thumb-small {
    position: relative;
    width: 130px;
    height: 80px;
    overflow: hidden;
    background: #1a1a1a;
    flex-shrink: 0;
}

.video-card-small .video-card-link {
    display: flex;
    align-items: stretch;
}

.video-thumb-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(184, 0, 31, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.video-card-body-small {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-card-title-small {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #1a1a1a;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-small:hover .video-card-title-small {
    color: #b8001f;
}

.video-card-body-small .video-card-date { font-size: 11px; }

@media (max-width: 768px) {
    .video-grid { grid-template-columns: 1fr; }
}

/* ---------- Photo Gallery Section ---------- */
.photo-gallery-section {
    margin-bottom: 50px;
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.gallery-item {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.gallery-link {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 10px;
}

.gallery-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
    border-radius: 4px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-num {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(184, 0, 31, 0.95);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.gallery-title {
    margin: 10px 0 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.gallery-item:hover .gallery-title {
    color: #b8001f;
}

.gallery-date {
    color: #888;
    font-size: 11px;
}

@media (max-width: 992px) {
    .photo-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .photo-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ---------- Important Links Section ---------- */
.important-links-section {
    margin-bottom: 50px;
}

.important-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.important-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.important-link:hover {
    background: #fdf6f6;
}

.important-link-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #b8001f, #7a0015);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
    box-shadow: 0 2px 6px rgba(184, 0, 31, 0.25);
}

.important-link-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.important-link-text {
    flex: 1;
    min-width: 0;
}

.important-link-title {
    display: block;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.important-link:hover .important-link-title {
    color: #b8001f;
}

.important-link-desc {
    display: block;
    color: #888;
    font-size: 11px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .important-links-grid { grid-template-columns: repeat(2, 1fr); padding: 15px; gap: 10px; }
    .important-link { padding: 8px; gap: 8px; }
    .important-link-icon { width: 40px; height: 40px; font-size: 18px; }
    .important-link-title { font-size: 12px; }
}

@media (max-width: 480px) {
    .important-links-grid { grid-template-columns: 1fr; }
}

/* ---------- Social Media Section ---------- */
.social-media-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.social-col {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.social-col-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.social-col-facebook .social-col-header {
    background: linear-gradient(135deg, #1877f2, #0a4fb3);
}

.social-col-youtube .social-col-header {
    background: linear-gradient(135deg, #ff0000, #b30000);
}

.social-col-instagram .social-col-header {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon-large {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.social-col-header h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

.social-col-body {
    padding: 15px;
}

.social-feed {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.social-feed-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 0;
}

.social-feed-item:last-child { border-bottom: 0; }

.social-feed-link {
    display: flex;
    gap: 10px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.social-feed-thumb {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.social-feed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-feed-text {
    flex: 1;
    min-width: 0;
}

.social-feed-title {
    display: block;
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 3px;
}

.social-feed-item:hover .social-feed-title { color: #b8001f; }

.social-feed-meta {
    color: #888;
    font-size: 11px;
}

.social-empty {
    color: #888;
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
}

.social-follow-btn {
    display: block;
    text-align: center;
    background: #1a1a1a;
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.social-follow-btn:hover {
    background: #b8001f;
}

.social-yt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.social-yt-item {
    text-decoration: none;
    color: inherit;
}

.social-yt-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 3px;
    background: #1a1a1a;
}

.social-yt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 0, 0, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.social-yt-title {
    display: block;
    font-size: 11px;
    color: #1a1a1a;
    line-height: 1.4;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.social-ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}

.social-ig-item {
    display: block;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 3px;
    background: #f0f0f0;
}

.social-ig-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.social-ig-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .social-media-section { grid-template-columns: 1fr; }
}

/* ---------- Sidebar Social Block ---------- */
.sidebar-social-block {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.sidebar-social-heading {
    font-size: 18px;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-social-heading::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: #b8001f;
    border-radius: 2px;
}

.sidebar-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.sidebar-social-btn:hover {
    transform: translateX(-4px);
    filter: brightness(1.1);
}

.sidebar-social-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.sidebar-social-fb { background: #1877f2; }
.sidebar-social-tw { background: #1da1f2; }
.sidebar-social-yt { background: #ff0000; }
.sidebar-social-ig { background: linear-gradient(135deg, #f09433, #dc2743, #bc1888); }
.sidebar-social-wa { background: #25d366; }

html[dir="rtl"] .sidebar-social-btn:hover {
    transform: translateX(4px);
}

/* ---------- Cookie Consent Bar ---------- */
.cookie-consent-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.97);
    color: #fff;
    padding: 16px 0;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-consent-bar.is-visible {
    transform: translateY(0);
}

.cookie-consent-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-link {
    color: #ffcb05;
    text-decoration: underline;
    margin-right: 8px;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.cookie-accept {
    background: #b8001f;
    border-color: #b8001f;
}

.cookie-accept:hover {
    background: #7a0015;
    border-color: #7a0015;
}

.cookie-decline:hover {
    background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .cookie-consent-inner { flex-direction: column; gap: 12px; text-align: center; }
    .cookie-message { font-size: 13px; }
}

/* ---------- Back to Top Button ---------- */
.back-to-top-btn {
    position: fixed;
    bottom: 90px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: #fbb800;
    color: #1a1a1a;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top-btn[hidden] {
    display: block !important;
    visibility: hidden;
    opacity: 0;
}

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

.back-to-top-btn:hover {
    background: #e0a400;
    transform: translateY(-3px);
}

.back-arrow {
    display: block;
    font-size: 22px;
    font-weight: bold;
}

html[dir="rtl"] .back-arrow {
    transform: scaleX(-1);
}

@media (max-width: 768px) {
    .back-to-top-btn { bottom: 80px; left: 15px; width: 42px; height: 42px; }
}

/* ---------- Custom Widgets: Gold Rates ---------- */
.gold-rates-widget {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gold-rate-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #fff8e1, #fff3c4);
    border-radius: 4px;
    border-right: 3px solid #b8001f;
    align-items: center;
    font-size: 13px;
}

.gold-rate-metal {
    color: #1a1a1a;
    font-weight: 600;
}

.gold-rate-price {
    color: #b8001f;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.gold-rate-unit {
    color: #888;
    font-size: 12px;
}

/* ---------- Custom Widgets: Prayer Times ---------- */
.prayer-times-widget {
    background: linear-gradient(135deg, #1a4d8c, #0d3a6b);
    color: #fff;
    border-radius: 6px;
    padding: 18px;
}

.prayer-city {
    text-align: center;
    color: #ffcb05;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.prayer-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prayer-row {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    align-items: center;
    font-size: 13px;
}

.prayer-icon { font-size: 18px; }
.prayer-name { color: #fff; font-weight: 600; }
.prayer-time { color: #ffcb05; font-weight: 700; font-family: monospace; }

/* ---------- Custom Widgets: Weather ---------- */
.weather-widget {
    background: linear-gradient(135deg, #4a90e2, #2c5aa0);
    color: #fff;
    border-radius: 6px;
    padding: 18px;
}

.weather-now {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.weather-icon {
    display: block;
    font-size: 50px;
    margin-bottom: 5px;
}

.weather-temp {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.weather-city {
    display: block;
    font-size: 14px;
    color: #ffcb05;
}

.weather-forecast {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.weather-day {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    font-size: 13px;
}

/* ---------- Custom Widget: App ---------- */
.app-widget {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #fff;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}

.app-widget-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}

.app-widget-title {
    margin: 0 0 6px;
    color: #fff;
    font-size: 16px;
}

.app-widget-desc {
    margin: 0 0 12px;
    color: #ddd;
    font-size: 12px;
}

.app-widget-btn {
    display: inline-block;
    background: #fff;
    color: #1a1a1a !important;
    padding: 6px 14px;
    margin: 3px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

/* ---------- Custom Widget: Telegram ---------- */
.tg-widget {
    background: linear-gradient(135deg, #0088cc, #006699);
    color: #fff;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}

.tg-widget-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}

.tg-widget-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 16px;
}

.tg-widget-members {
    color: #ffcb05;
    margin-bottom: 12px;
    font-size: 13px;
}

.tg-widget-btn {
    display: inline-block;
    background: #fff;
    color: #0088cc !important;
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

/* ---------- Sidebar: Latest Posts (Custom Widget) ---------- */
.unp-latest-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.unp-latest-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
}

.unp-latest-item:last-child {
    border-bottom: 0;
}

.unp-latest-link {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: inherit;
    text-decoration: none;
}

.unp-latest-thumb {
    width: 70px;
    height: 50px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

.unp-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.unp-latest-text {
    flex: 1;
    min-width: 0;
}

.unp-latest-cat {
    display: inline-block;
    background: #b8001f;
    color: #fff;
    padding: 1px 8px;
    font-size: 10px;
    border-radius: 2px;
    margin-bottom: 4px;
    font-weight: 600;
}

.unp-latest-title {
    display: block;
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 3px;
}

.unp-latest-item:hover .unp-latest-title {
    color: #b8001f;
}

.unp-latest-date {
    color: #888;
    font-size: 11px;
}

/* ---------- Latest Posts Widget Title ---------- */
.widget .widget-title span {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- Footer 4-column responsive ---------- */
@media (max-width: 992px) {
    .footer-widgets .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-widgets .container {
        grid-template-columns: 1fr;
    }
}