/* ============================================
   MET 2026 Conference Website Styles
   Based on IEEE ISCAS 2025 Design
   ============================================ */

/* CSS Variables */
:root {
  --primary-blue: #24386B;
  --dark-blue: #24386B;
  --light-blue: #24386B;
  --accent-blue: #24386B;
  --text-dark: #212121;
  --text-medium: #424242;
  --text-light: #757575;
  --bg-white: #ffffff;
  --bg-light: #fafafa;
  --bg-gray: #f5f5f5;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  line-height: 1.6;
  color: var(--text-dark) !important;
  background-color: var(--bg-white) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700 !important;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-blue) !important;
}

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

p {
  margin-bottom: 1rem;
  color: var(--text-medium) !important;
  line-height: 1.7;
}

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

a:hover {
  color: var(--dark-blue) !important;
}

/* Container */
.container {
  max-width: 1200px !important;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header & Navigation */
.lgx-header {
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: none !important;
}

.navbar {
  padding: 0.8rem 0 !important;
  min-height: auto !important;
  background: transparent !important;
  border: none !important;
  margin-bottom: 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.navbar-header {
  display: flex !important;
  align-items: center !important;
}

.lgx-logo img {
  height: 50px !important;
  width: auto;
}

.navbar-collapse {
  display: flex !important;
  justify-content: flex-end !important;
  flex: 1 !important;
  border-top: none !important;
}

.nav-wrapper {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}

.navbar-nav {
  margin: 0 !important;
  flex: 1 !important;
}

.lgx-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lgx-nav li {
  margin: 0 !important;
}

.lgx-nav li a {
  color: var(--primary-blue) !important;
  padding: 0.6rem 1rem !important;
  font-size: 0.95rem;
  font-weight: 500 !important;
  border-radius: 4px;
  transition: all 0.3s ease !important;
  display: block;
  background: transparent !important;
  white-space: nowrap;
}

.lgx-nav li a:hover,
.lgx-nav li a:focus {
  background: var(--primary-blue) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.lgx-nav-right {
  margin-left: auto;
}

.lgx-cart-area {
  display: flex;
  align-items: center;
}

.lgx-btn-met {
  background: var(--primary-blue) !important;
  color: #fff !important;
  padding: 0.6rem 1rem !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  border: none !important;
  transition: all 0.3s ease !important;
  display: inline-block;
  white-space: nowrap;
}

.lgx-btn-met:hover {
  background: var(--dark-blue) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
  color: #fff;
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}

/* Page Header (for non-home pages) */
.page-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%) !important;
  color: white !important;
  padding: 100px 0 40px !important;
  margin-top: 70px !important;
  text-align: center;
  border-bottom: 4px solid var(--accent-blue);
}

.page-header h1,
.page-header h2,
.page-header h3 {
  color: white !important;
  margin: 0;
  font-weight: 700 !important;
  font-size: 2.5rem !important;
}

.page-header p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-logo {
  max-width: 300px;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.hero-logo img {
  width: 100%;
  height: auto;
}

.hero-title {
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  margin-bottom: 1rem !important;
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 1.4rem !important;
  font-weight: 400 !important;
  margin-bottom: 0.5rem !important;
  color: rgba(255,255,255,0.95) !important;
}

.hero-location {
  font-size: 1.2rem !important;
  font-weight: 400 !important;
  margin-bottom: 2rem !important;
  color: rgba(255,255,255,0.9) !important;
}

.hero-date-card {
  background: rgba(255,255,255,0.97);
  padding: 2rem 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  display: inline-block;
  margin-top: 1rem;
}

.hero-date-card h3 {
  color: var(--primary-blue) !important;
  font-size: 2rem !important;
  margin: 0 !important;
  font-weight: 700 !important;
}

.hero-date-card p {
  color: var(--text-medium) !important;
  font-size: 1rem;
  margin: 0.5rem 0 0 0 !important;
}

/* Section Styles */
.section {
  padding: 80px 0;
  background: var(--bg-white);
}

.section.alt {
  background: var(--bg-gray) !important;
}

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

.section-title {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
  color: var(--primary-blue) !important;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-blue);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light) !important;
  max-width: 700px;
  margin: 1.5rem auto 0;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Info Cards */
.info-card {
  background: #fff !important;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color) !important;
  height: 100%;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue) !important;
}

.info-card h3 {
  color: var(--primary-blue) !important;
  font-size: 1.5rem !important;
  margin-bottom: 1rem !important;
  font-weight: 600 !important;
}

.info-card p {
  color: var(--text-medium) !important;
  line-height: 1.7;
  margin-bottom: 0.5rem !important;
}

.info-card strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* Content Card */
.content-card {
  background: #fff !important;
  border-radius: 8px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.content-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem !important;
}

/* Event Cards */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.event-card {
  background: #fff !important;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color) !important;
}

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

.event-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
}

.event-card-body {
  padding: 1.5rem;
}

.event-card h4 {
  font-size: 1.25rem !important;
  margin-bottom: 0.8rem !important;
  color: var(--text-dark) !important;
}

.event-card p {
  font-size: 0.95rem;
  color: var(--text-medium) !important;
  margin-bottom: 0.5rem !important;
}

/* Buttons */
.btn, .lgx-btn {
  display: inline-block;
  padding: 0.75rem 2rem !important;
  background: var(--primary-blue) !important;
  color: #fff !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  text-align: center;
  font-size: 1rem;
}

.btn:hover, .lgx-btn:hover {
  background: var(--dark-blue) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent !important;
  color: var(--primary-blue) !important;
  border: 2px solid var(--primary-blue) !important;
}

.btn-outline:hover {
  background: var(--primary-blue) !important;
  color: #fff !important;
}

/* Footer */
.lgx-footer {
  background: #24386B !important;
  color: #fff !important;
  padding: 60px 0 20px !important;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #fff !important;
  font-size: 1.3rem !important;
  margin-bottom: 1rem !important;
  font-weight: 600 !important;
}

.footer-section p,
.footer-section address {
  color: rgba(255,255,255,0.9) !important;
  line-height: 1.8;
  font-style: normal;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.9rem;
  margin: 0 !important;
}

.footer-bottom a {
  color: #fff !important;
  font-weight: 600;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select,
.form-control {
  width: 100%;
  padding: 0.75rem 1rem !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 4px !important;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff !important;
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
  outline: none !important;
  border-color: var(--primary-blue) !important;
  box-shadow: 0 0 0 3px rgba(25,118,210,0.1) !important;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

table th,
table td {
  padding: 1rem !important;
  text-align: left;
  border-bottom: 1px solid var(--border-color) !important;
}

table th {
  background: var(--primary-blue) !important;
  color: #fff !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

table tbody tr:hover {
  background: var(--bg-light) !important;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.2rem !important;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .card-grid,
  .event-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 100px 0 60px;
  }
  
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-logo {
    max-width: 220px;
  }
  
  .hero-date-card {
    padding: 1.5rem 2rem;
  }
  
  .section-title {
    font-size: 2rem !important;
  }
  
  .lgx-nav {
    flex-direction: column;
    width: 100%;
  }
  
  .lgx-nav li {
    width: 100%;
  }
  
  .lgx-nav li a {
    display: block;
    padding: 1rem !important;
  }

}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.75rem !important;
  }
  
  .hero-date-card {
    padding: 1rem 1.5rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .content-card {
    padding: 2rem;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-0 { padding: 0; }

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}
