* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #06080c;
    color: #e2e8f0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Durood Marquee Header --- */
.durood-marquee {
    width: 100%;
    background: #020406;
    color: #FFD700;
    overflow: hidden;
    padding: 8px 0;
    font-family: 'Amiri', 'Traditional Arabic', serif;
    position: relative;
    height: 38px;
    border-bottom: 1px solid #1a2234;
}

.marquee-content {
    position: absolute;
    white-space: nowrap;
    font-size: 1.35em;
    animation: scrollDuroodLR 35s linear infinite;
}

@keyframes scrollDuroodLR {
    0% { transform: translateX(-100%); left: 0; }
    100% { transform: translateX(0); left: 100vw; }
}

/* --- Header --- */
header {
    text-align: center;
    padding: 35px 20px 25px;
    background: radial-gradient(circle at top, #0f172a 0%, #06080c 70%);
    border-bottom: 1px solid rgba(0, 255, 204, 0.15);
}

h1 {
    color: #00ffcc;
    font-size: 2.8em;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.35);
    transition: text-shadow 0.3s ease;
}

h1:hover {
    text-shadow: 0 0 30px rgba(0, 255, 204, 0.7);
    cursor: pointer;
}

p.subtitle {
    color: #94a3b8;
    font-size: 1.05em;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Navigation Bar --- */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
    background: #090d16;
    border-bottom: 1px solid #1e293b;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

nav a {
    color: #94a3b8;
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

nav a:hover {
    color: #00ffcc;
    background: rgba(0, 255, 204, 0.08);
    border-color: rgba(0, 255, 204, 0.3);
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}

nav a.active {
    color: #06080c;
    background: #00ffcc;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

/* --- Section Heading --- */
.section-title {
    text-align: center;
    color: #FFD700;
    margin: 45px 0 25px;
    font-size: 1.8em;
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

/* --- Grid Container --- */
.main-container {
    padding: 20px 24px 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1350px;
    margin: 0 auto;
}

@media (max-width: 1200px) { .main-container { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 850px)  { .main-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 550px)  { .main-container { grid-template-columns: 1fr; } }

/* --- News Cards (Matches Python exact markup) --- */
.news-card {
    background: #0c111d;
    border: 1px solid #1e293b;
    border-left: 4px solid #00ffcc;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-left-color 0.25s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 255, 204, 0.15);
    border-left-color: #FFD700;
}

.news-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 14px;
    border: 1px solid #1e293b;
    background: #06080c;
}

.news-card h3 {
    color: #f1f5f9;
    font-size: 1.05em;
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card p {
    color: #94a3b8;
    line-height: 1.5;
    font-size: 0.88em;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 255, 204, 0.08);
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.3);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: auto;
    align-self: flex-start;
    transition: all 0.2s ease;
}

.read-more:hover {
    background: #00ffcc;
    color: #06080c;
    box-shadow: 0 0 14px rgba(0, 255, 204, 0.5);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #64748b;
    border-top: 1px solid #1e293b;
    background: #030508;
    font-size: 0.9em;
}

footer span {
    color: #00ffcc;
    font-weight: 600;
}