/* ───────────── Elegant Classic Village Theme (Red & Grey) ───────────── */
/* Based on Front Page "Sports System" Pattern */

:root {
    /* وہی فرنٹ پیج والی کلر اسکیم */
    --color-main: #E60000;       /* Red */
    --color-accent: #CCCCCC;     /* Grey */
    --color-border: #eee;
    --color-bg: #f9f9f9;         /* ہلکا سا گرے بیک گراؤنڈ تاکہ کارڈز اٹھ کر نظر آئیں */
    --card-bg: #ffffff;
    
    /* Shadows & Radius */
    --card-radius: 12px;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-primary: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
}

/* ───────────── Main Layout ───────────── */
.village-elegant-layout {
    max-width: 1100px; /* فرنٹ پیج کی طرح */
    margin: 40px auto;
    padding: 0 15px;
    font-family: var(--font-primary);
    direction: rtl;
    text-align: right;
    background-color: var(--color-bg);
    color: #333;
}

/* ───────────── Header Style ───────────── */
.page-header-elegant {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    position: relative;
}

.village-title-red {
    color: var(--color-main);
    font-size: 3em;
    font-weight: 800;
    margin: 0 0 10px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}

.uc-info-grey {
    color: #666;
    font-size: 1.4em;
    font-weight: bold;
    border-top: 2px solid var(--color-accent);
    display: inline-block;
    padding-top: 5px;
}

/* ───────────── Grid Layout ───────────── */
.content-elegant-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-areas: 
        "info map"
        "news news"
        "social videos";
    gap: 25px;
    margin-bottom: 50px;
}

/* ───────────── Universal Card Style (The "Tile" Look) ───────────── */
/* یہ وہی کلاس ہے جو ہر سیکشن کو فرنٹ پیج جیسا بنائے گی */
.elegant-card {
    position: relative;
    background: var(--card-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--card-radius);
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

/* Top Red Border & Bottom Grey Border (Signature Look) */
.elegant-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: var(--color-main); /* Red Top */
    z-index: 1;
}

.elegant-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 6px;
    background: var(--color-accent); /* Grey Bottom */
    z-index: 1;
}

/* Hover Effect */
.elegant-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

/* ───────────── Headings inside Cards ───────────── */
.card-heading {
    color: var(--color-main);
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 1px dashed var(--color-accent);
    padding-bottom: 10px;
}

/* ───────────── Specific Sections ───────────── */

/* 1. Info Box */
.village-info-box { grid-area: info; }
.intro-text { font-size: 1.2em; line-height: 1.8; color: #444; }

/* 2. Map Box */
.map-box { 
    grid-area: map; 
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fffafa; /* ہلکا سا سرخ ٹنٹ */
}

/* Red Button Style */
.btn-elegant-red {
    display: inline-block;
    background: var(--color-main);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px; /* Slightly rounded like tiles */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 15px;
    transition: all 0.3s ease;
    border-bottom: 4px solid #b30000; /* Darker red depth */
}

.btn-elegant-red:hover {
    background: #cc0000;
    transform: translateY(2px);
    border-bottom: 2px solid #b30000; /* Press effect */
}

/* 3. News Section */
.news-box { grid-area: news; }

.news-item-elegant {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.news-item-elegant:last-child { border-bottom: none; }
.news-item-elegant:hover { background: #f9f9f9; }

.news-text { color: #333; font-size: 1.1em; flex-grow: 1; }
.read-more-red {
    color: var(--color-main);
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    margin-right: 15px;
    border: 1px solid var(--color-main);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.9em;
}
.read-more-red:hover { background: var(--color-main); color: #fff; }

.archive-btn-grey {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-weight: bold;
    text-decoration: none;
}
.archive-btn-grey:hover { color: var(--color-main); }

/* 4. Social Media */
.social-box { grid-area: social; }

.social-card-simple {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}
.social-name { display: block; font-weight: bold; color: #333; margin-bottom: 5px; }
.fb-link-small { color: var(--color-main); font-size: 0.9em; text-decoration: none; }

/* 5. Video Gallery */
.videos-box { grid-area: videos; }
.video-grid-elegant {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}
.video-thumb-elegant {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #eee;
    transition: transform 0.2s;
}
.video-thumb-elegant:hover { transform: scale(1.05); border-color: var(--color-main); }
.video-thumb-elegant img { width: 100%; height: auto; display: block; }

/* ───────────── Disclaimer ───────────── */
.disclaimer-elegant {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #ddd;
    color: #777;
    font-size: 0.95em;
}

/* ───────────── Responsive ───────────── */
@media (max-width: 768px) {
    .content-elegant-grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "info"
            "map"
            "news"
            "social"
            "videos";
    }
    .village-title-red { font-size: 2.2em; }
}