/*!
 * Index Page & Footer Improvements
 * Enhanced styles for homepage sections and modern footer design
 */

/* =================================================================
   INDEX PAGE IMPROVEMENTS
   ================================================================= */

/* Section Title Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Heritage Gallery Section */
.heritage-gallery-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.heritage-gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 123, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(40, 167, 69, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Heritage Card Enhancements */
.heritage-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    background: #fff;
    margin: 10px;
}

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

.heritage-card .hovereffect {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.heritage-card .hovereffect img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.heritage-card:hover .hovereffect img {
    transform: scale(1.1);
}

/* Heritage Overlay */
.heritage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.heritage-card:hover .heritage-overlay {
    opacity: 1;
}

.heritage-category {
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    backdrop-filter: blur(10px);
}

.heritage-location {
    color: white;
    font-size: 14px;
    font-weight: 500;
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.heritage-location i {
    color: #ff6b35;
}

/* Heritage Content */
.heritage-content {
    padding: 25px 20px;
    background: white;
}

.heritage-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.heritage-content p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Heritage Stats */
.heritage-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #007bff;
    font-weight: 600;
    background: rgba(0, 123, 255, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.stat-item i {
    font-size: 11px;
}

/* Featured Heritage Section Improvements */
#featured-heritage {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#featured-heritage .item blockquote {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

#featured-heritage .item blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #007bff;
    font-family: serif;
    line-height: 1;
}

#featured-heritage .item h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

#featured-heritage .item p {
    color: #495057;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.article-meta {
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #e9ecef;
}

.article-meta small {
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta i {
    color: #007bff;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    color: white;
    text-decoration: none;
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(3px);
}

/* Button Content Improvements */
.btn-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

.btn-content i {
    transition: transform 0.3s ease;
}

.btn-content:hover i {
    transform: translateX(3px);
}

/* =================================================================
   MODERN FOOTER STYLES
   ================================================================= */

.modern-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(155, 89, 182, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-main {
    padding: 60px 0 40px;
    position: relative;
    z-index: 1;
}

.footer-section {
    height: 100%;
}

/* Footer Brand */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.brand-text h4 {
    color: #3498db;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.brand-subtitle {
    color: #bdc3c7;
    font-size: 14px;
    margin: 5px 0 0;
    font-weight: 500;
}

.footer-description {
    color: #bdc3c7;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    color: white;
}

/* Footer Titles */
.footer-title {
    color: #3498db;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #3498db;
    border-radius: 1px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 5px 0;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
    padding-left: 15px;
}

.footer-links a:hover::before {
    width: 8px;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #bdc3c7;
}

.contact-item i {
    color: #3498db;
    font-size: 16px;
    margin-top: 2px;
    min-width: 16px;
}

.contact-item a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #3498db;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.copyright {
    color: #95a5a6;
    font-size: 14px;
    margin: 0;
}

.footer-links-bottom {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-links-bottom a {
    color: #95a5a6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links-bottom a:hover {
    color: #3498db;
}

/* =================================================================
   RESPONSIVE STYLES
   ================================================================= */

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 991px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .heritage-card .hovereffect img {
        height: 220px;
    }
    
    .footer-brand {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .heritage-gallery-section {
        padding: 50px 0;
    }
    
    .heritage-card {
        margin: 5px;
        border-radius: 12px;
    }
    
    .heritage-card .hovereffect img {
        height: 200px;
    }
    
    .heritage-content {
        padding: 20px 15px;
    }
    
    .heritage-content h4 {
        font-size: 1.1rem;
    }
    
    .heritage-stats {
        gap: 10px;
    }
    
    .stat-item {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    #featured-heritage {
        padding: 40px 0;
    }
    
    #featured-heritage .item blockquote {
        padding: 20px;
    }
    
    #featured-heritage .item h3 {
        font-size: 1.3rem;
    }
    
    .btn-content {
        width: 100%;
        justify-content: center;
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .btn-read-more {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Footer Mobile */
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-brand {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .footer-logo {
        width: 50px;
        height: 50px;
    }
    
    .brand-text h4 {
        font-size: 1.1rem;
    }
    
    .footer-description {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .social-links {
        justify-content: center;
        margin-bottom: 30px;
    }
    
    .footer-title {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
        gap: 12px;
    }
    
    .contact-item {
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .footer-bottom {
        padding: 15px 0;
        text-align: center;
    }
    
    .footer-links-bottom {
        justify-content: center;
        margin-top: 10px;
        gap: 15px;
    }
}

/* Small Mobile */
@media (max-width: 479px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .heritage-card .hovereffect img {
        height: 180px;
    }
    
    .heritage-content {
        padding: 15px 12px;
    }
    
    .heritage-content h4 {
        font-size: 1rem;
    }
    
    .heritage-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .stat-item {
        justify-content: center;
    }
    
    #featured-heritage .item blockquote {
        padding: 15px;
    }
    
    #featured-heritage .item h3 {
        font-size: 1.2rem;
    }
    
    .btn-content {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .footer-links-bottom {
        flex-direction: column;
        gap: 10px;
    }
}