/*
Theme Name: Tech Finance Network 3
Description: Professional WordPress theme for Tech Finance Network community, inspired by Time.com design
Version: 3.0
Author: Tech Finance Network
*/

/* CSS Variables */
:root {
  --time-red: #C00000;
  --charcoal: #1A1A1A;
  --text-grey: #333333;
  --light-grey: #F5F5F5;
  --white: #FFFFFF;
  --border-grey: #E5E5E5;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-grey);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, serif;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--time-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #a00000;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-grey);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.site-title {
  font-family: Georgia, serif;
  font-size: 1.75rem;
  font-weight: bold;
  color: black;
  text-decoration: none;
}

.site-title:hover {
  color: black;
}

.site-tagline {
  margin-left: 0.5rem;
  color: #666;
  font-size: 0.875rem;
}

/* Navigation */
.main-navigation {
  display: flex;
  gap: 2rem;
}

.main-navigation a {
  color: var(--charcoal);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a.current {
  color: var(--time-red);
  border-bottom-color: var(--time-red);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid var(--border-grey);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .main-navigation.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

/* Hero Section */
.hero-section {
  padding: 4rem 0;
  background: var(--white);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  color: black;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-grey);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

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

.btn-primary:hover {
  background: #a00000;
  border-color: #a00000;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

/* Section Styles */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--light-grey);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  color: black;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-grey);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  justify-items: center;
}

@media (max-width: 1024px) {
  .grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }
}
/* Team Grid */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: start;
  margin: 2rem 0;
}

.team-member {
  text-align: center;
  max-width: 200px;
  margin: 0 auto;
}

.team-member img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 0.5rem;
}

.team-member h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--charcoal);
}

.team-member p {
  font-size: 0.7rem;
  color: var(--text-grey);
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
  }
  
  .team-member {
    max-width: 150px;
  }
  
  .team-member img {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .team-member {
    max-width: 130px;
  }
  
  .team-member img {
    width: 60px;
    height: 60px;
  }
}

/* Card Components */
.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

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

.card-content {
  padding: 1.5rem;
}

.card-date {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.25rem;
  color: black;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.card-excerpt {
  color: var(--text-grey);
  margin-bottom: 1rem;
}

.card-link {
  color: var(--time-red);
  font-weight: 500;
}

.card-link:hover {
  color: #a00000;
}

/* Event Cards */
.event-card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow 0.3s ease;
}

.event-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.event-type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.event-type.quarterly {
  background: var(--time-red);
  color: var(--white);
}

.event-type.workshop {
  background: var(--charcoal);
  color: var(--white);
}

.event-meta {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
  font-size: 0.875rem;
  color: #666;
}

.event-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.event-capacity {
  font-size: 0.875rem;
  color: #666;
}

.event-capacity .registered {
  color: var(--time-red);
  font-weight: 500;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--charcoal);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-grey);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--time-red);
  box-shadow: 0 0 0 2px rgba(192, 0, 0, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section p {
  color: #ccc;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--time-red);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: #ccc;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--time-red);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 2rem;
  text-align: center;
  color: #ccc;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.text-red { color: var(--time-red); }
.text-white { color: var(--white); }
.text-black { color: black; }
.text-grey { color: var(--text-grey); }

.bg-red { background-color: var(--time-red); }
.bg-white { background-color: var(--white); }
.bg-grey { background-color: var(--light-grey); }
.bg-charcoal { background-color: var(--charcoal); }