/**
 * PCES Theme Component Styles
 * Styles for reusable theme components
 */

/* Header Styles */
.navbar {
    min-height: 80px;
}

#hamburger-icon {
    padding: 10px;
    cursor: pointer;
}

#hamburger-icon span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-brand {
    margin: 0;
    padding: 0;
}

/* Footer Styles */
.social-icon {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #667eea;
}

.footer-pills .nav-link {
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.footer-pills .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Blog Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* News Card Styles */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-title a {
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
}

.news-card-title a:hover {
    color: #667eea;
}

.news-card-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 1rem 0;
}

.read-more-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.read-more-link:hover {
    color: #2596BE;
}

.reading-time {
    color: #999;
    font-size: 0.8rem;
}

.placeholder-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #2596BE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.placeholder-image::before {
    content: "No Image";
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #2596BE 100%);
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.8) 0%,
        rgba(37, 150, 190, 0.8) 100%
    );
    z-index: 2;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-date {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Load More Button Styles */
#load-more-news {
    background: linear-gradient(135deg, #667eea 0%, #2596BE 100%);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#load-more-news:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

#load-more-news:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#load-more-news .spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Responsive Design */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .news-card-content {
        padding: 1rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    #load-more-news {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}