/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e67e22;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --text-color: #333;
    --border-radius: 5px;
    --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: var(--border-radius);
}

nav ul li a:hover, nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: relative;
    height: 30px;
    width: 40px;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    margin: 6px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

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

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/page-header-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* Features Section */
.features {
    background-color: var(--light-color);
}

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

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.feature-card-img {
    height: 200px;
    overflow: hidden;
}

.feature-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.feature-card:hover .feature-card-img img {
    transform: scale(1.05);
}

.feature-card-content {
    padding: 20px;
}

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

.feature-card-content p {
    margin-bottom: 15px;
    color: #666;
}

/* Strategies Grid */
.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.strategy-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.strategy-card-img {
    height: 200px;
    overflow: hidden;
}

.strategy-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.strategy-card:hover .strategy-card-img img {
    transform: scale(1.05);
}

.strategy-card-content {
    padding: 20px;
}

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

.strategy-card-content p {
    margin-bottom: 15px;
    color: #666;
}

.strategy-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.metric {
    font-size: 0.85rem;
    padding: 5px 10px;
    background-color: var(--light-color);
    border-radius: 20px;
    color: var(--dark-color);
}

.metric.success {
    background-color: rgba(39, 174, 96, 0.2);
    color: var(--success-color);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 15px;
    background-color: var(--light-color);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--secondary-color);
    color: white;
}

/* Strategy Detail */
.strategy-detail {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.strategy-header {
    margin-bottom: 30px;
}

.strategy-header h2 {
    margin: 15px 0;
    color: var(--primary-color);
}

.strategy-section {
    margin-bottom: 40px;
}

.strategy-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.strategy-section p, .strategy-section ul, .strategy-section ol {
    margin-bottom: 15px;
}

.strategy-section ul, .strategy-section ol {
    padding-left: 20px;
}

.strategy-section ul li, .strategy-section ol li {
    margin-bottom: 10px;
}

.strategy-chart {
    margin: 20px 0;
    text-align: center;
}

.chart-caption {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

.case-study {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.case-study-details h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Performance Table */
.table-responsive {
    overflow-x: auto;
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.performance-table th, .performance-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.performance-table th {
    background-color: var(--light-color);
    color: var(--primary-color);
    font-weight: 500;
}

.performance-table tr:hover {
    background-color: rgba(236, 240, 241, 0.3);
}

/* Implementation Steps */
.implementation-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.step-card {
    display: flex;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    background-color: var(--primary-color);
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.step-content {
    padding: 20px;
    flex: 1;
}

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

/* Success Factors */
.success-factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.factor-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.factor-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
}

.factor-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Related Strategies */
.related-strategies {
    margin-top: 50px;
}

.related-strategies h3 {
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .case-study {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    nav ul {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transform: translateY(-150%);
        transition: var(--transition);
        opacity: 0;
        visibility: hidden;
        z-index: 999;
    }

    nav.active ul {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .step-card {
        flex-direction: column;
    }

    .step-number {
        width: 100%;
        padding: 10px 0;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}
