/* 
   KRRICE MILL Process Page Styles
   Professional Design for Rice Processing Workflow
*/

/* ===== Hero Section ===== */
.process-hero {
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%), 
                url('../images/process/hero-process.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #ffffff;
    padding: 120px 0;
    margin-top: 70px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
    opacity: 0.15;
}

.process-hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.hero-content {
    max-width: 800px;
    padding: 0;
    animation: fadeInUp 1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    transform: translateY(20px);
    opacity: 0;
    animation-delay: 0.3s;
    text-align: left;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
    line-height: 1.15;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: #ffc107;
    border-radius: 2px;
}

.hero-content p {
    font-size: 1.6rem;
    margin: 0 auto 3rem 0;
    font-weight: 300;
    max-width: 700px;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.hero-breadcrumb {
    font-size: 1.1rem;
    margin-top: 3rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.hero-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0 5px;
}

.hero-breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffc107;
    transition: width 0.3s ease;
}

.hero-breadcrumb a:hover::after {
    width: 100%;
}

.hero-breadcrumb span {
    color: #ffc107;
    font-weight: 500;
    margin: 0 5px;
}

.hero-breadcrumb .separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.7);
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background-color: #ffffff;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: #ffc107;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: #666;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.process-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #f0f0f0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background-color: #ffc107;
    border: 4px solid #fff;
    top: 30px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.2);
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-content {
    padding: 30px;
    background-color: #fff;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #fff;
    top: 30px;
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent #fff transparent transparent;
    top: 30px;
    left: -10px;
}

.timeline-img {
    width: 100%;
    height: 200px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.timeline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-content:hover .timeline-img img {
    transform: scale(1.05);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.process-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #666;
}

.process-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #ffc107;
}

/* Quality Assurance Section */
.quality-section {
    padding: 100px 0;
    background-color: #f9f9f9;
    position: relative;
}

.quality-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

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

.quality-card {
    background: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.quality-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    transition: transform 0.5s ease;
}

.quality-card:hover .quality-icon {
    transform: rotateY(180deg);
}

.quality-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.quality-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/process/cta-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    position: relative;
}

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

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

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.title-separator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 30px;
}

.title-separator span {
    width: 80px;
    height: 4px;
    background: #ffc107;
    border-radius: 2px;
    display: inline-block;
}

.title-separator.light span {
    background: #ffffff;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-btn.primary {
    background: #ffc107;
    color: #333;
    border: 2px solid #ffc107;
}

.cta-btn.primary:hover {
    background: transparent;
    color: #ffc107;
}

.cta-btn.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cta-btn.secondary:hover {
    background: #fff;
    color: #333;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        font-size: 1.4rem;
    }
}

@media (max-width: 992px) {
    .process-hero {
        height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
    
    .process-timeline::before {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 18px;
        right: auto;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before {
        left: -10px;
        right: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent #fff transparent transparent;
    }
    
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -10px;
        border-width: 10px 10px 10px 0;
        border-color: transparent #fff transparent transparent;
    }
}

@media (max-width: 768px) {
    .process-hero {
        height: 50vh;
        padding: 80px 0 60px;
        text-align: center;
    }
    
    .process-hero .container {
        justify-content: center;
    }
    
    .hero-content {
        padding: 0 15px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-content h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-content p {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .hero-btn {
        width: 100%;
        text-align: center;
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .process-section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .section-title p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .timeline-content {
        padding: 25px;
    }
    
    .timeline-title {
        font-size: 1.4rem;
    }
    
    .timeline-desc {
        font-size: 0.95rem;
    }
    
    .timeline-img {
        height: 200px;
    }
    
    .quality-section {
        padding: 60px 0;
    }
    
    .quality-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .quality-card {
        padding: 25px 20px;
    }
    
    .quality-card h3 {
        font-size: 1.4rem;
    }
    
    .quality-card p {
        font-size: 0.95rem;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
        max-width: 600px;
        margin: 0 auto 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .cta-btn {
        width: 100%;
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .process-hero {
        height: auto;
        min-height: 250px;
        padding: 70px 15px 40px;
        margin-top: 60px;
        text-align: center;
    }
    
    .process-hero .container {
        justify-content: center;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        text-align: center;
    }
    
    .hero-content h1::after {
        width: 60px;
        height: 3px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        text-align: center;
    }
    
    .hero-buttons {
        max-width: 220px;
    }
    
    .hero-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .process-section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .section-title p {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .timeline-item {
        padding-left: 40px;
        padding-right: 10px;
        margin-bottom: 30px;
    }
    
    .timeline-item::after {
        width: 24px;
        height: 24px;
        left: 8px;
        top: 10px;
    }
    
    .timeline-content {
        padding: 15px 10px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    
    .timeline-img {
        height: 130px;
        margin-bottom: 12px;
        border-radius: 6px;
    }
    
    .process-features {
        margin-top: 10px;
    }
    
    .process-features li {
        font-size: 0.8rem;
        margin-bottom: 5px;
        padding-left: 20px;
    }
    
    .process-features li i {
        font-size: 0.9rem;
        left: 0;
    }
    
    .quality-section {
        padding: 50px 0;
    }
    
    .quality-card {
        padding: 20px 15px;
    }
    
    .quality-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .quality-icon i {
        font-size: 1.8rem;
    }
    
    .quality-card h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .quality-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .cta-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}
