/* Custom CSS for ICTSSE 2026 Conference Website */

/* CSS Variables - Updated Color Scheme */
:root {
    --primary-color: #2c5aa0; /* Deep Blue */
    --primary-dark: #1a3b70;
    --primary-light: #4a7bc8;
    --secondary-color: #6c757d;
    --accent-color: #ff6b35; /* Orange accent */
    --success-color: #28a745;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark: #212529;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --font-family: 'Roboto', sans-serif;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Bootstrap Overrides */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Navigation Styles */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand h5 {
    font-weight: 700;
    margin-bottom: 0;
}

.navbar-nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.navbar-nav {
    margin-bottom: 0;
}

.navbar-nav .nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    margin: 0 0.3rem;
    padding: 0.4rem 0.8rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 0.9rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(44, 90, 160, 0.1);
}

@media (max-width: 991px) {
    .navbar-nav-wrapper {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .navbar-nav {
        width: 100%;
        flex-direction: column;
    }
    
    .nav-row-1, .nav-row-2 {
        width: 100%;
    }
}

/* Hero Section Styles */
.hero-section {
    margin-top: 76px; /* Account for fixed navbar */
}

.carousel {
    height: 60vh;
    min-height: 300px;
}

.carousel-item {
    height: 90vh;
    min-height: 600px;
    position: relative;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 600px;
    height: 100vh;
    width: 100%;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 10;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

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

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

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    margin: 0 auto;
    border-radius: 2px;
}

/* Card Styles */
.card {
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
}

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

.card-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    border-bottom: none;
    padding: 1.5rem;
}

.card-body {
    padding: 2rem;
}

/* Remove universal hover effect if present */
/* Add hover effect only to grid items in all sections */

/* Cards in Bootstrap grid layouts */
.row.g-4 > [class*="col-"] .card,
.row.mb-5 > [class*="col-"] .card,
.row > [class*="col-"] .card {
  transition: var(--transition);
}

.row.g-4 > [class*="col-"] .card:hover,
.row.mb-5 > [class*="col-"] .card:hover,
.row > [class*="col-"] .card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(44,90,160,0.18);
  filter: brightness(0.98) drop-shadow(0 6px 24px rgba(44,90,160,0.13));
  z-index: 2;
}

/* Timeline grid items */
.timeline-item {
  transition: var(--transition);
}
.timeline-item:hover {
  background: #f4f8fd;
  box-shadow: 0 2px 12px rgba(44,90,160,0.08);
  border-radius: 8px;
  z-index: 2;
}

/* Remove hover from .card outside grid if needed */
section > .card:hover {
  /* No hover effect */
  transform: none;
  box-shadow: var(--box-shadow);
  filter: none;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -7px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-marker.highlighted {
    background: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-light);
    animation: pulse 2s infinite;
}

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

.timeline-content h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Price Tag Styles */
.price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-tag .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.price-tag .amount {
    font-size: 3rem;
}

.price-tag .period {
    font-size: 1rem;
    color: var(--secondary-color);
}

/* Sponsor Logo Styles */
.sponsor-logo {
    transition: var(--transition);
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

/* Avatar Placeholder */
.avatar-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Form Styles */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

/* Contact Item Styles */
.contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.contact-item:last-child {
    border-bottom: none;
}

/* Map Placeholder */
.map-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
}

/* Social Links */
.social-links a {
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Accordion Styles */
.accordion-button {
    background-color: var(--light-bg);
    border: none;
    border-radius: var(--border-radius) !important;
    font-weight: 600;
    color: var(--primary-color);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(128, 0, 0, 0.25);
}

.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: var(--border-radius);
    border-left: 4px solid #0dcaf0;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

footer .social-links a:hover {
    color: var(--primary-color) !important;
}

/* Tracks Section: 2 items per row */
.tracks-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Force 2 items per row in the tracks section regardless of Bootstrap grid */
#tracks .row.g-4 > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (max-width: 991.98px) {
  #tracks .row.g-4 > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Team & Committees Section Styles */
.about-section {
    background: linear-gradient(135deg, #f8f9fa 60%, #e9f0fa 100%);
    padding: 3rem 0 3rem 0;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(44,90,160,0.10);
    padding: 1.5rem 1.2rem;
}

.about-header {
    text-align: center;
    margin-bottom: 2rem;
}

.about-header .section-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
}

.about-header .section-subtitle {
    color: var(--secondary-color);
    font-size: 1.05rem;
    margin-bottom: 0;
    font-weight: 500;
}

.about-content {
    margin-top: 1.2rem;
}

.committee-group {
    margin-bottom: 1.5rem;
    padding: 1.1rem 1rem;
    background: #f7fafd;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(44,90,160,0.06);
}

.committee-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    letter-spacing: 0.2px;
}

.committee-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.2rem;
}

.committee-list li {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(44,90,160,0.04);
    padding: 0.7rem 1rem;
    font-size: 0.98rem;
    color: var(--dark);
    min-width: 180px;
    flex: 1 1 180px;
    margin-bottom: 0;
    border-left: 3px solid var(--primary-color);
    transition: box-shadow 0.2s, transform 0.2s;
}

.committee-list li strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}

.committee-list li:hover {
    box-shadow: 0 4px 14px rgba(44,90,160,0.11);
    transform: translateY(-2px) scale(1.02);
}

@media (max-width: 991.98px) {
  .about-container {
    padding: 0.7rem 0.2rem;
  }
  .committee-list {
    flex-direction: column;
    gap: 0.7rem;
  }
  .committee-list li {
    min-width: 0;
    width: 100%;
  }
}

/* Committee Section Grid & Cards */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.committee-card {
  background: var(--card-bg, #fff);
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.08), 0 1.5px 4px 0 rgba(0,0,0,0.04);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
  border: 1px solid #e6e6e6;
  min-height: 260px;
}
/* Removed committee-card hover effect for a more static, professional look */
/* .committee-card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.13), 0 2px 8px 0 rgba(0,0,0,0.07);
  border-color: var(--primary, #1e88e5);
} */
.committee-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--primary, #3254a8);
  margin-bottom: 0.7rem;
  letter-spacing: 0.01em;
}
.committee-role {
  font-size: 0.98rem;
  color: #666;
  font-weight: 400;
}
.committee-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.04rem;
  color: #222;
}
.committee-list li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.committee-list.small-list li {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

@media (max-width: 700px) {
  .committee-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .committee-card {
    padding: 1.2rem 1rem 1rem 1rem;
    min-height: 0;
  }
}

/* Loading Animation */
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Scroll Animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Utilities */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

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

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Countdown Timer Styles */
.countdown-timer {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius);
    padding: 2rem;
    color: var(--white);
}

.countdown-display {
    margin-top: 1rem;
}

.countdown-unit {
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.5rem;
    backdrop-filter: blur(10px);
}

.countdown-label {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sponsor Carousel Styles */
.sponsor-carousel {
    overflow: hidden;
}

.sponsor-slide {
    display: flex;
    animation: scroll 20s linear infinite;
}

.sponsor-item {
    flex: 0 0 200px;
    padding: 1rem;
    text-align: center;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.sponsor-slide:hover {
    animation-play-state: paused;
}

/* Committee Table Styles */
.committee-table {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.committee-table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.committee-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.committee-table tbody tr:hover {
    background-color: rgba(44, 90, 160, 0.05);
}

/* Contact Section Styles */
.contact-info-card {
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
}

.contact-info-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 0;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item i {
    color: var(--accent-color);
}

/* CONTACT US: Make contact info items display horizontally within the card */
.contact-info-horizontal {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact-info-horizontal .contact-item {
  flex: 1 1 0;
  min-width: 180px;
  margin-bottom: 0;
  border-right: 1px solid #eee;
  padding-right: 2rem;
}
.contact-info-horizontal .contact-item:last-child {
  border-right: none;
  padding-right: 0;
}
@media (max-width: 991.98px) {
  .contact-info-horizontal {
    flex-direction: column;
    gap: 1.5rem;
  }
  .contact-info-horizontal .contact-item {
    border-right: none;
    padding-right: 0;
    min-width: 0;
  }
}

/* Contact Us Section Styles */
#contact .section-header {
    margin-bottom: 2.5rem;
}
#contact .section-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
}
#contact .card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: none;
    transition: var(--transition);
}
#contact .card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-3px);
}
#contact .card-body {
    padding: 2rem 1.5rem;
}
#contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid #e9ecef;
}
#contact .contact-item:last-child {
    border-bottom: none;
}
#contact .contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}
#contact .contact-item strong {
    color: var(--primary-color);
    font-weight: 600;
}
#contact .contact-item .text-muted {
    color: var(--secondary-color) !important;
    font-size: 1rem;
}

/* Contact Us Section: 2 items per row for contact info */
#contact .row.g-4 {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
#contact .row.g-4 > .col-lg-4 {
    flex: 0 0 48%;
    max-width: 48%;
}
@media (max-width: 991.98px) {
  #contact .row.g-4 > .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
    #contact .card-body {
        padding: 1.2rem 0.7rem;
    }
    #contact .section-title {
        font-size: 1.4rem;
    }
    #contact .contact-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .carousel-control-prev,
    .carousel-control-next,
    .btn,
    footer {
        display: none !important;
    }
    
    .carousel-caption {
        position: static;
        transform: none;
        color: var(--dark) !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

.slider-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, #fff 8%, #fff 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #fff 8%, #fff 92%, transparent 100%);
}

.slider-track {
  display: flex;
  width: max-content;
  animation: scrollLoop 18s linear infinite;
  will-change: transform;
}

.slider-wrapper:hover .slider-track {
  animation-play-state: paused;
}

/* .speaker-card {
  min-width: 250px;
  margin-right: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  background: #fff;
  border-radius: 12px;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
} */

@keyframes scrollLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Optional: Edge gradient mask for escalator effect */
.slider-wrapper {
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, #fff 8%, #fff 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #fff 8%, #fff 92%, transparent 100%);
}

@media (max-width: 700px) {
  .speaker-card {
    min-width: 180px;
    padding: 0.7rem 0.5rem;
  }
}

/* Custom container for reduced-width carousel */
.carousel-container-custom {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--border-radius);
}
@media (max-width: 991.98px) {
  .carousel-container-custom {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}


.carousel-container-custom {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--border-radius);
  overflow: hidden;
}
.carousel,
.carousel-item,
.carousel-bg {
  height: 60vh !important;
  min-height: 650px !important;
}