/*
Theme Name: IIT Alumni Society of Alberta
Theme URI: https://iitalumniab.ca/
Author: IIT Alumni Theme
Author URI: https://iitalumniab.ca/
Description: A professional WordPress theme designed for IIT Alumni Society chapters. Features event management, alumni directory, news updates, and donation integration.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iit-alumni-theme
Domain Path: /languages
Tested up to: 6.4
Requires PHP: 7.4
*/

:root {
  --primary-color: #d4631a;
  --secondary-color: #1e3a5f;
  --accent-color: #ffa500;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --light-bg: #f8f9fa;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --border-color: #ecf0f1;
  --white: #ffffff;
}

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

html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

/* ===========================
   TYPOGRAPHY
   =========================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 3rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.5rem;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.5rem;
  display: inline-block;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.2rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

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

a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* ===========================
   LAYOUT
   =========================== */

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

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

header {
  background-color: var(--white);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--secondary-color);
}

.logo p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-light);
}

nav {
  display: flex;
  gap: 0;
}

nav a {
  padding: 15px 20px;
  display: inline-block;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: var(--light-bg);
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
}

nav a.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===========================
   HERO SECTION
   =========================== */

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

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

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--accent-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 99, 26, 0.3);
  text-decoration: none;
}

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

.btn-secondary:hover {
  background-color: #152a47;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 58, 95, 0.3);
  text-decoration: none;
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-color);
  text-decoration: none;
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* ===========================
   SECTIONS
   =========================== */

section {
  padding: 60px 20px;
}

section.light-bg {
  background-color: var(--light-bg);
}

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

.section-title h2 {
  display: inline-block;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 10px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 10px;
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===========================
   EVENTS SECTION
   =========================== */

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

.event-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.event-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--light-bg);
}

.event-content {
  padding: 25px;
}

.event-date {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
}

.event-card h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.event-card p {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.event-meta {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===========================
   NEWS SECTION
   =========================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.news-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.news-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: var(--light-bg);
}

.news-content {
  padding: 20px;
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.news-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.6;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more:hover {
  text-decoration: underline;
  gap: 10px;
}

/* ===========================
   DIRECTORY/MEMBERS SECTION
   =========================== */

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.member-card {
  text-align: center;
  background-color: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.member-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 15px;
  object-fit: cover;
  border: 4px solid var(--primary-color);
}

.member-card h3 {
  margin-bottom: 5px;
}

.member-title {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.member-bio {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* ===========================
   DONATION SECTION
   =========================== */

.donation-section {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
}

.donation-section h2 {
  color: var(--white);
  border-bottom-color: var(--accent-color);
}

.donation-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.donation-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.donation-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  min-width: 150px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.donation-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.donation-card .amount {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

/* ===========================
   CONTACT FORM
   =========================== */

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info-item {
  display: flex;
  gap: 15px;
}

.contact-info-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  min-width: 30px;
  text-align: center;
}

.contact-info-content h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.contact-info-content p {
  color: var(--text-light);
  margin-bottom: 0;
}

.contact-form {
  background-color: var(--light-bg);
  padding: 30px;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(212, 99, 26, 0.1);
}

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

/* ===========================
   FOOTER
   =========================== */

footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 50px 20px 20px;
}

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

footer h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

footer a {
  color: var(--accent-color);
}

footer a:hover {
  color: var(--white);
}

footer ul {
  list-style: none;
}

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

footer ul li a {
  text-decoration: none;
  transition: color 0.3s ease;
}

footer ul li a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent-color);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ===========================
   RESPONSIVE
   =========================== */

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

  h2 {
    font-size: 1.8rem;
  }

  header .container {
    flex-wrap: wrap;
  }

  nav {
    width: 100%;
    flex-direction: column;
    display: none;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 12px 20px;
    border-left: 3px solid transparent;
    border-bottom: none;
  }

  nav a:hover {
    border-left-color: var(--primary-color);
    border-bottom-color: transparent;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 60px 20px;
  }

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

  .hero p {
    font-size: 1rem;
  }

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

  .about {
    grid-template-columns: 1fr;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .events-grid,
  .news-grid,
  .directory-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .container {
    padding: 0 15px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .donation-options {
    flex-direction: column;
  }

  .donation-card {
    min-width: 100%;
  }
}
