:root {
    --pajhwok-blue: #1e88e5;
    --pajhwok-dark-blue: #1565c0;
    --pajhwok-green: #43a047;
    --pajhwok-dark-green: #2e7d32;
    --pajhwok-black: #212121;
    --pajhwok-dark: #424242;
    --pajhwok-gray: #757575;
    --pajhwok-light-gray: #e0e0e0;
    --pajhwok-bg-gray: #f5f5f5;
    --pajhwok-white: #ffffff;
}

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

body {
    font-family: 'Noto Sans', 'Noto Sans Arabic', sans-serif;
    line-height: 1.6;
    color: var(--pajhwok-black);
    background-color: var(--pajhwok-white);
    font-size: 16px;
}

/* Top Announcement Bar */
.top-announcement-bar {
    background: var(--pajhwok-blue);
    color: var(--pajhwok-white);
    padding: 8px 0;
    font-weight: 600;
    border-bottom: 2px solid var(--pajhwok-dark-blue);
}

.announcement-text a {
    color: var(--pajhwok-white);
    text-decoration: none;
    font-weight: 500;
}

.announcement-text a:hover {
    text-decoration: underline;
}

.announcement-date {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Main Header */
.main-header-pajhwok {
    background: var(--pajhwok-white);
    border-bottom: 1px solid var(--pajhwok-light-gray);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pajhwok-logo a {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--pajhwok-blue);
    text-decoration: none;
    display: block;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.85rem;
    color: var(--pajhwok-gray);
    margin-top: 2px;
    font-weight: 600;
}

.date-time-pajhwok {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.current-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pajhwok-black);
}

.location-weather {
    font-size: 0.9rem;
    color: var(--pajhwok-gray);
}

.header-actions-pajhwok {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.language-switcher {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: var(--pajhwok-bg-gray);
    color: var(--pajhwok-dark);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--pajhwok-blue);
    color: var(--pajhwok-white);
}

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

.btn-search-pajhwok, .btn-menu-pajhwok {
    background: transparent;
    color: var(--pajhwok-dark);
    width: 40px;
    height: 40px;
    border: 2px solid var(--pajhwok-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-search-pajhwok:hover, .btn-menu-pajhwok:hover {
    border-color: var(--pajhwok-blue);
    color: var(--pajhwok-blue);
}

/* Main Navigation */
.main-navigation-pajhwok {
    background: var(--pajhwok-white);
    border-bottom: 3px solid var(--pajhwok-blue);
}

.nav-menu-pajhwok {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-link-pajhwok {
    color: var(--pajhwok-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.2rem;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link-pajhwok:hover,
.nav-link-pajhwok.active {
    color: var(--pajhwok-blue);
    background: var(--pajhwok-bg-gray);
    border-bottom-color: var(--pajhwok-blue);
}

.dropdown-pajhwok {
    position: relative;
}

.dropdown-pajhwok:hover .dropdown-menu {
    display: block;
}

/* Breaking News */
.breaking-news-pajhwok {
    background: var(--pajhwok-green);
    color: var(--pajhwok-white);
    padding: 10px 0;
    border-bottom: 2px solid var(--pajhwok-dark-green);
}

.breaking-label-pajhwok {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.breaking-ticker-pajhwok {
    overflow: hidden;
}

.breaking-link-pajhwok {
    color: var(--pajhwok-white);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
}

.breaking-link-pajhwok:hover {
    text-decoration: underline;
}

/* Main Content */
.main-content-pajhwok {
    background: var(--pajhwok-bg-gray);
    padding: 30px 0;
}

/* Hero Section */
.hero-section-pajhwok {
    background: var(--pajhwok-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.story-category-pajhwok {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--pajhwok-blue);
    color: var(--pajhwok-white);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.featured-image-pajhwok {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.featured-image-pajhwok img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-image-pajhwok:hover img {
    transform: scale(1.05);
}

.featured-content-pajhwok {
    padding: 25px;
    background: var(--pajhwok-white);
}

.headline-pajhwok {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--pajhwok-black);
}

.headline-pajhwok a {
    color: inherit;
    text-decoration: none;
}

.headline-pajhwok a:hover {
    color: var(--pajhwok-blue);
}

.story-excerpt-pajhwok {
    font-size: 1.1rem;
    color: var(--pajhwok-dark);
    margin-bottom: 20px;
    line-height: 1.7;
}

.story-meta-pajhwok {
    display: flex;
    gap: 20px;
    color: var(--pajhwok-gray);
    font-size: 0.9rem;
}

.author-pajhwok {
    color: var(--pajhwok-blue);
    font-weight: 600;
}

/* Latest Updates */
.latest-updates-pajhwok {
    background: var(--pajhwok-white);
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.updates-title {
    font-size: 1.4rem;
    color: var(--pajhwok-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pajhwok-light-gray);
}

.update-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pajhwok-bg-gray);
}

.update-item:last-child {
    border-bottom: none;
}

.update-time {
    background: var(--pajhwok-blue);
    color: var(--pajhwok-white);
    min-width: 60px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
    font-weight: 600;
}

.update-title {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

.update-title a {
    color: var(--pajhwok-dark);
    text-decoration: none;
}

.update-title a:hover {
    color: var(--pajhwok-blue);
}

/* News Grid */
.news-grid-pajhwok {
    background: var(--pajhwok-white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.news-card-pajhwok {
    background: var(--pajhwok-white);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid var(--pajhwok-light-gray);
}

.news-card-pajhwok:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-image-pajhwok {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-image-pajhwok img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-pajhwok:hover .card-image-pajhwok img {
    transform: scale(1.1);
}

.card-content-pajhwok {
    padding: 20px;
}

.card-title-pajhwok {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--pajhwok-black);
}

.card-title-pajhwok a {
    color: inherit;
    text-decoration: none;
}

.card-title-pajhwok a:hover {
    color: var(--pajhwok-blue);
}

.card-meta-pajhwok {
    display: flex;
    justify-content: space-between;
    color: var(--pajhwok-gray);
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Category Sections */
.category-section-pajhwok {
    background: var(--pajhwok-white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.section-header-pajhwok {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--pajhwok-blue);
}

.section-title-pajhwok {
    font-size: 1.8rem;
    color: var(--pajhwok-blue);
    margin: 0;
    font-weight: 700;
}

.section-more-pajhwok {
    color: var(--pajhwok-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.section-more-pajhwok:hover {
    text-decoration: underline;
}

/* Afghanistan Section */
.featured-category-pajhwok {
    height: 100%;
}

.category-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-category-pajhwok:hover .category-image img {
    transform: scale(1.05);
}

.category-title {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 10px;
}

.category-title a {
    color: var(--pajhwok-black);
    text-decoration: none;
}

.category-title a:hover {
    color: var(--pajhwok-blue);
}

.category-excerpt {
    color: var(--pajhwok-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.category-meta {
    color: var(--pajhwok-gray);
    font-size: 0.9rem;
}

/* Category List */
.category-list-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--pajhwok-bg-gray);
}

.category-list-item:last-child {
    border-bottom: none;
}

.list-thumb {
    flex: 0 0 100px;
    overflow: hidden;
    border-radius: 4px;
}

.list-thumb img {
    width: 100%;
    height: 70px;
    object-fit: cover;
}

.list-content {
    flex: 1;
}

.list-title {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.list-title a {
    color: var(--pajhwok-dark);
    text-decoration: none;
}

.list-title a:hover {
    color: var(--pajhwok-blue);
}

.list-meta {
    color: var(--pajhwok-gray);
    font-size: 0.85rem;
}

/* Politics Cards */
.politics-card-pajhwok {
    height: 100%;
    transition: transform 0.3s ease;
}

.politics-card-pajhwok:hover {
    transform: translateY(-5px);
}

.politics-card-pajhwok .card-image {
    overflow: hidden;
    border-radius: 6px;
    height: 200px;
    margin-bottom: 15px;
}

.politics-card-pajhwok .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.politics-card-pajhwok:hover .card-image img {
    transform: scale(1.1);
}

.politics-card-pajhwok .card-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.politics-card-pajhwok .card-title a {
    color: var(--pajhwok-black);
    text-decoration: none;
}

.politics-card-pajhwok .card-title a:hover {
    color: var(--pajhwok-blue);
}

.politics-card-pajhwok .card-meta {
    color: var(--pajhwok-gray);
    font-size: 0.85rem;
}

/* Sidebar */
.sidebar-widget-pajhwok {
    background: var(--pajhwok-white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.widget-title-pajhwok {
    font-size: 1.3rem;
    color: var(--pajhwok-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pajhwok-light-gray);
}

/* Most Read */
.most-read-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.most-read-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pajhwok-bg-gray);
}

.most-read-item:last-child {
    border-bottom: none;
}

.read-number {
    background: var(--pajhwok-blue);
    color: var(--pajhwok-white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.read-content {
    flex: 1;
}

.read-title {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.read-title a {
    color: var(--pajhwok-dark);
    text-decoration: none;
}

.read-title a:hover {
    color: var(--pajhwok-blue);
}

.read-meta {
    color: var(--pajhwok-gray);
    font-size: 0.85rem;
}

/* Photo Gallery */
.photo-gallery-pajhwok {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.photo-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: var(--pajhwok-white);
    padding: 8px 10px;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Video Section */
.video-sidebar-pajhwok {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-item {
    position: relative;
}

.video-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    height: 180px;
}

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

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pajhwok-white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.video-item:hover .play-icon {
    background: var(--pajhwok-blue);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-title {
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 10px;
}

.video-title a {
    color: var(--pajhwok-dark);
    text-decoration: none;
}

.video-title a:hover {
    color: var(--pajhwok-blue);
}

/* Subscribe */
.subscribe-desc {
    color: var(--pajhwok-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.subscribe-form-pajhwok .form-control {
    padding: 12px 15px;
    border: 2px solid var(--pajhwok-light-gray);
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 1rem;
}

.subscribe-form-pajhwok .form-control:focus {
    border-color: var(--pajhwok-blue);
    box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.25);
}

.btn-subscribe-pajhwok {
    background: var(--pajhwok-green);
    color: var(--pajhwok-white);
    padding: 12px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-subscribe-pajhwok:hover {
    background: var(--pajhwok-dark-green);
    transform: translateY(-2px);
}

/* Economy Section */
.economy-card-pajhwok {
    height: 100%;
    transition: transform 0.3s ease;
}

.economy-card-pajhwok:hover {
    transform: translateY(-5px);
}

.economy-card-pajhwok .card-image {
    overflow: hidden;
    border-radius: 6px;
    height: 180px;
    margin-bottom: 15px;
}

.economy-card-pajhwok .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.economy-card-pajhwok:hover .card-image img {
    transform: scale(1.1);
}

.economy-card-pajhwok .card-title {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.economy-card-pajhwok .card-title a {
    color: var(--pajhwok-black);
    text-decoration: none;
}

.economy-card-pajhwok .card-title a:hover {
    color: var(--pajhwok-blue);
}

.economy-card-pajhwok .card-meta {
    color: var(--pajhwok-gray);
    font-size: 0.85rem;
}

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

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu-pajhwok {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link-pajhwok {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .headline-pajhwok {
        font-size: 1.8rem;
    }
    
    .pajhwok-logo a {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .date-time-pajhwok {
        margin: 15px 0;
        align-items: center;
    }
    
    .header-actions-pajhwok {
        align-items: center;
    }
    
    .breaking-news-pajhwok .col-auto {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .photo-gallery-pajhwok {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .pajhwok-logo a {
        font-size: 1.8rem;
    }
    
    .nav-menu-pajhwok {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-link-pajhwok {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--pajhwok-light-gray);
    }
    
    .story-meta-pajhwok {
        flex-direction: column;
        gap: 10px;
    }
}


/* Footer Styles */
.main-footer-pajhwok {
    background: var(--pajhwok-dark-blue);
    color: var(--pajhwok-white);
    border-top: 5px solid var(--pajhwok-blue);
}

.footer-logo {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--pajhwok-white);
    margin-bottom: 15px;
}

.footer-desc {
    color: var(--pajhwok-light-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--pajhwok-white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--pajhwok-blue);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.2rem;
    color: var(--pajhwok-white);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--pajhwok-light-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
}

.footer-links a:hover {
    color: var(--pajhwok-white);
    padding-right: 5px;
}

.footer-contact {
    font-size: 0.9rem;
    color: var(--pajhwok-light-gray);
}

.copyright {
    font-size: 0.85rem;
    color: var(--pajhwok-light-gray);
}

.copyright a {
    color: var(--pajhwok-white);
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-contact {
        font-size: 0.8rem;
    }
    
    .footer-contact span {
        display: block;
        margin-bottom: 5px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Google Translate Performance Optimized CSS */
.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

body {
    top: 0 !important;
    position: static !important;
}

html {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Prevent layout shifts */
.goog-te-combo {
    transform: translateZ(0);
    will-change: transform;
}