/* ====================================
   CASE STUDY PAGES — Override dark theme
   These pages use a light background so we
   need to reset the portfolio's dark CSS vars
   ==================================== */

:root {
    --bg: #f4f4f4;
    --bg-alt: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #f0f0f0;
    --border: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(0, 0, 0, 0.2);
    --text: #333333;
    --text-muted: #666666;
    --text-dim: #999999;
    --white: #1a1a1a;
    --accent: #1d157a;
    --accent-hover: #0e4eef;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    padding: 10px;
    max-width: 800px;
    margin: 0 auto;
    background-color: #f4f4f4;
    color: #333;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #1a1a1a;
    margin: 10px 0;
}

h1 {
    color: #007bff;
    font-size: 2rem;
}

h2 {
    color: #1d157a;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

h3 {
    color: #0e4eef;
    font-size: 1.2rem;
}

p {
    margin: 10px 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.7;
}

ul, ol {
    color: #333;
    margin: 10px 0;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
    color: #333;
    line-height: 1.6;
}

strong, b {
    color: #1a1a1a;
}

a {
    color: #007bff;
}

a:hover {
    color: #0056b3;
}

/* Case study card */
.case-study {
    background: #fff;
    padding: 24px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Navigation button */
.btn-border {
    border: 2px solid #333;
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
    display: inline-block;
    margin: 10px 0;
    border-radius: 6px;
    font-family: 'Inter', Arial, sans-serif;
}

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

.navigation-buttons {
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Images and videos */
.section-image, .section-video {
    border: 1px solid #ddd;
    width: 100%;
    max-width: 800px;
    margin-top: 10px;
    border-radius: 8px;
    display: block;
    height: auto;
    object-fit: cover;
    cursor: pointer;
}

.decorative-tag {
    display: block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #e9ecef;
    color: #343a40;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
}

.overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    color: #000;
    padding: 10px 15px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    z-index: 1001;
    border-radius: 4px;
}

/* Section styling inside case study */
.case-study section {
    padding: 0;
    margin-top: 20px;
}

/* Hide portfolio navbar on case study pages */
.navbar {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding: 8px;
    }
    
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    
    .section-image, .section-video {
        width: 100%;
        height: auto;
        max-height: 250px;
    }
    
    .case-study {
        padding: 16px;
    }
}
