/* Buildups - Construction Directory CSS */

/*brown*/
/*:root {
  --primary: #C8956A;
  --primary-dark: #A0724D;
  --secondary: #E8D4C4;
  --accent: #8B6F47;
  --background: #FAFAF9;
  --text-dark: #3D3D3D;
  --text-light: #6B6B6B;
  --border-color: #E5E5E5;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --success: #10B981;
  --error: #EF4444;
}*/
/*blue*/
/*:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --secondary: #DBEAFE;
    --accent: #1E40AF;
    --background: #FAFBFF;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --border-color: #E2E8F0;
    --white: #FFFFFF;
    --gray-light: #F1F5F9;
    --success: #10B981;
    --error: #EF4444;
}*/
/*#044288*/
:root {
    --primary: #044288;
    --primary-dark: #044288;
    --secondary: #DBEAFE;
    --accent: #1E40AF;
    --background: #FAFBFF;
    --text-dark: #1E293B;
    /*--text-light: #64748B;*/
    --text-light: #475569;
    --border-color: #E2E8F0;
    --white: #FFFFFF;
    --gray-light: #F1F5F9;
    --success: #10B981;
    --error: #EF4444;
}
.adminEditLink {
    font-size: 14px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

a:hover {
  color: var(--primary-dark);
}

/* Header Styles */
header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  font-family: serif;
}
.logo_m{
    display: none;
}
nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: 0.95rem;
  color: var(--text-dark);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

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

.header-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

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

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

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

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

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

/* Main Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 1.8rem 0;
}

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

/* Search Bar */
.search-bar {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.search-input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 149, 106, 0.1);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

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

/* Cards */
.card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  background-color: var(--secondary);
}

.card-image:not([src]),
.card-image[src=""],
.card-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary) 0%, #D4C0B6 100%);
  color: var(--text-light);
  font-size: 3rem;
}

.placeholder-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--secondary) 0%, #D4C0B6 100%);
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 3rem;
}

.placeholder-image.team {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto;
}

.placeholder-large {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--secondary) 0%, #D4C0B6 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 4rem;
  margin-bottom: 2rem;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: var(--secondary);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Category Card */
.category-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.category-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.category-svg {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  display: block;
}

/* Company Card */
.company-rating {
  color: #FFA500;
  font-size: 0.9rem;
}

/* News Card */
.news-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* Event Card */
.countdown-timer {
  background-color: var(--secondary);
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.modal-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.modal-tab {
  padding: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.modal-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

input, textarea, select {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 149, 106, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

footer h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

footer a {
  color: #BDBDBD;
}

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

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

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.8rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

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

.social-links a:hover {
  background-color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: #999;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

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

/* Filters */
.filters {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

/* Company Detail */
.company-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.company-logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
}

.company-info h1 {
  margin-bottom: 1rem;
}

.company-meta {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
}

.company-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.company-contact {
  background-color: var(--gray-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  height: 200px;
}

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

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

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb span {
  color: var(--text-light);
}

/* Pagination */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.pagination a, .pagination span {
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

    .pagination a:hover, .pagination a.current {
        border-color: var(--primary);
        background-color: var(--secondary);
    }

.pagination .active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .pagination a.next, .pagination a.pre{
        display:none
    }
    .pagination a, .pagination span {
        padding: 0.3rem 0.4rem;
    }
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .header-container {
    height: auto;
    padding: 1rem 20px;
  }

  /*nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    gap: 0;
  }

  nav.show {
    display: flex;
  }

  nav a {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid var(--border-color);
  }*/

/*  .menu-toggle {
    display: block;
  }*/

  .hero {
    padding: 3rem 0;
  }

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

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .company-header {
    grid-template-columns: 1fr;
  }

  .company-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

/*  .search-bar {
    flex-direction: column;
  }*/
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .section {
        padding: 2rem 0;
    }

    .modal-content {
        max-width: 100%;
    }

    .logo {
        display: none;
    }

        .logo_m {
            display: initial;
        }
}