/* ==========================================================================
   Base Styles and Variables
   ========================================================================== */

:root {
    /* Color Palette */
    --primary-color: #6a1b9a; /* Deep Violet */
    --primary-light: #9c4dcc;
    --primary-dark: #38006b;
    --secondary-color: #1565c0; /* Electric Blue */
    --secondary-light: #5e92f3;
    --secondary-dark: #003c8f;
    --neutral-light: #f5f5f5;
    --neutral-medium: #e0e0e0;
    --neutral-dark: #616161;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-light: #ffffff;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    
    /* Typography */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-secondary: 'Raleway', Georgia, 'Times New Roman', Times, serif;
    --font-code: 'Fira Code', 'Courier New', Courier, monospace;
    
    /* Spacing */
    --space-xxs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 5rem;
    
    /* Borders */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-width: 1px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Layout */
    --container-max-width: 1200px;
    --container-padding: 1rem;
    --header-height: 80px;
    --footer-height: auto;
    
    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ==========================================================================
   Reset and Base Elements
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--neutral-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--space-md);
}

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

a:hover, a:focus {
    color: var(--secondary-light);
    text-decoration: underline;
}

ul, ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: var(--space-xl) 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

header {
    background-color: var(--primary-dark);
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-md);
}

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: var(--space-xs);
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: var(--space-md);
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

nav ul li a:hover, nav ul li a:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a.active {
    background-color: var(--primary-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.hamburger span {
    height: 2px;
    width: 100%;
    background-color: var(--text-light);
    border-radius: 1px;
    transition: all var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: var(--text-light);
    text-align: center;
    padding: var(--space-xxl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto var(--space-lg);
}

/* ==========================================================================
   What You'll Learn Section
   ========================================================================== */

.what-you-learn {
    background-color: white;
    text-align: center;
}

.what-you-learn h2 {
    margin-bottom: var(--space-xl);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.feature {
    padding: var(--space-md);
    border-radius: var(--border-radius-md);
    background-color: var(--neutral-light);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature .icon {
    margin-bottom: var(--space-sm);
    color: var(--primary-color);
}

.feature .icon svg {
    width: 48px;
    height: 48px;
}

.feature h3 {
    margin-bottom: var(--space-sm);
}

.feature p {
    color: var(--text-secondary);
}

/* ==========================================================================
   Topics Section
   ========================================================================== */

.topics {
    background-color: var(--neutral-light);
}

.topics h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.topic-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

.topic-card .content {
    padding: var(--space-md);
}

.topic-card h3 {
    margin-bottom: var(--space-sm);
}

.topic-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.read-more:hover {
    color: var(--primary-light);
}

.read-more::after {
    content: '→';
    margin-left: var(--space-xxs);
    transition: transform var(--transition-fast);
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* ==========================================================================
   CTA & Subscription
   ========================================================================== */

.cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: var(--text-light);
    text-align: center;
    padding: var(--space-xxl) 0;
}

.cta h2 {
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.cta p {
    max-width: 700px;
    margin: 0 auto var(--space-lg);
}

.subscription-counter {
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.counter-label {
    color: rgba(255, 255, 255, 0.8);
}

.subscription-form, .newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.subscription-form input,
.newsletter-form input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
    font-size: 1rem;
}

.subscription-form input:focus,
.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-light);
}

.subscription-success,
.newsletter-success {
    display: none;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-md);
    color: var(--text-light);
    font-weight: 500;
}

.subscription-success svg,
.newsletter-success svg {
    margin-right: var(--space-xs);
}

.subscription-success.visible,
.newsletter-success.visible {
    display: flex;
    animation: fadeIn var(--transition-normal);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-md);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
}

.btn:hover, .btn:focus {
    background-color: var(--primary-light);
    color: var(--text-light);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-alt {
    background-color: transparent;
    border: 2px solid var(--text-light);
}

.btn-alt:hover, .btn-alt:focus {
    background-color: var(--text-light);
    color: var(--primary-dark);
}

.subscription-form .btn,
.newsletter-form .btn {
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

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

.btn-secondary {
    background-color: var(--neutral-dark);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.btn-tertiary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background-color: var(--text-primary);
    color: var(--text-light);
    padding: var(--space-xl) 0 var(--space-md);
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: var(--space-xs);
}

.footer-links h4 {
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-light);
    text-decoration: none;
}

.footer-contact h4 {
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.footer-contact address {
    font-style: normal;
    margin-bottom: var(--space-md);
}

.footer-contact address p {
    margin-bottom: var(--space-xs);
    color: rgba(255, 255, 255, 0.7);
}

.social-icons {
    display: flex;
    gap: var(--space-sm);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* ==========================================================================
   Cookie Consent
   ========================================================================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: var(--space-md);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-lg);
    display: none;
}

.cookie-consent.visible {
    display: block;
}

.cookie-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: var(--space-md);
}

.cookie-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.cookie-learn-more {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.cookie-learn-more a {
    color: var(--text-light);
    text-decoration: underline;
}

/* ==========================================================================
   Page Banner
   ========================================================================== */

.page-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: var(--text-light);
    text-align: center;
    padding: var(--space-xl) 0;
    position: relative;
}

.page-banner h1 {
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

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

/* ==========================================================================
   Virtual Worlds Page
   ========================================================================== */

.world-building {
    background-color: white;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
}

.principles {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.principle-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.principle-card.reverse {
    direction: rtl;
}

.principle-card.reverse .content {
    direction: ltr;
}

.principle-card img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.principle-card h3 {
    margin-bottom: var(--space-sm);
}

.principle-card ul {
    margin-bottom: var(--space-md);
}

.player-engagement {
    background-color: var(--neutral-light);
    text-align: center;
}

.player-engagement h2 {
    margin-bottom: var(--space-md);
}

.player-engagement > .container > p {
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.engagement-card {
    background-color: white;
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.engagement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.engagement-card .icon {
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.case-study {
    background-color: white;
}

.case-study h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.future-trends {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.trend {
    text-align: center;
}

.trend img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--space-md);
}

.trend h3 {
    margin-bottom: var(--space-sm);
}

/* ==========================================================================
   Blog Page
   ========================================================================== */

.blog-content {
    background-color: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.blog-card {
    background-color: var(--neutral-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-image {
    position: relative;
    display: block;
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: var(--space-xxs) var(--space-sm);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-info {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: var(--space-sm) var(--space-md) 0;
}

.blog-card h2 {
    padding: 0 var(--space-md);
    margin-top: var(--space-xs);
    font-size: 1.25rem;
}

.blog-card h2 a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.blog-card h2 a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-card p {
    padding: 0 var(--space-md);
    color: var(--text-secondary);
}

.blog-card .read-more {
    margin: 0 var(--space-md) var(--space-md);
}

.newsletter {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
}

.newsletter-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter h2 {
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.newsletter p {
    margin-bottom: var(--space-lg);
}

/* ==========================================================================
   Blog Post
   ========================================================================== */

.blog-post {
    background-color: white;
    padding: var(--space-xl) 0;
}

.post-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-lg);
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.post-meta .category {
    position: static;
}

.post-excerpt {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.post-featured-image {
    max-width: 900px;
    margin: 0 auto var(--space-xl);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
}

.post-content {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
}

.post-content h2 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.post-content p, .post-content ul, .post-content ol {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.post-content a {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-light);
    transition: all var(--transition-fast);
}

.post-content a:hover {
    color: var(--primary-light);
    border-color: transparent;
    text-decoration: none;
}

.post-footer {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--neutral-medium);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.tag {
    background-color: var(--neutral-medium);
    color: var(--text-secondary);
    padding: var(--space-xxs) var(--space-sm);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
}

.post-share {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.post-share span {
    color: var(--text-secondary);
}

.share-buttons {
    display: flex;
    gap: var(--space-xs);
}

.share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--neutral-medium);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.share-buttons a:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

.related-posts {
    background-color: var(--neutral-light);
    padding: var(--space-xl) 0;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.related-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-card a {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
}

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

.related-card h3 {
    padding: var(--space-md);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ==========================================================================
   About Page
   ========================================================================== */

.about-intro {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.about-text h2 {
    margin-bottom: var(--space-md);
}

.values {
    background-color: var(--neutral-light);
    text-align: center;
}

.values h2 {
    margin-bottom: var(--space-xl);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.value-card {
    background-color: white;
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-card .icon {
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.team {
    background-color: white;
    text-align: center;
}

.team h2 {
    margin-bottom: var(--space-sm);
}

.team-intro {
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.team-member {
    background-color: var(--neutral-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    padding-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-member img {
    width: 100%;
    height: auto;
    margin-bottom: var(--space-sm);
}

.team-member h3 {
    margin-bottom: 0;
}

.team-member p {
    padding: 0 var(--space-md);
    margin-bottom: var(--space-sm);
}

.team-member p:nth-of-type(1) {
    color: var(--primary-color);
    font-weight: 500;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.join-us {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: var(--text-light);
}

.join-content {
    text-align: center;
}

.join-content h2 {
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.join-content > p {
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

.join-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.join-option {
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.join-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.15);
}

.join-option h3 {
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.join-option p {
    margin-bottom: var(--space-md);
}

.join-option .social-icons {
    justify-content: center;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-content {
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.contact-info h2, .contact-form-container h2 {
    margin-bottom: var(--space-lg);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
}

.info-item .icon {
    background-color: var(--primary-light);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-md);
    flex-shrink: 0;
}

.info-item h3 {
    margin-bottom: var(--space-xxs);
}

.info-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.social-connect {
    margin-top: var(--space-xl);
}

.social-connect h3 {
    margin-bottom: var(--space-md);
}

.contact-form-container {
    background-color: var(--neutral-light);
    padding: var(--space-xl);
    border-radius: var(--border-radius-md);
}

.contact-form .form-group {
    margin-bottom: var(--space-md);
}

.contact-form label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--neutral-medium);
    border-radius: var(--border-radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(106, 27, 154, 0.2);
}

.map-section {
    background-color: var(--neutral-light);
    text-align: center;
}

.map-section h2 {
    margin-bottom: var(--space-lg);
}

.map-container {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.thank-you-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.thank-you-modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: var(--space-xl);
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.thank-you-modal.visible .modal-content {
    transform: translateY(0);
}

.modal-icon {
    background-color: var(--success-color);
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.modal-content h3 {
    margin-bottom: var(--space-sm);
}

.modal-content p {
    margin-bottom: var(--space-lg);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .principle-card {
        grid-template-columns: 1fr;
    }
    
    .principle-card.reverse {
        direction: ltr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--primary-dark);
        flex-direction: column;
        align-items: center;
        padding: var(--space-md) 0;
        box-shadow: var(--shadow-md);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: var(--space-xs) 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .contact-grid, .post-footer {
        grid-template-columns: 1fr;
    }
    
    .post-share {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .subscription-form, .newsletter-form {
        flex-direction: column;
    }
    
    .subscription-form input, .newsletter-form input {
        border-radius: var(--border-radius-md);
        margin-bottom: var(--space-sm);
    }
    
    .subscription-form .btn, .newsletter-form .btn {
        border-radius: var(--border-radius-md);
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp var(--transition-normal);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn var(--transition-normal);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}
