/* Home Page Specific Styles */

/* Hero Section */
.hero {
    background: var(--primary-blue);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--primary-red);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 93, 188, 0.1);
    z-index: 1;
}

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

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    padding-bottom: 1rem;
    border-bottom: 4px solid var(--primary-red);
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: #E3F2FD;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: #BBDEFB;
    margin-bottom: 2rem;
    line-height: 1.8;
    padding-left: 20px;
    border-left: 4px solid var(--primary-red);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-cta .btn {
    font-size: 1.125rem;
    padding: 15px 30px;
    font-weight: 600;
}

.hero-cta .btn-primary {
    background-color: var(--primary-red);
    color: white;
    border: none;
}

.hero-cta .btn-primary:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

.hero-cta .btn-outline {
    border-color: white;
    color: white;
}

.hero-cta .btn-outline:hover {
    background-color: white;
    color: var(--primary-blue);
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 75%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--primary-red);
    transform: rotate(2deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: rotate(0deg) scale(1.05);
}

/* Stats Section */
.stats {
    background-color: white;
    padding: 4rem 0;
    margin-top: -2rem;
    position: relative;
    z-index: 3;
    border-top: 3px solid var(--primary-red);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--primary-red);
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    border: 3px solid var(--primary-blue);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-gray);
    font-weight: 500;
}

/* About Preview Section */
.about-preview {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
}

.about-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.about-title {
    position: relative;
    display: inline-block;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}

.about-subtitle {
    margin-top: 1.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about-text h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-red);
    display: inline-block;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.about-image img {
    width: 75%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 3px solid var(--primary-red);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Recent Projects Section */
.recent-projects {
    padding: 4rem 0;
}

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

.project-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border-top: 3px solid var(--primary-blue);
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.project-card:hover::after {
    width: 100%;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-card:hover .project-content h3 {
    color: var(--primary-red);
}

.project-content p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.project-impact {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--primary-red);
}

.project-impact span {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.project-impact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-impact li {
    padding: 0.4rem 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 1.5rem;
}

.project-impact li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

.project-progress {
    margin-top: 1rem;
}

.project-progress span {
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    display: block;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-red);
    border-radius: 4px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Upcoming Events Section */
.upcoming-events {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.event-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--primary-red);
}

.event-date {
    background: var(--primary-red);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    min-width: 80px;
    height: fit-content;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.2);
}

.event-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.event-date .month {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.event-content {
    flex: 1;
}

.event-content h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.event-content p {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.event-content p i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.event-actions {
    display: flex;
    align-items: flex-end;
}

/* Latest News Section */
.latest-news {
    padding: 4rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f0f2f5;
    display: block;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    min-height: 3em;
}

.news-content p {
    flex: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category {
    background-color: var(--primary-red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 2px solid var(--primary-blue);
}

.date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.news-content h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-content p {
    margin-bottom: 1rem;
}

.news-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: #ffebee;
    color: var(--primary-red);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid rgba(211, 47, 47, 0.2);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: var(--primary-red);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.cta-content p {
    color: #FFCDD2;
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-buttons .btn {
    font-size: 1.125rem;
    padding: 15px 35px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.cta-buttons .btn-primary {
    background: var(--primary-blue);
    border: 2px solid white;
}

.cta-buttons .btn-primary:hover {
    background: white;
    color: var(--primary-red);
    transform: translateY(-2px);
}

.cta-buttons .btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.cta-buttons .btn-outline:hover {
    background-color: white;
    color: var(--primary-red);
    transform: translateY(-2px);
}

/* Mobile Responsiveness for Home Page */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
        display: block;
        border-bottom: 4px solid var(--primary-red);
        padding-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        border-left: none;
        border-top: 4px solid var(--primary-red);
        padding-left: 0;
        padding-top: 15px;
    }

    .hero-cta {
        justify-content: center;
    }

    .stats {
        padding: 3rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
        text-align: center;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-description {
        font-size: 1rem;
        border-top: 3px solid var(--primary-red);
        padding-top: 12px;
    }

    .hero-image img {
        border: 2px solid var(--primary-red);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .event-date {
        min-width: 70px;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 1.125rem;
    }
}