/* ===== Global Styles ===== */
:root {
    --primary-red: #cc0000;
    --dark-gray: #333;
    --light-gray: #f4f4f4;
    --text-gray: #555;
    --text-color-light: #fff;
    --font-family: 'Poppins', sans-serif;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Core Principles Section - Optimized ===== */
/* Header Styles - Optimized for Performance */
.principles-header-wrapper {
    position: relative;
    margin-bottom: 60px;
    padding: 40px 0;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
    contain: content;
}

.principles-header-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: transparent;
    border-radius: 20px;
}

.header-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.08) 0%, rgba(255, 107, 107, 0.08) 100%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
    transform: translateZ(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    pointer-events: none;
}

.header-shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation: float 12s ease-in-out infinite;
    transform: translateZ(0);
    will-change: transform;
}

.header-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation: float 15s ease-in-out infinite reverse;
    transform: translateZ(0);
    will-change: transform;
}

.section-header-inner {
    position: relative;
    padding: 20px 0;
}

.section-tagline {
    display: inline-block;
    color: var(--primary-red);
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    position: relative;
    padding: 5px 15px;
    background: rgba(204, 0, 0, 0.1);
    border-radius: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-size: 3em;
    color: #2c3e50;
    margin: 15px 0 25px;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #2c3e50, #34495e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #2c3e50; /* Fallback for browsers that don't support background-clip: text */
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-underline {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    max-width: 300px;
}

.title-underline .line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    flex: 1;
    opacity: 0.7;
}

.title-underline .dot {
    width: 10px;
    height: 10px;
    background: var(--primary-red);
    border-radius: 50%;
    margin: 0 15px;
    position: relative;
    animation: dot-pulse 2s infinite;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.2em;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    padding: 0 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(0, -20px, 0) rotate(2deg);
    }
}

@keyframes dot-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .principles-header-content {
        padding: 30px 15px;
    }
    
    .section-title {
        font-size: 2.2em;
    }
    
    .section-subtitle {
        font-size: 1em;
    }
    
    .title-underline {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8em;
    }
    
    .section-tagline {
        font-size: 0.9em;
        padding: 3px 10px;
    }
    
    .section-subtitle {
        font-size: 0.95em;
    }
}
/* Modern Light Theme with Enhanced Background */
:root {
    --light-bg: #f8f9fa;
    --light-surface: #ffffff;
    --light-surface-hover: #f0f2f5;
    --dark-text: #2c3e50;
    --text-secondary: #6c757d;
    --primary-red: #e63946;
    --primary-red-hover: #ff4d4d;
    --border-color: rgba(0, 0, 0, 0.08);
    --accent-blue: #457b9d;
    --accent-yellow: #ffd166;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 5% 10%, rgba(230, 57, 70, 0.06) 0%, transparent 15%),
        radial-gradient(circle at 95% 90%, rgba(69, 123, 157, 0.06) 0%, transparent 15%),
        linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Animated background elements */
/* Optimized background pattern - static instead of animated */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 49px, rgba(0,0,0,0.02) 49px, rgba(0,0,0,0.02) 50px, transparent 50px),
        linear-gradient(transparent 49px, rgba(0,0,0,0.02) 49px, rgba(0,0,0,0.02) 50px, transparent 50px);
    background-size: 80px 80px;
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
}

@keyframes backgroundMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 500px 500px;
    }
}

.mission-vision-policy-section {
    padding: 100px 0;
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(230, 57, 70, 0.02) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 80%, rgba(69, 123, 157, 0.02) 0%, transparent 40%),
        linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
    position: relative;
    overflow: hidden;
    /* Removed backdrop-filter as it's very performance intensive */
    border-top: 1px solid rgba(0,0,0,0.02);
    border-bottom: 1px solid rgba(0,0,0,0.02);
    /* Simplified shadow for better performance */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.01);
    transform: translateZ(0);
    will-change: transform;
}

/* Simplified background pattern - static for better performance */
.mission-vision-policy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 49px, rgba(0,0,0,0.01) 49px, rgba(0,0,0,0.01) 50px, transparent 50px);
    background-size: 80px 80px;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

.mission-vision-policy-section .section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.mission-vision-policy-section .section-tagline {
    display: inline-block;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 10px;
}

.mission-vision-policy-section .section-tagline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-red);
}

.mission-vision-policy-section .section-title {
    font-size: 2.8em;
    color: #2c3e50;
    margin: 15px 0;
    position: relative;
    display: inline-block;
}

.mission-vision-policy-section .section-subtitle {
    color: #6c757d;
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* MVP Grid Layout */
.mvp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* MVP Card Styles */
.mvp-card {
    background: var(--light-surface);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    z-index: 1;
    color: var(--dark-text);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow;
    /* Reduce animation intensity */
    transform-style: preserve-3d;
    perspective: 1000px;
}

.mvp-card:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-red);
    background-color: var(--light-surface-hover);
    /* Disable hover effects on mobile */
    @media (hover: none) {
        transform: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    }
}

.mvp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.mvp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.mvp-card:hover::before {
    transform: scaleX(1);
}

.mvp-card .mvp-icon {
    width: 80px;
    height: 80px;
    background: rgba(204, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 32px;
    color: var(--primary-red);
    transition: all 0.4s ease;
}

.mvp-card:hover .mvp-icon {
    background: var(--primary-red);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.mvp-card h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.mvp-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-red);
    transition: width 0.4s ease;
}

.mvp-card:hover h3::after {
    width: 100px;
}

.mvp-card p {
    color: #6c757d;
    font-size: 1.1em;
    line-height: 1.7;
    margin: 0;
    transition: color 0.3s ease;
}

.mvp-card:hover p {
    color: #495057;
}

@keyframes backgroundScroll {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 30px 30px, 60px 60px;
    }
}

/* Text and element adjustments for dark theme */
.section-title {
    color: var(--dark-text);
    background: linear-gradient(90deg, #e63946, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-subtitle {
    color: var(--text-secondary);
    font-weight: 400;
}

.mvp-card p, .value-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.value-card {
    background: var(--light-surface);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.03);
}

.value-card:hover {
    background: var(--light-surface-hover);
    border-color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Values Section */
.values-section {
    background: var(--dark-surface);
    border-radius: 16px;
    padding: 50px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--dark-text);
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-red), #ff6b6b);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.value-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.value-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.value-card:hover::after {
    transform: scaleX(1);
}

.value-card .value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(204, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-red);
    transition: all 0.4s ease;
}

.value-card:hover .value-icon {
    background: var(--primary-red);
    color: white;
    transform: rotateY(180deg);
}

.value-card h4 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
}

.value-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.value-card:hover h4::after {
    width: 50px;
}

.value-card p {
    color: #6c757d;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.value-card:hover p {
    color: #495057;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mvp-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mission-vision-policy-section {
        padding: 60px 0;
    }
    
    .mission-vision-policy-section .section-title {
        font-size: 2.2em;
    }
    
    .mvp-card {
        padding: 30px;
    }
    
    .values-section {
        padding: 30px 20px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .mission-vision-policy-section .section-title {
        font-size: 1.8em;
    }
    
    .mvp-card .mvp-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .mvp-card h3 {
        font-size: 1.5em;
    }
    
    .value-card {
        padding: 25px 15px;
    }
}

.tab-content p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #495057;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Values Grid inside tab */
.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.value-item i {
    font-size: 1.5em;
    color: var(--primary-red);
    margin-top: 5px;
}

.value-item h4 {
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #343a40;
}

.value-item p {
    font-size: 0.9em;
    margin: 0;
    color: #6c757d;
    line-height: 1.5;
}

/* Quality Badges inside tab */
.quality-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.badge {
    background: rgba(204, 0, 0, 0.1);
    color: var(--primary-red);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .principles-content-wrapper {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .principles-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .tab-link {
        width: auto;
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* --- CSS Variables for Consistency --- */
:root {
    --primary-red: #cc0000; /* Ibinalik sa pula para sa consistency */
    --dark-gray: #333;
    --light-gray: #f4f4f4;
    --text-gray: #555;
    --text-color-light: #fff; 
    --font-family: 'Poppins', sans-serif;
    --max-width: 1200px;
}

/* Basic Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth; /* Adds smooth scrolling for anchor links */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto; /* Ang padding ay kinokontrol na ng home.css */
}

/* Page Title Section for non-home pages */
.page-title-section {
    position: relative;
    padding: 120px 20px;
    text-align: center;
    color: #ffffff;
    background-image: url('https://images.pexels.com/photos/3184339/pexels-photo-3184339.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
}

.page-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.6); /* Dark blue overlay */
    z-index: 1;
}

.page-title-section h1 {
    position: relative;
    z-index: 2;
    font-size: 3.5em;
    font-weight: 900;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .page-title-section h1 {
        font-size: 2.5em;
    }
}

/* Compact About Us Section Styling */
.about-us-section {
    padding: 60px 0;
    position: relative;
    background: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center;
    background-size: cover;
    overflow: hidden;
    color: #333;
}

/* Semi-transparent overlay to show background image */
.about-us-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 0;
}

/* Gradient overlay to enhance text readability */
.about-us-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.7) 100%
    );
    z-index: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.about-us-section .container {
    position: relative;
    z-index: 2;
}

/* Clean content container */
.about-content-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 30px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

/* Animated border accent */
.about-content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, var(--primary-red), transparent) 1;
    border-radius: 16px;
    animation: borderPulse 4s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes borderPulse {
    0% { border-image-source: linear-gradient(45deg, var(--primary-red), transparent); }
    50% { border-image-source: linear-gradient(45deg, transparent, var(--primary-red), transparent); }
    100% { border-image-source: linear-gradient(45deg, var(--primary-red), transparent); }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .about-content-wrapper {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .about-us-section {
        padding: 40px 0;
    }
    
    .about-content-wrapper {
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .info-title {
        font-size: 1.8em;
    }
    
    .info-text {
        font-size: 0.9em;
        line-height: 1.6;
    }
}

.about-content-wrapper {
    display: flex;
    gap: 50px; /* Binawasan ang espasyo para mas maging konektado ang itsura */
    align-items: center;
    justify-content: space-between;
}

/* -------------------- Image Side (Left) -------------------- */
.about-image-side {
    flex: 0 0 45%; /* Binalik sa mas balanseng sukat */
    position: relative;
    background-color: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

.image-border {
    display: none; /* Inalis na ang lumang offset border */
}

/* ===== "OUR CORE PRINCIPLE" SECTION ===== */
/* Premium 3D Design with Interactive Elements */

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

@keyframes particleMove {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-10px) translateX(5px); }
  100% { transform: translateY(0) translateX(0); }
}

.core-principles {
  max-width: 1400px;
  margin: 8rem auto;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
  overflow: visible;
  perspective: 1200px;
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
  border-radius: 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.core-principles:hover {
  transform: translateY(-10px) rotateX(1deg) rotateY(1deg);
  box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.15);
}

.core-principles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(204, 0, 0, 0.05) 0%, transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(255, 107, 107, 0.05) 0%, transparent 25%);
  z-index: -1;
  border-radius: inherit;
  transform: translateZ(-10px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.core-principles:hover::before {
  transform: translateZ(-5px) scale(1.02);
  opacity: 0.8;
}

.core-principles-header {
  text-align: center;
  margin-bottom: 6rem;
  position: relative;
  padding: 0 1rem 3rem;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 30%, rgba(255,255,255,0.8) 70%, rgba(255,255,255,0) 100%);
  border-radius: 15px;
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.core-principles-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
  filter: drop-shadow(0 0 5px rgba(204, 0, 0, 0.3));
}

.core-principles-header h2 {
  font-size: 3.2rem;
  background: linear-gradient(135deg, #2c3e50, #4a5f7a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 auto 1.5rem;
  position: relative;
  display: inline-block;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transform: translateZ(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.core-principles-header:hover h2 {
  transform: translateZ(30px) scale(1.02);
  text-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.core-principles-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), #ff6b6b);
  border-radius: 2px;
  transition: all 0.4s ease;
}

.core-principles-header p {
  color: #666;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  padding: 3rem 0;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* 3D Card Effect */
@keyframes cardHover {
  0% { transform: translateZ(0) rotateX(0) rotateY(0); }
  50% { transform: translateZ(20px) rotateX(2deg) rotateY(2deg); }
  100% { transform: translateZ(0) rotateX(0) rotateY(0); }
}

/* Glow Effect */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 15px rgba(204, 0, 0, 0.1); }
  50% { box-shadow: 0 0 30px rgba(204, 0, 0, 0.2); }
}

.principle-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 20px;
  padding: 3.5rem 2.5rem;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1;
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  animation: glow 4s ease-in-out infinite;
}

.principle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
  z-index: -1;
  border-radius: inherit;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.7;
}

.principle-card:hover {
  transform: translateY(-10px) translateZ(20px) rotateX(5deg) rotateY(5deg);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(204, 0, 0, 0.1);
  animation: none;
  z-index: 2;
}

.principle-card:hover::before {
  opacity: 1;
  transform: scale(1.03);
}

.principle-card:hover .principle-icon {
  transform: translateZ(30px) scale(1.1);
  box-shadow: 0 10px 25px rgba(204, 0, 0, 0.15);
}

.principle-card:hover h3 {
  transform: translateZ(20px);
  color: #2c3e50;
}

.principle-card:hover p {
  transform: translateZ(10px);
  color: #4a5568;
}

.principle-icon {
  font-size: 2.5rem;
  color: #fff;
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--primary-red), #ff5252);
  border-radius: 25px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(204, 0, 0, 0.15);
  transform-style: preserve-3d;
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

.principle-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%) rotate(45deg);
  transition: transform 0.6s ease;
}

.principle-card:hover .principle-icon::before {
  transform: translateX(100%) rotate(45deg);
}

.principle-icon i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.principle-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(204, 0, 0, 0.1), rgba(255, 107, 107, 0.1));
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.principle-card:hover .principle-icon {
  transform: translateY(-5px);
  background: rgba(204, 0, 0, 0.1);
}

.principle-card:hover .principle-icon i {
  transform: scale(1.1);
}

.principle-card:hover .principle-icon::before {
  transform: scale(1);
}

.principle-card h3 {
  color: #2c3e50;
  margin: 0 0 1.5rem;
  font-size: 1.7rem;
  font-weight: 800;
  position: relative;
  padding-bottom: 15px;
  line-height: 1.4;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateZ(0);
  text-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.principle-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-red), #ff8a8a);
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.principle-card:hover h3::after {
  width: 70px;
  background: linear-gradient(90deg, var(--primary-red), #ff6b6b);
}

.principle-card p {
  color: #5a6778;
  line-height: 1.8;
  margin: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 1.1rem;
  text-align: center;
  transform: translateZ(0);
  position: relative;
  z-index: 1;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Add subtle pattern overlay */
.principle-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  opacity: 0.5;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.principle-card:hover::after {
  opacity: 0.8;
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% { background-position: 0 0, 10px 10px; }
  100% { background-position: 20px 20px, 30px 30px; }
}

/* Add subtle pattern overlay */
.principle-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  opacity: 0.5;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.principle-card:hover::after {
  opacity: 0.8;
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% { background-position: 0 0, 10px 10px; }
  100% { background-position: 20px 20px, 30px 30px; }
}

.principle-card:hover {
  transform: translateY(-10px) translateZ(20px) rotateX(5deg) rotateY(5deg);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(204, 0, 0, 0.1);
  animation: none;
  z-index: 2;
}

.principle-card:hover::before {
  opacity: 1;
  transform: scale(1.03);
}

.principle-card:hover .principle-icon {
  transform: translateZ(30px) scale(1.1);
  box-shadow: 0 10px 25px rgba(204, 0, 0, 0.15);
}

.principle-card:hover h3 {
  transform: translateZ(20px);
  color: #2c3e50;
}

.principle-card:hover p {
  transform: translateZ(10px);
  color: #4a5568;
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.principle-card {
  animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
  transform: translateY(30px);
}

/* Staggered delays for cards */
.principle-card:nth-child(1) { animation-delay: 0.1s; }
.principle-card:nth-child(2) { animation-delay: 0.3s; }
.principle-card:nth-child(3) { animation-delay: 0.5s; }
.principle-card:nth-child(4) { animation-delay: 0.7s; }

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .core-principles {
    padding: 0 1.5rem;
  }
  
  .principles-grid {
    gap: 2rem;
  }
  
  .principle-card {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .core-principles {
    margin: 4rem auto;
  }
  
  .core-principles-header h2 {
    font-size: 2.2rem;
  }
  
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem 0;
  }
  
  .principle-card {
    padding: 2.5rem 2rem;
  }
  
  .core-principles-header {
    margin-bottom: 3rem;
  }
  
  .core-principles-header p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .core-principles-header h2 {
    font-size: 1.8rem;
  }
  
  .principle-card {
    padding: 2rem 1.5rem;
  }
  
  .principle-icon {
    width: 70px;
    height: 70px;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }
  
  .principle-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
  }
  
  .principle-card p {
    font-size: 1rem;
  }
}

.about-image-side:hover {
    /* Hover effects for the container */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    transition: all 0.3s ease-out;
}

.about-image-side:hover .about-image {
    transform: scale(1.05);
}

/* -------------------- Text/Information Side (Right) -------------------- */
.about-info-side {
    flex: 1;
    color: #fff;
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-title {
    font-size: 2.2em;
    font-weight: 800;
    color: #111;
    margin: 0 0 10px 0;
    line-height: 1.2;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

.info-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.about-info-side:hover .info-title::after {
    width: 100px;
}

.info-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-red), #e53e3e);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.about-info-side:hover .info-title::after {
    width: 120px;
}

.info-subtitle {
    display: inline-block;
    font-size: 0.9em;
    color: #fff;
    background: var(--primary-red);
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
    position: relative;
    transform: translateY(15px);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.7s forwards;
    transition: all 0.2s ease;
}

.info-subtitle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.4);
}

.info-subtitle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.about-info-side:hover .info-subtitle::after {
    transform: translateX(100%);
}

.info-text {
    color: #333;
    margin-bottom: 15px;
    font-size: 0.95em;
    line-height: 1.7;
    position: relative;
    padding-left: 15px;
    border-left: 2px solid var(--primary-red);
    transform: translateY(15px);
    opacity: 0;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
    animation: fadeInUp 0.6s ease-out 0.8s forwards;
}

.info-text:last-child {
    margin-bottom: 5px;
}

.info-text:last-child {
    margin-bottom: 0;
}

.info-text strong {
    color: #fff;
    font-weight: 600;
    position: relative;
    padding: 0 2px;
    background: linear-gradient(to right, rgba(220, 38, 38, 0.3), rgba(220, 38, 38, 0.3));
    box-shadow: 2px 0 0 var(--primary-red), -2px 0 0 var(--primary-red);
    transition: all 0.3s ease;
}

.info-text strong:hover {
    background: linear-gradient(to right, rgba(220, 38, 38, 0.5), rgba(220, 38, 38, 0.5));
    box-shadow: 4px 0 0 var(--primary-red), -4px 0 0 var(--primary-red);
}

.about-info-side:hover .info-text {
    border-left-color: var(--primary-red);
    padding-left: 30px;
}

.info-text:not(:last-child) {
    margin-bottom: 30px;
}

.info-text strong {
    color: #2d3748;
    font-weight: 600;
    position: relative;
    padding: 0 2px;
    background: linear-gradient(to right, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.1));
    box-shadow: 2px 0 0 rgba(220, 38, 38, 0.2), -2px 0 0 rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
}

.info-text strong:hover {
    background: linear-gradient(to right, rgba(220, 38, 38, 0.15), rgba(220, 38, 38, 0.15));
    box-shadow: 4px 0 0 rgba(220, 38, 38, 0.3), -4px 0 0 rgba(220, 38, 38, 0.3);
}

/* Add a subtle animation to the text content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-info-side {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive Adjustments for About Us Section */
@media (max-width: 992px) {
    .about-content-wrapper {
        flex-direction: column; /* Stack vertically on tablets/mobile */
        gap: 30px;
        text-align: center;
    }
    
    .about-image-side {
        order: 1; /* Ilagay ang larawan sa itaas */
        flex: 1 1 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .about-info-side {
        order: 2; /* Ilagay ang teksto sa ibaba */
        padding-left: 0;
        animation: none; 
        opacity: 1; 
        transform: none; 
    }
    
    .info-title {
        font-size: 2em;
    }
    
    .about-image-side:hover .about-image {
        transform: scale(1.02); /* Less dramatic tilt on hover for mobile */
    }
}

/* Section Styling */
.clients-section {
    padding: 80px 0;
    background-color: var(--background-gray);
    text-align: center;
}

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Logo Grid Layout */
.logo-grid {
    display: grid;
    /* Responsive Grid: Magpapakita ng 3 hanggang 5 column depende sa laki ng screen */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.logo-item {
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    height: 100px; /* Fixed height for uniformity */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    
    /* Animation base */
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    opacity: 0.8; /* Bahagyang faded para mag-blend in */
}

/* Hover Animation: Pag-angat at pagiging matingkad ng Logo */
.logo-item:hover {
    transform: translateY(-5px); /* Bahagyang umangat */
    opacity: 1; /* Maging matingkad */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.logo-item img {
    max-width: 80%;
    max-height: 80%;
    /* Gawing grayscale ang mga logo at ibalik ang kulay pagka-hover (Propesyonal na effect) */
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.logo-item:hover img {
    filter: grayscale(0%); /* Ibalik ang orihinal na kulay */
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }
    .about-us-section .btn-primary {
        display: block;
        max-width: 300px;
        margin: 15px auto 0;
    }
    .logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* 2 columns on mobile */
        gap: 20px;
    }
}

/* --- Enhanced Journey/Timeline Section --- */
.journey-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.journey-section .section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    font-size: 2.5em;
    color: var(--text-dark);
}

.journey-section .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-red);
    margin: 15px auto 0;
    border-radius: 2px;
}

.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Animated central line */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-red), #ff6b6b, var(--primary-red));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
    animation: lineGrow 2s ease-out forwards;
}

@keyframes lineGrow {
    from { height: 0; top: 50%; }
    to { height: 100%; top: 0; }
}

/* Timeline item */
.timeline-item {
    padding: 20px 0;
    position: relative;
    width: 50%;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(30px);
    will-change: opacity;
}

.fade-in-on-scroll {
    opacity: 0;
    transition: opacity 0.4s ease-out;
    will-change: opacity;
    /* Only enable animations if user prefers reduced motion is not set */
    @media (prefers-reduced-motion: reduce) {
        transition: none;
    }
}

/* Left items */
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 80px;
    text-align: right;
    transform: translateX(-50px);
}

/* Right items */
.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 80px;
    text-align: left;
    transform: translateX(50px);
}

/* Animation trigger */
.timeline-item.is-visible {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.timeline-content {
    padding: 25px 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-red);
}

.timeline-item:nth-child(odd) .timeline-content {
    border-left: none;
    border-right: 4px solid var(--primary-red);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border: 4px solid var(--primary-red);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -38px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -38px;
}

.timeline-content:hover::before {
    background: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.2);
}

.timeline-content h3 {
    font-size: 1.4em;
    color: var(--primary-red);
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.timeline-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-red);
}

.timeline-item:nth-child(odd) .timeline-content h3 {
    padding-left: 0;
    padding-right: 30px;
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content h3::before {
    left: auto;
    right: 0;
}

.timeline-content p {
    margin: 8px 0 0;
    font-size: 1em;
    color: var(--text-gray);
    line-height: 1.6;
    position: relative;
    padding-left: 30px;
}

.timeline-item:nth-child(odd) .timeline-content p {
    padding-left: 0;
    padding-right: 30px;
    text-align: right;
}

.timeline-date {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-red);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9em;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -120px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -120px;
}

.timeline-item:hover .timeline-date {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.3);
}

/* --- Responsive Adjustments for Timeline --- */
@media (max-width: 992px) {
    .journey-section {
        padding: 70px 0;
    }
    
    .journey-section .section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }
    
    .timeline-wrapper {
        padding: 20px 0 40px;
    }
    
    /* Move line to the left */
    .timeline-wrapper::before {
        left: 30px;
        margin-left: 0;
    }

    /* Make all items full width and on the right */
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 20px;
        text-align: left;
        transform: translateX(30px);
        margin-bottom: 30px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        padding-right: 20px;
        padding-left: 80px;
        text-align: left;
    }
    
    .timeline-item.is-visible {
        transform: translateX(0);
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-content::before {
        left: -38px !important;
        right: auto !important;
    }
    
    .timeline-date {
        position: relative !important;
        display: inline-block;
        margin: 0 0 15px 0 !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
    
    .timeline-content h3,
    .timeline-content p {
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-content h3::before {
        display: none;
    }
    }
    /* Make all arrows point left */
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -18px;
        border-width: 12px 18px 12px 0;
        border-color: transparent var(--text-dark) transparent transparent;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        content: '';
        position: absolute;
        top: 50%;
        left: -15px;
        border-width: 10px 15px 10px 0;
        border-width: 10px 15px 10px 0; /* Creates the inner part of the arrow */
        border-color: transparent #fff transparent transparent;
    }

    /* Position date tags above the content box */
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item .timeline-date {
        position: static;
        transform: none;
        margin-bottom: 10px;
        display: inline-block;
        width: auto;
        right: auto; /* Reset desktop positioning */
    }
    .timeline-content h3 {
        font-size: 1.1em;
    }
    .timeline-item {
        padding-top: 0;
    }

/* --- Mission, Vision & Policy Section --- */
.mission-vision-policy-section {
    padding: 100px 0;
    background-color: var(--background-gray);
    text-align: center;
}

.mission-vision-policy-section .section-title {
    margin-bottom: 15px;
}

.mission-vision-policy-section .section-subtitle {
    font-size: 1.1em;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.mvp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.team-photo-container {
    margin-bottom: 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.team-photo-container img {
    width: 100%;
    height: auto;
    display: block;
}

.mvp-card {
    background: var(--background-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid var(--primary-red);
}

.mvp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.mvp-icon {
    font-size: 3em;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.mvp-card h3 {
    font-size: 1.8em;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.mvp-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

.quality-policy-wrapper {
    background: var(--background-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    border-left: 5px solid var(--primary-red);
    text-align: left;
}

.quality-policy-wrapper h3 {
    font-size: 2em;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.quality-policy-wrapper p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Responsive for MVP Section */
@media (max-width: 992px) {
    .mvp-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
}
