/* Pages CSS - Styles for auxiliary pages */

/* Enhanced Page Styles */
body {
    background-color: #fafafa;
}

/* Page Header */
.page-header {
    background-color: #ffffff;
    border-bottom: 2px solid #e5e7eb;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

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

.page-header .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header .brand-name h1 {
    font-size: 1.5rem;
    margin: 0;
}

.page-header .brand-name a {
    color: #111827;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-header .brand-name a:hover {
    color: #2563eb;
}

.page-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

/* Page Main Content */
.page-main {
    padding: 40px 0 80px;
    min-height: calc(100vh - 200px);
    background-color: #ffffff;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Page Title */
.page-title {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 3px solid #2563eb;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin: -40px -40px 60px -40px;
    padding: 60px 40px 40px;
    border-radius: 12px 12px 0 0;
}

.page-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.page-title p {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

/* Content Sections */
.content-section {
    margin-bottom: 60px;
    padding: 0 40px;
}

.content-section h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #2563eb;
    position: relative;
}

.content-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #0d9488);
    border-radius: 2px;
}

.content-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 32px 0 16px 0;
    padding-left: 16px;
    border-left: 4px solid #ea580c;
    background-color: #f9fafb;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
}

.content-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 24px 0 12px 0;
    color: #2563eb;
}

/* Content Layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    background-color: #f9fafb;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.story-image-container,
.team-image-container {
    margin: 40px 0;
    text-align: center;
    background-color: #f9fafb;
    padding: 20px;
    border-radius: 12px;
}

.story-image-container img,
.team-image-container img {
    transition: transform 0.3s ease;
    box-shadow: 0 8px 20px -2px rgba(0, 0, 0, 0.1);
}

.story-image-container img:hover,
.team-image-container img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.15);
}

.content-text {
    font-size: 1rem;
    line-height: 1.7;
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.content-text-full {
    font-size: 1rem;
    line-height: 1.7;
    max-width: none;
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.content-text p,
.content-text-full p {
    margin-bottom: 20px;
    color: #374151;
    text-align: justify;
}

.content-text ul,
.content-text-full ul {
    margin: 20px 0;
    padding-left: 24px;
    background-color: #f9fafb;
    padding: 20px 20px 20px 44px;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.content-text li,
.content-text-full li {
    margin-bottom: 8px;
    color: #374151;
    line-height: 1.6;
    position: relative;
}

.content-text li::before,
.content-text-full li::before {
    content: "▸";
    color: #2563eb;
    font-weight: bold;
    position: absolute;
    left: -20px;
}

.content-text strong,
.content-text-full strong {
    color: #111827;
    font-weight: 600;
    background-color: #fef3c7;
    padding: 2px 4px;
    border-radius: 3px;
}

.content-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9fafb;
    padding: 20px;
    border-radius: 12px;
}

/* Values Grid (About Page) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #0d9488, #ea580c);
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.value-icon {
    margin-bottom: 20px;
    background-color: #f0f9ff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-item h3 {
    margin-bottom: 12px;
    color: #111827;
    font-size: 1.25rem;
    font-weight: 700;
}

.value-item p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Why Choose Grid (About Page) */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.why-item {
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.why-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2563eb, #0d9488);
}

.why-item:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.1);
}

.why-item h3 {
    margin-bottom: 12px;
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
    padding-left: 16px;
}

.why-item p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding-left: 16px;
}

/* Contact Info */
.contact-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 24px;
    border-radius: 12px;
    margin-top: 24px;
    border: 1px solid #bae6fd;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    margin-bottom: 12px;
    color: #374151;
    font-weight: 500;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.contact-info a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Legal Text Styling */
.content-text-full p:first-of-type {
    font-size: 1.125rem;
    font-weight: 500;
    color: #111827;
    background-color: #eff6ff;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

/* Cookie Banner for Pages */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner-text {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: #2563eb;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: #2563eb;
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background-color: #1d4ed8;
}

.cookie-btn-reject {
    background-color: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.cookie-btn-reject:hover {
    background-color: #e5e7eb;
}

.cookie-btn-customize {
    background-color: transparent;
    color: #2563eb;
    border-color: #2563eb;
}

.cookie-btn-customize:hover {
    background-color: #2563eb;
    color: #ffffff;
}

/* Cookie Preferences Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
}

.cookie-modal-header {
    margin-bottom: 24px;
}

.cookie-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.cookie-modal-header p {
    color: #6b7280;
    font-size: 0.875rem;
}

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cookie-category-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #111827;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
    background-color: #2563eb;
}

.cookie-toggle input:checked + .cookie-slider:before {
    transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-category-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cookie-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.cookie-modal-btn {
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.cookie-modal-btn-save {
    background-color: #2563eb;
    color: #ffffff;
}

.cookie-modal-btn-save:hover {
    background-color: #1d4ed8;
}

.cookie-modal-btn-cancel {
    background-color: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.cookie-modal-btn-cancel:hover {
    background-color: #e5e7eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-main {
        margin: 10px;
        border-radius: 8px;
    }
    
    .page-title {
        margin: -30px -20px 40px -20px;
        padding: 40px 20px 30px;
    }
    
    .content-section {
        padding: 0 20px;
    }
    
    .page-header {
        padding: 16px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .page-nav {
        gap: 16px;
    }
    
    .page-main {
        padding: 30px 0 60px;
    }
    
    .page-title {
        margin-bottom: 40px;
        padding-bottom: 30px;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .content-section {
        margin-bottom: 40px;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    
    .story-image-container img,
    .team-image-container img {
        height: 250px;
        width: 100%;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-modal-content {
        margin: 10px;
        padding: 20px;
    }
    
    .cookie-modal-actions {
        flex-direction: column;
    }
    
    .value-item {
        padding: 24px 16px;
    }
    
    .content-text,
    .content-text-full {
        padding: 16px;
    }
    
    .content-text ul,
    .content-text-full ul {
        padding: 16px 16px 16px 36px;
    }
}

@media (max-width: 480px) {
    .page-main {
        margin: 5px;
    }
    
    .page-title {
        margin: -20px -10px 30px -10px;
        padding: 30px 10px 20px;
    }
    
    .content-section {
        padding: 0 10px;
    }
    
    .page-header .logo-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .page-title h1 {
        font-size: 1.75rem;
    }
    
    .content-section h2 {
        font-size: 1.375rem;
    }
    
    .page-nav {
        flex-direction: column;
        gap: 12px;
    }
    
    .cookie-banner {
        padding: 16px;
    }
    
    .cookie-btn {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
    
    .content-text,
    .content-text-full {
        padding: 12px;
    }
    
    .content-section h3 {
        padding: 8px 12px;
        font-size: 1.125rem;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
    }
}