/* AOESRT-inspired Desktop Styles */

/* Header & Navbar */
/* Main Content & Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Modern Floating Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9); /* Translucent White */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Removed row-reverse to allow natural RTL flow (Logo Right, Links Left) */
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a4e8a;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: #555;
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 15px;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: #D9252B;
}

/* Animated Underline */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    right: 50%;
    left: 50%;
    height: 3px;
    background: #D9252B;
    transition: all 0.3s ease;
    width: 0;
    border-radius: 10px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
    right: 10%;
    left: 10%;
}

/* CTA Button Styles */
.nav-btn {
    background: linear-gradient(135deg, #D9252B, #b31d22);
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(217, 37, 43, 0.3);
    transition: all 0.3s ease;
    margin-right: 15px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(217, 37, 43, 0.4);
}

.nav-btn::after {
    display: none; /* No underline for button */
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 10rem 2rem 8rem; /* Large top padding for overlap */
    text-align: center;
    background-color: #1a4e8a;
    position: relative;
    margin-top: 0; /* Reset negative margin since header is white/floating */

}

.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(135deg, rgba(26, 78, 138, 0.95), rgba(44, 62, 80, 0.9));
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Stats Section */
.stats-section {
    background: white;
    padding: 3rem 0;
    margin-bottom: 4rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
    margin-top: -40px; /* Overlap Hero */
    border-radius: 8px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.stats-section .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a4e8a;
    margin-bottom: 5px;
}

.stat-item p {
    color: #666;
    font-weight: 600;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a4e8a;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #e74c3c;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Article Grid (Arched Cards) */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
    direction: rtl;
}

.card {
    background: white;
    /* The Signature Arch Look */
    border-radius: 20px 20px 8px 8px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Soft shadow */
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    /* Accent line separator */
    border-bottom: 4px solid #e74c3c; 
}

.card-body {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a4e8a;
    line-height: 1.4;
}

.card-body p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.card-body a {
    color: #1a4e8a;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #1a4e8a;
    padding: 8px 20px;
    border-radius: 30px;
    align-self: center;
    transition: all 0.3s;
}

.card-body a:hover {
    background: #1a4e8a;
    color: white;
}

/* Footer */
footer {
    background: #0f2c4e; /* Darker than primary */
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 5px solid #e74c3c;
}

/* Modern Category Cards (Conventions Grid) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; /* Larger cards for desktop */
    gap: 2rem !important;
    padding: 2rem 0;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 250px;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(26, 78, 138, 0.15); /* Colored shadow on hover */
    border-color: rgba(26, 78, 138, 0.1);
}

/* Decorative background circle */
.category-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(26, 78, 138, 0.05));
    border-radius: 50%;
    transition: all 0.5s ease;
}

.category-card:hover::before {
    transform: scale(1.5);
}

.category-img-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 4px solid #f8f9fa;
    transition: border-color 0.3s;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card:hover .category-img-container {
    border-color: #e74c3c; /* Red border on hover */
}

.category-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-cat-img {
    font-size: 2.5rem;
    color: #1a4e8a;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    transition: color 0.3s;
}

.category-card:hover .category-title {
    color: #D9252B; /* Brand Red */
}
