/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

/* Body */
body {
    background-color: #ffffff;
    color: #111;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    /* Set a specific height to ensure consistent vertical centering */
    height: 60px;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem; /* single gap value is sufficient */
    align-items: center; /* ensure links are centered on the Y axis */
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.nav-links a:hover,
.nav-links a.active {
    color: #666;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}


.search-bar input:focus {
    outline: none;
    border-color: #999;
}

.logo {
    display: flex;
    align-items: center; /* center the image inside the logo container */
}

.logo img {
    height: 40px;
    width: auto;
    display: block; /* remove inline-gap artifacts so spacing is equal */
    margin: 0; /* ensure no extra top/bottom margin */
}

/* Intro Section */
.intro {
    text-align: center;
    padding: 6rem 2rem 4rem;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.intro p {
    font-size: 1.1rem;
    color: #555;
}

/* Content Sections */
.content-section {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    border-bottom: 1px solid #eee;
}

.content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.content-section p {
    color: #444;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #777;
    background-color: #f9f9f9;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-right {
        flex-direction: column;
        gap: 1rem;
    }

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

/* === INFO BLOCK STYLES === */
.info-block {
    background-color: #f0f0f0; /* light grey rectangle */
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 1100px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Header */
.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e0e0e0;
    padding: 1rem 1.5rem;
    cursor: pointer;
}

.info-header h2 {
    font-size: 1.4rem;
    color: #111;
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.toggle-btn.active {
    transform: rotate(180deg);
}

/* Column top row (always visible) */
.column-top-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: #fff;
    border-top: 1px solid #ccc;
}

.info-column-top {
    flex: 1;
    min-width: 180px;
    max-width: 200px;
    text-align: center;
}

.info-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.info-column-top h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #111;
}

.short-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.3;
}

/* Hidden dropdown content */
.info-content {
    display: none;
    padding: 1.5rem;
    background-color: #fafafa;
    border-top: 1px solid #ccc;
    animation: fadeIn 0.3s ease;
}

.info-block.active .info-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Columns for bullets */
.info-column {
    flex: 1;
    min-width: 180px;
    max-width: 200px;
}

.info-column ul {
    list-style-type: disc;
    padding-left: 1.2rem;
    color: #444;
    font-size: 0.95rem;
}

.info-column ul li {
    margin-bottom: 0.4rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
    .column-top-row,
    .info-block.active .info-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

#company-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
}

.info-column-top {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  width: 220px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.info-column-top:hover {
  transform: translateY(-3px);
}


/* Dynamic Dropdown Behavior */
.info-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.info-content.active {
  max-height: 1000px;
  opacity: 1;
}

.toggle-btn {
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.info-header.active .toggle-btn {
  transform: rotate(180deg);
}

/* Detail section inside each company card */
.info-details ul {
  list-style-type: disc;
  padding-left: 1rem;
  color: #444;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.info-column-top {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  width: 220px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.info-column-top:hover {
  transform: translateY(-3px);
}


.info-section {
  margin-bottom: 1rem;
}

.info-section h4 {
  margin-bottom: 0.3rem;
  color: #111;
  font-size: 1rem;
  text-decoration: underline;
}

.extra-details p {
  margin: 0.2rem 0;
  color: #444;
}

.info-section {
  margin-bottom: 1rem;
}

.info-section h4 {
  margin-bottom: 0.3rem;
  color: #111;
  font-size: 1rem;
  text-decoration: underline;
}

.extra-details p {
  margin: 0.2rem 0;
  color: #444;
}

.info-section { margin-bottom: 1rem; }
.info-section h4 {
  margin-bottom: 0.3rem;
  color: #111;
  font-size: 1rem;
  text-decoration: underline;
}
.extra-details p { margin: 0.2rem 0; color: #444; }
