/* Custom CSS for Social Growth */

/* Custom Properties */
:root {
    --primary-color: #2b3f8b;
    --background-color: #fbfbff;
    --text-color: #666565;
    --heading-color: #111a24;
    --light-gray: #f8f9fa;
}

/* Typography */
body {
    font-family: "PT Sans", sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Merriweather", serif;
    color: var(--heading-color);
}

/* Bootstrap Override */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1e2d63;
    border-color: #1e2d63;
}

/* Header */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-family: "Merriweather", serif;
    font-size: 1.5rem;
}

/* Body spacing for fixed header */
body {
    padding-top: 80px;
}

/* Section Titles with Lines */
.section-title {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.title-line {
    position: absolute;
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.title-line-white {
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 3px;
    background-color: white;
}

/* Content Dividers */
.content-divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 1rem 0 2rem 0;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    backdrop-filter: blur(5px);
}

/* Direction Cards */
.direction-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

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

/* Importance Cards */
.importance-card {
    background: white;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.importance-card:hover {
    transform: translateX(5px);
}

/* Trend Items */
.trend-item {
    border-left: 3px solid white;
    padding-left: 1rem;
}

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

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

/* Article Preview Cards */
.article-preview-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.article-preview-card:hover {
    transform: translateY(-5px);
}

/* Page Headers for Secondary Pages */
.page-header {
    background-color: #e9eeff;
    padding: 8rem 0 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Dark Service Cards */
.service-card.dark {
    background: var(--primary-color);
    color: white;
}

.service-card.dark h4 {
    color: white;
}

/* Case Study Cards */
.case-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-card img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Contact Info */
.contact-info {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 2rem;
}

/* Map Container */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    border-top: 3px solid var(--primary-color);
}

/* Thank You Page */
.thank-you-card {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

/* Legal Pages */
.legal-content {
    background: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .title-line,
    .title-line-white {
        display: none;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 2rem !important;
    }
    
    .page-header {
        padding: 6rem 0 3rem 0;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    .thank-you-card {
        padding: 2rem;
        margin: 1rem;
    }
}

/* Form Validation Styles */
.form-control:invalid {
    border-color: #dc3545;
}

.form-control:valid {
    border-color: #28a745;
}

/* Animation for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(43, 63, 139, 0.25);
}

/* Print styles */
@media print {
    .header-fixed,
    .cookie-banner,
    .btn {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
}
