/* Prevent horizontal overflow on all pages */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Pages-specific styles */

/* Page Header */
.page-header {
    background-color: #1a237e;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    overflow-x: hidden;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
}

.header-logo .logo {
    width: 40px;
    height: 40px;
}

.header-logo .brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.back-link {
    color: #bbdefb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: white;
}

/* Page Main */
.page-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    width: 100%;
    overflow-x: hidden;
}

/* Page Title Section */
.page-title-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    border-radius: 12px;
}

.page-title {
    font-size: 2.5rem;
    color: #1a237e;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    overflow-x: hidden;
}

.content-section h2 {
    color: #1a237e;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 0.5rem;
}

.content-section h3 {
    color: #2196f3;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
}

.content-section h4 {
    color: #1a237e;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.content-section p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #444;
}

.content-section ul,
.content-section ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #444;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.content-text {
    font-size: 1.1rem;
}

.content-main-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-main-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

/* Mission Content */
.mission-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mission-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #2196f3;
}

.mission-icon {
    width: 50px;
    height: 50px;
    fill: #2196f3;
    margin-bottom: 1rem;
}

.mission-card h3 {
    color: #1a237e;
    margin-bottom: 1rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.member-photo {
    margin-bottom: 1rem;
}

.member-photo .image-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.member-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 3px solid #fff;
}

.member-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    border-color: #2196f3;
}

.member-photo .placeholder-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}

.member-photo p {
    font-size: 0.8rem;
    margin: 0;
}

.team-member h3 {
    color: #1a237e;
    margin-bottom: 0.5rem;
}

.member-role {
    color: #2196f3;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Values Content */
.values-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.value-item h3 {
    color: #1a237e;
    margin-bottom: 1rem;
}

/* Why Choose Content */
.why-choose-content {
    margin-top: 2rem;
}

.choose-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.choose-number {
    background: #2196f3;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.choose-text h3 {
    color: #1a237e;
    margin-bottom: 0.5rem;
}

/* Cookie Table */
.cookie-table {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.cookie-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.cookie-item h4 {
    color: #1a237e;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    background: #e3f2fd;
    padding: 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.cookie-item p {
    margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: #1a237e;
}

/* Achievements Content */
.achievements-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.achievement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid #2196f3;
}

.achievement-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2196f3;
    margin-bottom: 1rem;
}

.achievement-text h3 {
    color: #1a237e;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        width: 100%;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-content {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .values-content {
        grid-template-columns: 1fr;
    }
    
    .choose-item {
        flex-direction: column;
        text-align: center;
    }
    
    .choose-number {
        align-self: center;
    }
    
    .content-section {
        padding: 1.5rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-main {
        padding: 1rem 0;
        width: 100%;
    }
    
    .page-title-section {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
        width: 100%;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 1rem;
        margin-bottom: 2rem;
        width: 100%;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .mission-card,
    .team-member,
    .value-item {
        padding: 1rem;
    }
}