/* ==========================================================================
   StudyBuddy Current Affairs Modern Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #f15a24;
    --secondary-color: #ff8c00;
    --dark-color: #1a1a2e;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-light: #f4f7f6;
    --card-bg: #ffffff;
    --shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
    --radius-lg: 20px;
    --radius-md: 12px;
    --font-main: 'Poppins', sans-serif;
}

.ca-page-wrapper {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-color);
    padding-bottom: 80px;
}

/* Typography Overrides */
.ca-page-wrapper h1, 
.ca-page-wrapper h2, 
.ca-page-wrapper h3, 
.ca-page-wrapper h4, 
.ca-page-wrapper h5 {
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--dark-color);
}

.ca-page-wrapper p, 
.ca-page-wrapper span, 
.ca-page-wrapper div {
    font-family: var(--font-main) !important;
    font-size: 1.25rem !important;
    line-height: 1.8 !important;
    color: var(--text-muted);
}

/* Hero Section */
.ca-hero {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #2a2a4a 0%, var(--dark-color) 100%);
    color: white;
    text-align: center;
    overflow: hidden;
    margin-bottom: 50px;
}

.ca-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(241,90,36,0.2) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}

.ca-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    letter-spacing: -0.5px;
}

.ca-breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
    padding: 10px 25px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.ca-breadcrumb li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.ca-breadcrumb li a:hover {
    color: white;
}

.ca-breadcrumb li.active {
    color: var(--primary-color);
}

.ca-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 12px;
    color: rgba(255,255,255,0.4);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
}

.section-header h2 {
    font-size: 2rem;
    margin: 0;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Article Cards Layout */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.article-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid transparent;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--primary-color);
}

.article-image-wrap {
    flex: 0 0 32%;
    border-radius: 12px;
    overflow: hidden;
    min-width: 200px;
}

.article-image-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-image-wrap img {
    transform: scale(1.08);
}

.article-content-wrap {
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.article-date {
    display: inline-block;
    background: rgba(241, 90, 36, 0.1);
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-card h3 {
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.article-card h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.2s;
}

.article-card h3 a:hover {
    color: var(--primary-color);
}

.article-card p.excerpt,
.article-card p.excerpt * {
    font-family: var(--font-main) !important;
    font-size: 1.25rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.8 !important;
}

.article-actions {
    display: flex;
    align-items: center;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(241, 90, 36, 0.3);
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 90, 36, 0.4);
}

.btn-modern-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
}

.btn-modern-outline:hover {
    background: var(--primary-color);
    color: white !important;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}

.sidebar-widget-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    position: relative;
}

.sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.sidebar-list li:last-child {
    margin-bottom: 0;
}

.sidebar-list a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    font-size: 1.25rem;
}

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

.sidebar-list a:hover {
    background: rgba(241, 90, 36, 0.05);
    border-color: rgba(241, 90, 36, 0.2);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .ca-hero h1 { font-size: 2.8rem; }
    .sidebar-wrapper { margin-top: 40px; }
}

@media (max-width: 767px) {
    .ca-hero { padding: 80px 0 60px; }
    .ca-hero h1 { font-size: 2.2rem; }
    .section-header h2 { font-size: 1.6rem; }
    .article-card { 
        padding: 20px; 
        flex-direction: column;
    }
    .article-image-wrap {
        width: 100%;
        margin-bottom: 15px;
    }
    .article-card h3 { font-size: 1.3rem; }
}
