/* Modern UI Styles */
:root {
    --primary-color: #006400;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --transition: all 0.3s ease;
}

/* Hero Section */
.about-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.95), rgba(0, 100, 0, 0.8)),
                url('../images/cit-building.jpg') center/cover;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    text-decoration: none;
}

.hero-btn.primary {
    background: white;
    color: var(--primary-color);
}

.hero-btn.secondary {
    border: 2px solid white;
    color: white;
}

/* Section Styles */
.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Overview Section */
.overview-section {
    padding: 4rem 0;
    background: #f8f9fa;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.overview-entry-enhanced {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 100%;
    padding: 2rem;
}

.overview-text {
    flex: 1;
    max-width: 600px;
}

.overview-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    height: 300px;
    width: 500px;
    flex-shrink: 0;
}

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

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

.overview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

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

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

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Technology Section - Updated */
.technology-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.technologies-list {
    max-width: 900px;
    margin: 0 auto;
}

.technology-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.technology-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.technology-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
}

.technology-icon i {
    font-size: 1.5rem;
    color: white;
}

.technology-content {
    flex: 1;
}

.technology-content h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.technology-content p {
    color: #666;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .technology-item {
        padding: 1.25rem;
    }
    
    .technology-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        margin-right: 1rem;
    }
    
    .technology-content h3 {
        font-size: 1.1rem;
    }
    
    .technology-content p {
        font-size: 0.95rem;
    }
}

/* Technology Timeline */
.tech-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Updated Benefits Section */
.benefits-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.benefits-container {
    max-width: 900px;
    margin: 3rem auto 0;
}

.benefit-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.benefit-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.6rem;
}

.benefit-icon {
    display: block;
    font-size: 1.6rem;
    color: #006400;
    margin-right: 0.8rem;
}

.benefit-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.benefit-card p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-list li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.5rem;
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0.2rem;
}

.benefit-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #009900;
    font-weight: bold;
}

@media (max-width: 768px) {
    .benefit-card {
        padding: 1.5rem;
    }
    
    .benefit-card h3 {
        font-size: 1.2rem;
    }
    
    .benefit-card p, 
    .benefit-list li {
        font-size: 0.9rem;
    }
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 8rem 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.95), rgba(0, 100, 0, 0.8));
    z-index: 1;
}

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

/* Equipment Section Styles */
.equipment-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.equipment-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: auto;
    display: flex;
    flex-direction: column;
}

.equipment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.equipment-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.equipment-card:hover .equipment-image img {
    transform: scale(1.1);
}

.equipment-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.equipment-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.equipment-specs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    flex-grow: 1;
}

.equipment-spec-card {
    background: #f7fafd;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1rem;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.equipment-spec-card:hover {
    background: #edf5ff;
    transform: translateY(-2px);
}

.equipment-spec-card i {
    color: var(--primary-color);
    font-size: 1.2em;
    min-width: 20px;
    padding-top: 3px;
}

.equipment-functions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.equipment-functions h4 {
    color: #006400;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.equipment-functions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.equipment-functions li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    color: #555;
}

.equipment-functions li i {
    color: #006400;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* About Page Styles */
.about-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h1 {
    color: #006400;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: #006400;
}

.about-card h2 {
    color: #006400;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-card p {
    color: #666;
    line-height: 1.6;
}

.about-icon {
    font-size: 2.5rem;
    color: #006400;
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .equipment-image {
        height: 180px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .overview-entry-enhanced {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .overview-image {
        width: 100%;
        max-width: 500px;
        height: 250px;
    }

    .overview-text {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }

    .overview-section {
        padding: 3rem 0;
    }

    .overview-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
}

/* Enhanced Equipment Section Styles */
.equipment-description {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.equipment-card {
    display: flex;
    flex-direction: column;
}

.equipment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.equipment-specs {
    flex: 1;
    margin-bottom: 1rem;
}

.equipment-specs li {
    background: rgba(0, 100, 0, 0.03);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.equipment-specs i {
    background: rgba(0, 100, 0, 0.1);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Enhanced Project Overview Entry */
.overview-entry-enhanced {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 0;
    min-height: 400px;
    padding: 0;
    width: 100%;
}

.overview-entry-enhanced .overview-text {
    flex: 1;
    max-width: 520px;
}

.overview-entry-enhanced .overview-image {
    flex: 1.2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.overview-img-enhanced {
    width: 100%;
    max-width: 900px;
    height: 520px;
    object-fit: cover;
    border-radius: 36px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.16);
    transition: transform 0.3s cubic-bezier(.4,2,.6,1);
    background: #f8f9fa;
}

.overview-img-enhanced:hover {
    transform: scale(1.04) rotate(-1deg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

@media (max-width: 1200px) {
    .overview-img-enhanced {
        max-width: 98vw;
        height: 400px;
    }
}

@media (max-width: 1024px) {
    .overview-entry-enhanced {
        flex-direction: column;
        gap: 2.5rem;
        min-height: unset;
        padding: 1.5rem 0;
    }
    .overview-entry-enhanced .overview-image {
        justify-content: center;
        width: 100%;
    }
    .overview-img-enhanced {
        max-width: 98vw;
        height: 300px;
    }
}

@media (max-width: 600px) {
    .overview-img-enhanced {
        height: 180px;
        border-radius: 18px;
    }
    .overview-entry-enhanced .overview-text {
        max-width: 100%;
    }
}

/* Footer Styles */
body .footer {
    background-color: #f8f9fa !important;
    padding: 20px 0;
    text-align: center;
    width: 100%;
    position: relative;
    bottom: 0;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
}

.copyright {
    text-align: center;
    width: 100%;
}

.copyright p {
    margin: 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

/* Universal text wrapping safety rules for About page */
.about-section *,
.about-container *,
.about-content *,
.overview-section *,
.features-grid *,
.feature-card *,
.technology-section *,
.technology-item *,
.equipment-section *,
.equipment-card *,
.equipment-content *,
.equipment-specs *,
.equipment-description *,
.benefits-section *,
.benefit-card *,
.hero-content *,
.overview-text *,
.overview-entry-enhanced * {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
}

/* Specific safety for titles and descriptions */
.about-card h2,
.about-card p,
.feature-card h3,
.feature-card p,
.technology-content h3,
.technology-content p,
.equipment-content h3,
.equipment-description,
.equipment-specs li,
.benefit-card h3,
.benefit-card p,
.benefit-list li,
.hero-content h1,
.overview-text h2,
.overview-text p,
.section-header h2 {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
}

/* Mobile responsive text wrapping enhancements */
@media (max-width: 768px) {
    .about-section,
    .overview-section,
    .features-grid,
    .technology-section,
    .equipment-section,
    .benefits-section {
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    
    .hero-content h1 {
        font-size: 2.5rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    
    .section-header h2 {
        font-size: 2rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem !important;
    }
    
    .section-header h2 {
        font-size: 1.5rem !important;
    }
    
    .feature-card h3,
    .technology-content h3,
    .equipment-content h3,
    .benefit-card h3 {
        font-size: 1.1rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
}