/* =====================================================
   ICAT 2027 - Main Stylesheet
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy:       #0a1f5c;
  --navy-dark:  #071445;
  --navy-mid:   #163080;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --white:      #ffffff;
  --off-white:  #f5f7fc;
  --light-gray: #e8ecf5;
  --text-dark:  #1a1a2e;
  --text-gray:  #5a6380;
  --border:     #d0d8ef;
  --shadow:     0 4px 24px rgba(10,31,92,0.10);
  --shadow-lg:  0 12px 48px rgba(10,31,92,0.16);
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  font-size: 15px;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

/* ===================== TOPBAR ===================== */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  padding: 7px 0;
  letter-spacing: 0.02em;
}
.topbar a { color: var(--gold-light); text-decoration: none; }
.topbar a:hover { color: var(--white); }

/* ===================== NAVBAR ===================== */
.navbar {
  background: var(--white) !important;
  box-shadow: 0 2px 16px rgba(10,31,92,0.10);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(10,31,92,0.18);
}
.navbar-brand {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.navbar-brand img {
  height: 58px;
  width: auto;
}
.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.navbar-brand .brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.navbar-brand .brand-sub {
  font-size: 11px;
  color: var(--text-gray);
  font-weight: 500;
}
.navbar-nav .nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: var(--transition);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--navy) !important;
  background: var(--off-white);
}
.navbar-nav .nav-link.btn-register {
  background: var(--gold);
  color: var(--navy-dark) !important;
  margin-left: 6px;
  font-weight: 600;
}
.navbar-nav .nav-link.btn-register:hover {
  background: var(--gold-light);
  color: var(--navy-dark) !important;
}

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
  padding: 90px 0 80px;
  color: var(--white);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--white);
}
.hero h1 span { color: var(--gold-light); }
.hero .hero-theme {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
  font-style: italic;
}
.hero .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 28px 0;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}
.hero-meta-item i {
  color: var(--gold);
  font-size: 16px;
}
.hero .btn-hero-primary {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  letter-spacing: 0.03em;
}
.hero .btn-hero-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.hero .btn-hero-outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  margin-left: 12px;
}
.hero .btn-hero-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}
.hero-logo-wrap {
  text-align: center;
  position: relative;
  z-index: 1;
   filter: drop-shadow(0 8px 32px rgba(0,0,0,0.4));
  /*animation: floatLogo 4s ease-in-out infinite;*/
}
.hero-logo-wrap img {
  max-width: 100%;
  width: 100%;
 
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-organizer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 15px;
  color: rgba(255,255,255,0.65);
}
.hero-organizer strong { color: rgba(255,255,255,0.9); }

/* ===================== COUNTDOWN ===================== */
.countdown-section {
  background: var(--navy);
  padding: 28px 0;
}
.countdown-wrap {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.countdown-item {
  text-align: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 14px 22px;
  min-width: 80px;
}
.countdown-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  display: block;
}
.countdown-label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  display: block;
}

/* ===================== SECTIONS ===================== */
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 56px 0; }

.section-label {
  display: inline-block;
  background: rgba(10,31,92,0.07);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  border-left: 3px solid var(--gold);
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
}
.section-title span { color: var(--gold); }
.section-divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 0 0 24px;
}
.section-divider.center { margin: 0 auto 24px; }

/* ===================== ABOUT ===================== */
.about-section { background: var(--white); }
.about-text { color: var(--text-gray); font-size: 16px; line-height: 1.85; }
.obj-card {
  display: flex;             /* Align children horizontally */
  align-items: flex-start;    /* Vertical alignment */
  gap: 15px;                 /* Space between icon and text */
  background: var(--off-white);
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid var(--navy);
  transition: var(--transition);
  height: 100%;
}

.obj-card:hover {
  border-left-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.obj-card i { 
  color: var(--navy); 
  font-size: 22px; 
  /* Removed margin-bottom: 10px; */
  flex-shrink: 0;            /* Prevents the icon from squishing */
}

.obj-card p { 
  font-size: 16px; 
  color: var(--text-gray); 
  margin: 0; 
  line-height: 1.5;          /* Improves readability for side-by-side text */
}

/* ===================== DATES ===================== */
.dates-section { background: var(--navy-dark); }
.date-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
.date-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--gold);
  transform: translateY(-4px);
}
.date-icon {
  width: 54px; height: 54px;
  background: rgba(201,168,76,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 22px;
  color: var(--gold);
}
.date-label {
  font-size: 15px;
    line-height: 18px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.date-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 600;
}
.date-value.highlight { color: var(--gold-light); }

/* ===================== COMMITTEE ===================== */
.committee-section { background: var(--off-white); }
.person-card {
  background: var(--white);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--navy);
  height: 100%;
  transition: var(--transition);
}
.person-card:hover {
  border-top-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.person-role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}
.person-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--navy-dark);
  font-weight: 700;
  margin-bottom: 4px;
}
.person-affiliation {
  font-size: 12.5px;
  color: var(--text-gray);
  line-height: 1.4;
}
.committee-tab-wrap .nav-tabs {
  border-bottom: 2px solid var(--border);
  gap: 4px;
}
.committee-tab-wrap .nav-tabs .nav-link {
  border: none;
  color: var(--text-gray);
  font-size: 16px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px 6px 0 0;
  transition: var(--transition);
}
.committee-tab-wrap .nav-tabs .nav-link.active {
  color: var(--navy);
  background: var(--white);
  border-bottom: 3px solid var(--navy);
}
.committee-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}
.committee-list-item:last-child { border-bottom: none; }
.committee-list-item i { color: var(--navy); margin-top: 3px; flex-shrink: 0; }

/* ===================== CALL FOR PAPERS ===================== */
.cfp-section { background: var(--white); }
.track-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.track-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
}
.track-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.track-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.track-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--navy-dark);
    line-height: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}
.track-subtitle {
  font-size: 14.5px;
  color: var(--text-gray);
  font-style: italic;
  margin-bottom: 14px;
}
.track-topics {
  list-style: none;
  padding: 0;
  margin: 0;
}
.track-topics li {
  font-size: 15px;
  color: var(--text-gray);
  padding: 3px 0 3px 18px;
  position: relative;
}
.track-topics li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}


/* Speaker Card Styles */
.speaker-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  height: 100%;
  text-align: center;
}

.speaker-card:hover {
  transform: translateY(-10px);
}

.speaker-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.speaker-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.speaker-card:hover .speaker-img img {
  transform: scale(1.1);
}

.speaker-social {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  background: rgba(1, 33, 67, 0.9); /* Your Navy Color */
  padding: 10px 0;
  transition: bottom 0.3s ease;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.speaker-card:hover .speaker-social {
  bottom: 0;
}

.speaker-social a {
  color: #f4c542; /* Your Gold Color */
  font-size: 18px;
}

.speaker-info {
  padding: 20px;
}

.speaker-name {
  color: #012143;
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 1.15rem;
}

.speaker-designation {
  color: #c9a84c;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.speaker-aff {
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 0;
}

/* Gallery Masonry-like Layout */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 33, 67, 0.7); /* Your Navy theme */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #f4c542; /* Your Gold theme */
  font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Flexbox masonry fallback if not using a library like Isotope */
.masonry-grid {
  display: flex;
  flex-wrap: wrap;
}

@media (min-width: 992px) {
  /* This ensures different heights look intentional */
  .masonry-grid div:nth-child(even) .gallery-item img {
    min-height: 350px;
  }
  .masonry-grid div:nth-child(odd) .gallery-item img {
    min-height: 350px;
  }
}

/* ===================== AUTHORS INFO ===================== */
.authors-section { background: var(--off-white); }
.info-block {
  background: var(--white);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.info-block h4 {
  color: var(--navy-dark);
  font-size: 1.3rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-block h4 i { color: var(--gold); }
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 15px;
  color: var(--text-gray);
  border-bottom: 1px dashed var(--border);
}
.info-list li:last-child { border-bottom: none; }
.info-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}
.info-list li a { color: var(--navy); }
.fee-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fee-table th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}
.fee-table td {
  padding: 10px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
    font-size: 14px;
}
.fee-table tr:nth-child(even) td { background: var(--off-white); }
.fee-table td:first-child { text-align: left; font-weight: 600; color: var(--navy-dark); }
.fee-table .ieee-col { color: var(--navy); font-weight: 600; }
.fee-table-wrap { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }

/* ===================== CONTACT ===================== */
.contact-section { background: var(--navy-dark); color: var(--white); }
.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 32px;
  height: 100%;
}

.contact-card h5{
    font-size: 22px;
}
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-icon {
  width: 44px; height: 44px;
  background: rgba(201,168,76,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 17px;
}
.contact-detail .label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}
.contact-detail .value {
  font-size: 16px;
  color: var(--white);
}
.contact-detail .value a {
  color: var(--gold-light);
  text-decoration: none;
}
.contact-detail .value a:hover { color: var(--white); }
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 11px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
  margin-top: 20px;
}
.map-link:hover {
  background: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-2px);
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  color: rgba(255,255,255,0.5);
  font-size: 12.5px;
  text-align: center;
}
footer a { color: var(--gold-light); text-decoration: none; }

/* ===================== UTILITIES ===================== */
.bg-navy { background: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 11px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}
.btn-navy:hover {
  background: var(--navy-mid);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  padding: 11px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-2px);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
  .hero { padding: 60px 0 50px; text-align: center; }
  .hero-meta { justify-content: center; }
  .hero-logo-wrap { margin-top: 40px; }
  .hero-logo-wrap img { max-width: 220px; }
  .navbar-collapse { background: var(--white); padding: 12px; border-top: 1px solid var(--border); }
}
@media (max-width: 767px) {
  .section-pad { padding: 56px 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero .btn-hero-outline { margin-left: 0; margin-top: 10px; }
  .countdown-item { min-width: 64px; padding: 10px 14px; }
  .countdown-number { font-size: 1.6rem; }
}
