/* News Page Specific Styles */

/* Preloader */
.news-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.loader {
    text-align: center;
}

.loader span {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: #987c4a;
    color: #fff;
    animation: pulse 1.5s infinite ease-in-out;
}

.loader span i {
    font-size: 32px;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* Hero Section */
.news-hero {
    position: relative;
    background: linear-gradient(135deg, #b08968, #262220);
    padding: 80px 0;
    margin-bottom: 60px;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.news-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.news-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/particles.png');
    opacity: 0.3;
    animation: particles 20s linear infinite;
    z-index: 2;
}

@keyframes particles {
    0% { background-position: 0 0; }
    100% { background-position: 500px 500px; }
}

.news-hero .container {
    position: relative;
    z-index: 3;
}

.news-hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease-out;
}

.news-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-out;
}

.news-hero-desc {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease-out;
}

.hero-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    width: 100%;
    max-width: 300px;
}

.hero-divider:before, .hero-divider:after {
    content: "";
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    flex: 1;
}

.divider-icon {
    margin: 0 15px;
    font-size: 18px;
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Categories */
.category-wrapper {
    background: #faf7f5;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #eee;
}

.category-header {
    margin-bottom: 20px;
    text-align: center;
}

.category-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: inline-block;
    margin-bottom: 5px;
}

.category-line {
    width: 50px;
    height: 2px;
    background: #b08968;
    margin: 0 auto;
}

.news-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 120px;
    text-align: center;
    border: 1px solid #eee;
    color: #333;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: #faf7f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.category-icon i {
    font-size: 20px;
    color: #b08968;
    transition: all 0.3s ease;
}

.category-text {
    font-size: 13px;
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #e3d5c8;
}

.category-item:hover .category-icon {
    background: #b08968;
}

.category-item:hover .category-icon i {
    color: #fff;
}

.category-item.active {
    background: #b08968;
    color: #fff;
    border-color: #b08968;
}

.category-item.active .category-icon {
    background: rgba(255, 255, 255, 0.2);
}

.category-item.active .category-icon i {
    color: #fff;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.elegant-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.elegant-line {
    width: 80px;
    height: 2px;
    background: #b08968;
    margin: 0 auto;
    position: relative;
}

.elegant-line:before {
    content: "";
    position: absolute;
    width: 40px;
    height: 2px;
    background: #b08968;
    left: 50%;
    margin-left: -20px;
    bottom: -5px;
}

/* Featured News Section */
.featured-news {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.featured-main {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.featured-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.featured-main a {
    text-decoration: none;
    color: #333;
    display: block;
    height: 100%;
}

.featured-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.featured-main:hover .featured-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.featured-main:hover .image-overlay {
    opacity: 0.9;
}

.featured-content {
    padding: 30px;
    position: relative;
    background: #fff;
    height: calc(100% - 300px);
    display: flex;
    flex-direction: column;
}

.featured-tag {
    display: inline-block;
    background: #b08968;
    color: #fff;
    padding: 5px 15px;
    font-size: 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-tag i {
    margin-right: 5px;
}

.featured-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.featured-summary {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-meta, .secondary-meta, .news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #888;
    font-size: 13px;
    margin-bottom: 20px;
}

.read-more-btn {
    position: relative;
    display: inline-block;
    font-weight: 500;
    color: #b08968;
    transition: all 0.3s ease;
    padding-bottom: 3px;
}

.read-more-btn:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #b08968;
    transition: all 0.3s ease;
}

.read-more-btn i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.featured-main:hover .read-more-btn:after {
    width: 100%;
}

.featured-main:hover .read-more-btn i {
    transform: translateX(5px);
}

.featured-secondary {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 30px;
}

.featured-secondary-item {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.featured-secondary-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.featured-secondary-item a {
    text-decoration: none;
    color: #333;
    display: block;
    height: 100%;
}

.secondary-image {
    position: relative;
    overflow: hidden;
    height: 140px;
}

.secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.featured-secondary-item:hover .secondary-image img {
    transform: scale(1.05);
}

.secondary-content {
    padding: 20px;
    position: relative;
    background: #fff;
}

.secondary-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News Grid */
.news-section {
    margin-bottom: 80px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    position: absolute;
    top: -40px;
    right: 20px;
    background: #b08968;
    color: #fff;
    text-align: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    box-shadow: 0 5px 15px rgba(176, 137, 104, 0.3);
    z-index: 10;
}

.news-date .day {
    font-size: 22px;
    font-weight: 700;
}

.news-date .month {
    font-size: 12px;
}

.news-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-title a:hover {
    color: #b08968;
}

.news-meta {
    margin-bottom: 15px;
}

.news-category {
    margin-right: 15px;
}

.news-summary {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    padding: 8px 0;
    color: #b08968;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    align-self: flex-start;
}

.read-more:hover {
    color: #8d6d53;
}

.read-more i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

.no-news {
    background: #f9f9f9;
    padding: 60px 30px;
    text-align: center;
    border-radius: 10px;
    border: 1px dashed #ddd;
    grid-column: 1 / -1;
}

.no-news-icon {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-news h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.no-news p {
    color: #888;
    font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .news-hero-title {
        font-size: 36px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-main {
        grid-column: 1 / -1;
    }
    
    .elegant-title {
        font-size: 28px;
    }
    
    .news-detail-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 60px 0;
    }
    
    .news-hero-title {
        font-size: 30px;
    }
    
    .category-wrapper {
        padding: 20px;
    }
    
    .news-categories {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-title {
        font-size: 20px;
    }
    
    .elegant-title {
        font-size: 24px;
    }
    
    .news-hero {
        padding: 40px 0;
    }
    
    .news-hero-title {
        font-size: 26px;
    }
    
    .news-hero-desc {
        font-size: 16px;
    }
    
    .news-content {
        padding: 20px;
    }
} 