/* Knowledge Center Specific Styles */

/* Hero Section */
.knowledge-hero {
    min-height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                linear-gradient(135deg, rgba(184, 149, 106, 0.9) 0%, rgba(139, 115, 85, 0.9) 100%),
                url('../images/villa3.jpg') center/cover no-repeat;
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.knowledge-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(255,255,255,0.02) 100px,
            rgba(255,255,255,0.02) 200px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 100px,
            rgba(255,255,255,0.02) 100px,
            rgba(255,255,255,0.02) 200px
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: 24px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.8;
}

/* Search Box */
.search-box {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    border: 1px solid rgba(184, 149, 106, 0.3);
}

.search-input {
    flex: 1;
    padding: 20px 30px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background: linear-gradient(135deg, #B8956A 0%, #9A7858 100%);
    color: #fff;
    border: none;
    padding: 0 35px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.search-btn:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #B8956A 100%);
    transform: scale(1.05);
}

/* Categories Section */
.categories-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F5 100%);
    position: relative;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF8F5 100%);
    padding: 50px 35px;
    border-radius: 0;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(184, 149, 106, 0.15);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #B8956A 0%, #D4AF37 100%);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(184, 149, 106, 0.15);
    border-color: #B8956A;
    background: #FFFFFF;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: transparent;
    border: 2px solid #B8956A;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s;
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, #B8956A 0%, #D4AF37 100%);
    border-color: transparent;
    transform: rotate(45deg);
}

.category-icon i {
    font-size: 2.2rem;
    color: #B8956A;
    transition: all 0.4s;
}

.category-card:hover .category-icon i {
    color: #fff;
    transform: rotate(-45deg);
}

.category-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 18px;
    color: #2C2C2C;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.category-card p {
    font-family: 'Inter', sans-serif;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
}

.article-count {
    display: inline-block;
    color: #B8956A;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 15px;
    border: 1px solid #B8956A;
    border-radius: 20px;
}

/* Featured Articles */
.featured-articles {
    padding: 100px 0;
    background: #FFFFFF;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 70px;
    color: #2C2C2C;
    position: relative;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #B8956A 50%, transparent 100%);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: #FFFFFF;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(184, 149, 106, 0.1);
    position: relative;
}

.article-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #B8956A 0%, #D4AF37 100%);
    transform: scaleX(0);
    transition: transform 0.4s;
    transform-origin: left;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(184, 149, 106, 0.12);
    border-color: rgba(184, 149, 106, 0.3);
}

.article-card:hover::after {
    transform: scaleX(1);
}

.article-card.featured {
    grid-column: span 2;
}

.article-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.article-card.featured .article-image {
    height: 350px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.article-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8956A 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Inter', sans-serif;
}

.article-content {
    padding: 30px;
}

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

.category-tag {
    background: transparent;
    color: #B8956A;
    padding: 6px 14px;
    border: 1px solid #B8956A;
    border-radius: 0;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.reading-time {
    color: #999;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 18px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.article-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.article-content h3 a:hover {
    color: #B8956A;
}

.article-content p {
    font-family: 'Inter', sans-serif;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 300;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #999;
}

.author i {
    margin-right: 5px;
    color: #B8956A;
}

/* Resources Section */
.resources-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #FAF8F5 0%, #FFFFFF 100%);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.resource-card {
    background: #FFFFFF;
    padding: 50px 35px;
    border: 1px solid rgba(184, 149, 106, 0.15);
    border-radius: 0;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(184, 149, 106, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(184, 149, 106, 0.12);
    border-color: #B8956A;
}

.resource-card:hover::before {
    opacity: 1;
}

.resource-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: transparent;
    border: 2px solid #B8956A;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
    position: relative;
}

.resource-card:hover .resource-icon {
    background: linear-gradient(135deg, #B8956A 0%, #D4AF37 100%);
    border-color: transparent;
}

.resource-icon i {
    font-size: 2rem;
    color: #B8956A;
    transition: color 0.4s;
}

.resource-card:hover .resource-icon i {
    color: #FFFFFF;
}

.resource-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 18px;
    color: #2C2C2C;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.resource-card p {
    font-family: 'Inter', sans-serif;
    color: #666666;
    margin-bottom: 25px;
    line-height: 1.8;
    font-weight: 300;
}

.download-btn {
    background: transparent;
    color: #B8956A;
    border: 2px solid #B8956A;
    padding: 14px 35px;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #B8956A 0%, #D4AF37 100%);
    transition: left 0.4s;
    z-index: -1;
}

.download-btn:hover {
    color: #FFFFFF;
    border-color: transparent;
    transform: translateY(-2px);
}

.download-btn:hover::before {
    left: 0;
}

.download-btn i {
    margin-right: 8px;
}

/* Newsletter Section */
.newsletter-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%),
                url('../images/villa2.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 50px,
            rgba(184, 149, 106, 0.03) 50px,
            rgba(184, 149, 106, 0.03) 100px
        );
    pointer-events: none;
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #FFFFFF;
    margin-bottom: 25px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 1px;
}

.newsletter-box > p {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.8;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.newsletter-input {
    flex: 1;
    padding: 18px 30px;
    border: 1px solid rgba(184, 149, 106, 0.3);
    border-radius: 0;
    font-size: 1rem;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.newsletter-input:focus {
    border-color: #B8956A;
    background: #FFFFFF;
}

.newsletter-btn {
    background: linear-gradient(135deg, #B8956A 0%, #D4AF37 100%);
    color: #FFFFFF;
    border: none;
    padding: 18px 45px;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.newsletter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(184, 149, 106, 0.3);
}

.newsletter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.newsletter-note {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .search-btn {
        padding: 15px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card.featured {
        grid-column: span 1;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
    }
}