/* 
   KRRICE MILL About Page Styles
   Modern and Professional About Page Design
*/

/* ===== Hero Section ===== */
.about-hero {
    height: 80vh;
    min-height: 600px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%), 
                url('../images/about/hero-about.JPG') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    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.05) 0%, rgba(0, 0, 0, 0.02) 100%);
    z-index: 1;
    opacity: 0.1;
}

.about-hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Changed from center to flex-start */
    text-align: left; /* Changed from center to 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: 4.5rem;
    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: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-left: 5px solid #ffc107;
    border-radius: 0 5px 5px 0;
}

.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: 2rem;
    margin: 0 auto 3rem;
    font-weight: 400;
    max-width: 700px;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    opacity: 1;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    display: inline-block;
}

.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;
}

.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;
}

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

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

@media (max-width: 992px) {
    .about-hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-content p {
        font-size: 1.4rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 768px) {
    .about-hero {
        height: 60vh;
        min-height: 400px;
        padding: 100px 20px 60px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .hero-breadcrumb {
        font-size: 1rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .about-hero {
        height: 50vh;
        min-height: 350px;
        padding: 80px 15px 40px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

/* History Timeline Section */
.history-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.section-header h2 {
    font-size: 2.5rem;
    color: #000000; /* Black color for main heading */
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header p {
    font-size: 1.2rem;
    color: #ffd700; /* Yellow color for subheading */
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 500;
}

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

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

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

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

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

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--secondary-color);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    position: absolute;
    width: 120px;
    padding: 8px 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    border-radius: 5px;
    top: 10px;
    right: -160px;
    font-weight: 600;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -160px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-content p {
    margin-bottom: 15px;
}

.timeline-content img {
    width: 100%;
    border-radius: 5px;
    margin-top: 10px;
}

/* Mission & Vision Section */
.mission-vision {
    padding: 80px 0;
    background-color: #3a5a0f;
    color: #ffffff;
}

.mission-vision-content {
    display: flex;
    gap: 50px;
}

.mission-box, .vision-box {
    flex: 1;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333333;
}

.mission-box {
    background-color: var(--white-color);
    border-top: 5px solid var(--primary-color);
}

.vision-box {
    background-color: var(--white-color);
    border-top: 5px solid var(--secondary-color);
}

.mission-box:hover, .vision-box:hover {
    transform: translateY(-10px);
}

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

.mission-box .icon-box {
    color: var(--primary-color);
}

.vision-box .icon-box {
    color: var(--secondary-color);
}

.icon-box i {
    font-size: 2rem;
}

.mission-box h2, .vision-box h2 {
    margin-bottom: 20px;
    color: #3a5a0f;
}

.mission-box p, .vision-box p {
    margin-bottom: 15px;
    color: #555555;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.team-member {
    display: flex;
    flex-direction: column;
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.member-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.member-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

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

.member-info {
    flex: 1;
    padding: 20px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .member-image {
        flex: 0 0 180px;
    }
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
    
    .member-image {
        padding-top: 100%; /* Square aspect ratio for tablet */
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .member-image {
        padding-top: 75%; /* 4:3 aspect ratio for mobile */
    }
}

@media (max-width: 480px) {
    .member-image {
        padding-top: 100%; /* Square aspect ratio for small mobile */
    }
    
    .member-info {
        padding: 15px;
    }
    
    .member-info h3 {
        font-size: 1.3rem;
    }
    
    .position {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .bio {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
}

.member-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.position {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.bio {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background-color: #3a5a0f;
    color: #ffffff;
}

.values-section .section-header h2 {
    color: #ffffff;
}

.values-section .section-header p {
    color: #ffd700;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #333333;
}

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

.value-icon {
    width: 70px;
    height: 70px;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.value-icon i {
    font-size: 1.8rem;
}

.value-card p {
    color: #555;
    margin-bottom: 0;
    line-height: 1.6;
}

.value-card h3 {
    color: #3a5a0f;
    margin-bottom: 15px;
}

/* Certifications Section */
.certifications-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.certifications-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.certification-item {
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    width: 200px;
    transition: var(--transition);
}

.certification-item:hover {
    transform: translateY(-10px);
}

.certification-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 15px;
}

.certification-item h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.certification-item p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
    text-align: center;
}

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

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #3a5a0f;
}

.cta-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #555555;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .mission-vision-content {
        flex-direction: column;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .about-hero {
        height: 50vh;
        min-height: 350px;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    
    .hero-content p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    /* History Timeline */
    .history-section {
        padding: 50px 0 40px;
    }
    
    .timeline {
        padding: 20px 0;
    }
    
    .timeline::before {
        left: 40px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 15px;
        margin-bottom: 40px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-dot {
        left: 30px;
        right: auto;
        width: 16px;
        height: 16px;
    }
    
    .timeline-item:nth-child(even) .timeline-dot {
        left: 30px;
    }
    
    .timeline-date {
        right: auto;
        left: 80px;
        top: -30px;
        width: 100px;
        font-size: 0.9rem;
    }
    
    .timeline-item:nth-child(even) .timeline-date {
        left: 80px;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-content h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
        margin-bottom: 10px;
        line-height: 1.5;
    }
    
    .timeline-content img {
        border-radius: 5px;
        margin-top: 10px;
        max-height: 200px;
        object-fit: cover;
    }
    
    /* Mission & Vision */
    .mission-vision {
        padding: 50px 0 40px;
    }
    
    .mission-vision-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .mission-box, .vision-box {
        padding: 30px 20px;
    }
    
    .icon-box {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .icon-box i {
        font-size: 1.7rem;
    }
    
    .mission-box h2, .vision-box h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .mission-box p, .vision-box p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Team Section */
    .team-section {
        padding: 50px 0 40px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        gap: 25px;
    }
    
    .team-member {
        flex-direction: column;
    }
    
    .member-image {
        flex: 0 0 200px;
        padding-top: 75%;
    }
    
    .member-info {
        padding: 20px 15px;
    }
    
    .member-info h3 {
        font-size: 1.4rem;
    }
    
    .position {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .bio {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    /* Hero Section */
    .about-hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    /* History Section */
    .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .section-header p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 60px;
        margin-bottom: 35px;
    }
    
    .timeline-dot {
        left: 22px;
        width: 14px;
        height: 14px;
        border-width: 3px;
    }
    
    .timeline-item:nth-child(even) .timeline-dot {
        left: 22px;
    }
    
    .timeline-date {
        left: 60px;
        width: 90px;
        padding: 6px 0;
        font-size: 0.8rem;
    }
    
    .timeline-item:nth-child(even) .timeline-date {
        left: 60px;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }
    
    /* Mission & Vision */
    .mission-box, .vision-box {
        padding: 25px 15px;
    }
    
    .icon-box {
        width: 60px;
        height: 60px;
    }
    
    .icon-box i {
        font-size: 1.5rem;
    }
    
    .mission-box h2, .vision-box h2 {
        font-size: 1.4rem;
    }
    
    .mission-box p, .vision-box p {
        font-size: 0.85rem;
    }
    
    /* Team Section */
    .team-grid {
        max-width: 100%;
    }
    
    .member-image {
        padding-top: 65%;
    }
    
    .member-info {
        padding: 15px 12px;
    }
    
    .member-info h3 {
        font-size: 1.3rem;
    }
    
    .position {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .bio {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Values Section */
    .values-section {
        padding: 50px 0 40px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .value-card {
        padding: 20px 15px;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .value-icon i {
        font-size: 1.5rem;
    }
    
    .value-card h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .value-card p {
        font-size: 0.85rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 50px 0 40px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .cta-content p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Certifications */
    .certifications-section {
        padding: 50px 0 40px;
    }
    
    .certification-item {
        width: 140px;
        padding: 15px 10px;
    }
    
    .certification-item img {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }
    
    .certification-item h3 {
        font-size: 1rem;
    }
    
    .certification-item p {
        font-size: 0.8rem;
    }
}
