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

/* BODY & GENERAL */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for sticky header + extra space */
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.5;
}

/* HEADINGS */
h1, h2, h3 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.75rem;
}

/* LINKS */
a {
  text-decoration: none;
  color: inherit;
}

/* HEADER / NAVIGATION */
header {
  background-color: #1f1f1f;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: #ddd;
  font-weight: 400;
  transition: color 0.3s ease;
}

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

/* MENU TOGGLE (MOBILE) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 4px 0;
  transition: 0.4s;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #4a5f8f 0%, #5a567f 25%, #6b5f7a 50%, #4c7091 75%, #4a5f8f 100%);
  background-size: 400% 400%;
  animation: gradientShift 25s ease infinite;
  color: #ffffff;
  text-align: center;
  padding: 3rem 2rem 2.5rem;
  position: relative;
  border-bottom: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.btn-cta {
  background: #ffffff;
  color: #4a5f8f;
  padding: 0.85rem 1.75rem;
  border: 2px solid #ffffff;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-cta:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* CONTENT LAYOUT */
.content-layout {
  display: flex;
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: nowrap;
}
.main-content {
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(100% - 300px - 1.5rem);
}
.main-content > .featured,
.main-content > .domains,
.main-content > .mini-directory {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* SIDEBAR */
.sidebar {
  width: 300px;
  flex: 0 0 300px;
  min-width: 300px;
}
.sidebar-ad {
  margin-bottom: 2rem;
}

/* HAVE DOMAINS SECTION */
.have-domains-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 1.5rem;
  margin-bottom: 2rem;
  max-width: 100%;
  overflow: hidden;
}

.have-domains-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f1f1f;
  margin-bottom: 1rem;
  text-align: center;
}

.have-domains-section p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  text-align: center;
}

.btn-contact-sidebar {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  background: #1f1f1f;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 4px;
  border: 2px solid #1f1f1f;
}

.btn-contact-sidebar:hover {
  background: #fff;
  color: #1f1f1f;
}

/* RECENTLY SOLD FEED */
.recently-sold {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 1.5rem;
  margin-bottom: 2rem;
  max-width: 100%;
  overflow: hidden;
}

.recently-sold h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f1f1f;
  margin-bottom: 1.5rem;
  text-align: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
}

.sold-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sold-item {
  padding: 1rem;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.sold-item:hover {
  background: #fff;
  border-color: #1f1f1f;
}

.sold-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sold-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f1f1f;
}

.sold-price {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.sold-badge {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 0.15rem;
}

/* AD PLACEHOLDER */
.ad-placeholder {
  background-color: #f2f2f2;
  border: 2px dashed #ccc;
  color: #999;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1rem;
}
.vertical-ad {
  width: 300px;
  height: 600px;
}
.horizontal-ad {
  width: 728px;
  height: 90px;
  max-width: 100%;
}

/* FEATURED (CAROUSEL) - PROFESSIONAL */
.featured {
  margin-bottom: 1.5rem;
  text-align: center;
  background: #fff;
  padding: 1.25rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 0;
}

.featured h2 {
  color: #1f1f1f;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.featured .section-subtitle {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

/* Logo Carousel */
.logo-carousel-container {
  position: relative;
  max-width: 100%;
  margin: 1rem auto;
  overflow: hidden;
  padding: 0 50px;
}

.logo-carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.logo-carousel-item {
  min-width: 180px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 0.85rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.logo-carousel-item:hover {
  border-color: #1f1f1f;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}

.logo-placeholder {
  width: 100px;
  height: 100px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #666;
  text-align: center;
  padding: 0;
  word-break: break-word;
  overflow: hidden;
  line-height: 1.2;
}

.logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-placeholder:not(:has(img)) {
  padding: 0.5rem;
}

.logo-domain-info {
  text-align: center;
  width: 100%;
}

.logo-domain-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f1f1f;
  margin-bottom: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-domain-price {
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
}

.logo-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: 2px solid #1f1f1f;
  color: #1f1f1f;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  line-height: 1;
  font-weight: 300;
}

.logo-carousel-btn:hover:not([style*="cursor: default"]) {
  background: #1f1f1f;
  color: #fff;
  border-color: #1f1f1f;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.logo-carousel-btn.prev {
  left: 5px;
}

.logo-carousel-btn.next {
  right: 5px;
}

/* DOMAINS SECTION - PROFESSIONAL */
.domains {
  margin-bottom: 1.5rem;
  text-align: center;
}

.domains h2 {
  font-size: 1.7rem;
  color: #1f1f1f;
  margin-bottom: 0.35rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.domains .section-subtitle {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  font-weight: 400;
}

/* View Toggle Buttons */
.view-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 1rem 0;
  border: 1px solid #e0e0e0;
  display: inline-flex;
  border-radius: 0;
}

.view-toggle button {
  background: #fff;
  border: none;
  border-right: 1px solid #e0e0e0;
  padding: 0.7rem 1.5rem;
  border-radius: 0;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  color: #666;
}

.view-toggle button:last-child {
  border-right: none;
}

.view-toggle button.active {
  background: #1f1f1f;
  color: #fff;
}

.view-toggle button:hover:not(.active) {
  background: #f8f9fa;
  color: #1f1f1f;
}

/* Domain Grid Views */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

/* Text-Only View */
.domain-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 1rem;
  border-radius: 0;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  position: relative;
  gap: 0.5rem;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.domain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #1f1f1f;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.domain-card:hover::before {
  transform: scaleX(1);
}

.domain-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-color: #1f1f1f;
}

.domain-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #1f1f1f;
  font-weight: 600;
  letter-spacing: -0.3px;
  min-height: 2.4em;
  height: auto;
  max-height: 2.4em;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Logo View */
.domain-card.logo-view {
  text-align: center;
  padding: 1rem;
  gap: 0.5rem;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.domain-card.logo-view h3 {
  min-height: 2.4em;
  height: auto;
  max-height: 2.4em;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: keep-all;
  overflow-wrap: break-word;
  flex-shrink: 0;
}

.domain-card.logo-view .price {
  flex-shrink: 0;
}

.domain-card.logo-view .desc {
  display: none;
}

.domain-card.logo-view .btn-buy {
  align-self: center;
  margin-top: auto;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  flex-shrink: 0;
}

.domain-logo {
  width: 100%;
  height: 100px;
  min-height: 100px;
  max-height: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 0;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  position: relative;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  word-wrap: break-word;
  padding: 0;
  line-height: 1.1;
}

.domain-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.domain-logo.placeholder {
  background: #f8f9fa;
  color: #666;
  letter-spacing: -0.5px;
  font-size: 0.95rem;
  padding: 0.65rem;
}

.price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 0.4rem;
  flex-shrink: 0;
}

.desc {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.6rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.btn-buy {
  background: #1f1f1f;
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-block;
  border: 2px solid #1f1f1f;
  margin-top: auto;
  align-self: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  width: 100%;
}

.btn-buy:hover {
  background: #fff;
  color: #1f1f1f;
  border-color: #1f1f1f;
}

/* MINI DIRECTORY TABLE */
.mini-directory {
  margin: 1.5rem 0;
  text-align: center;
  background: #fff;
  padding: 1.3rem;
  border-radius: 0;
  border: 1px solid #e0e0e0;
}

.mini-directory h2 {
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
  color: #1f1f1f;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 0.75rem;
  border-radius: 0;
  border: 1px solid #e0e0e0;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
  background: #fff;
}
thead {
  background: #1f1f1f;
}
th {
  padding: 0.75rem;
  color: #fff;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}
td {
  padding: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
  font-size: 0.95rem;
}
tr:hover {
  background: #f8f9fa;
}
tr:last-child td {
  border-bottom: none;
}

/* Mini directory pagination controls */
.mini-pagination-controls {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

/* CONTACT SECTION (TIGHT & SLEEK) */
/* NEW / UPDATED CONTACT SECTION STYLES */
.contact {
  background: #f8f9fa;
  border-radius: 0;
  margin: 1.5rem auto;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  width: calc(100% - 3rem);
  max-width: 1180px;
}

.contact-layout {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

.contact-form {
  flex: 2 1 0;
  background: #fff;
  padding: 1.5rem;
  border-radius: 0;
  border: 1px solid #e0e0e0;
}

.contact-form h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #1f1f1f;
}

.contact-form p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.contact-form form {
  max-width: 100%;
  margin: 0; 
  text-align: left;
}

.contact-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: #1f1f1f;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 0.8rem;
  border: 1px solid #e0e0e0;
  border-radius: 0;
}

.contact-form textarea {
  resize: vertical;
  min-height: 80px;
}

.contact-form .btn-submit {
  background: #1f1f1f;
  color: #fff;
  border: 1px solid #1f1f1f;
  padding: 0.8rem 1.2rem;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  width: 100%;
}

.contact-form .btn-submit:hover {
  background: #fff;
  color: #1f1f1f;
}

.contact-aside {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-start;
  background: #fff;
  padding: 1.5rem;
  border-radius: 0;
  border: 1px solid #e0e0e0;
  max-width: 360px;
}

.contact-image {
  width: 100%;
  border-radius: 0;
  object-fit: cover;
  max-height: 200px;
}

.contact-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #1f1f1f;
}

.contact-info ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  color: #666;
}
.btn-submit {
  background: #1f1f1f;
  color: #fff;
  border: 1px solid #1f1f1f;
  padding: 0.8rem 1.2rem;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: 500;
  margin-top: 0.5rem;
  width: 100%;
}
.btn-submit:hover {
  background: #0056b3;
}

/* DIRECTORY PAGE - FULL HEIGHT */
.directory-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1rem;
  text-align: center;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
}

.directory-section h1 {
  font-size: 2.5rem;
  color: #1f1f1f;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

#domainList {
  flex-grow: 1;
  min-height: 400px;
}
.filter-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  align-items: flex-end;
  justify-content: center;
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 0;
  border: 1px solid #e0e0e0;
}
.filter-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.filter-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1f1f1f;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filter-group input,
.filter-group select {
  padding: 0.7rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  font-family: inherit;
  transition: all 0.2s ease;
  min-width: 200px;
  background: #fff;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: #1f1f1f;
}
.quality-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}
.quality-btn {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 0.7rem 1.5rem;
  border-radius: 0;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  color: #1f1f1f;
}
.quality-btn:hover {
  border-color: #1f1f1f;
}
.active-quality {
  background: #1f1f1f;
  color: #fff;
  border-color: #1f1f1f;
}
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  gap: 1.5rem;
  padding: 1.5rem 0;
}
.pagination-btn {
  background: #1f1f1f;
  color: #fff;
  border: 1px solid #1f1f1f;
  padding: 0.8rem 1.5rem;
  border-radius: 0;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: #fff;
  color: #1f1f1f;
}

.pagination-btn:disabled {
  background: #f8f9fa;
  color: #999;
  border-color: #e0e0e0;
  cursor: not-allowed;
}
#pageIndicator, #domainsPageIndicator {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1f1f1f;
  min-width: 120px;
  text-align: center;
}

/* Homepage Domains Pagination */
.domains-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
}

/* BUY DOMAIN PAGE */
.buy-domain-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}
.domain-hero {
  margin-bottom: 3rem;
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 3px solid #1f1f1f;
}
.domain-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1f1f1f;
}
.domain-hero span {
  color: #007bff;
  font-weight: 700;
}
.domain-detail-logo {
  width: 200px;
  height: 200px;
  margin: 1.5rem auto;
  border: 2px solid #1f1f1f;
  overflow: hidden;
  background: #fff;
}
.domain-detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.domain-subtitle {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: #555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.why-premium,
.about-domain {
  margin-bottom: 3rem;
}
.why-premium ul,
.about-domain ul {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}
.why-premium li,
.about-domain li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.why-premium li::before,
.about-domain li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #007bff;
  font-weight: bold;
  font-size: 1.2rem;
}
.why-premium h2,
.about-domain h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #1f1f1f;
}
.about-domain p {
  line-height: 1.8;
  color: #666;
  font-size: 1.05rem;
}

/* FOOTER */
footer {
  background: #1f1f1f;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #eee;
}

/* MEDIA QUERIES */
@media (max-width: 1200px) {
  /* 3 columns on medium-large screens */
  .domains-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  /* Stack sidebar to prevent squeezing */
  .content-layout {
    flex-direction: column;
  }
  .main-content {
    max-width: 100%;
  }
  .sidebar {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    min-width: 0;
  }
  
  /* 4 columns on tablets (4x2 = 8 items) - sidebar is below so full width available */
  .domains-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Horizontal ads on tablet */
  .vertical-ad {
    width: 100%;
    height: 90px;
    min-height: 90px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    background: #1f1f1f;
    top: 60px;
    right: 0;
    flex-direction: column;
    width: 200px;
    border-top: 1px solid #444;
  }
  .contact-layout {
    flex-direction: column;
  }
  .contact-aside {
    max-width: 100%;
  }
  .nav-links li {
    margin: 1rem 0;
    text-align: center;
  }
  .nav-links a {
    color: #ddd;
  }
  .menu-toggle {
    display: flex;
  }

  /* All ads horizontal on mobile */
  .vertical-ad,
  .horizontal-ad {
    width: 100%;
    height: 90px;
    min-height: 90px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  /* 3 columns on smaller tablets */
  .domains-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  /* 2 columns on mobile */
  .domains-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 400px) {
  /* 1 column on very small mobile */
  .domains-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .btn-cta {
    width: 100%;
  }
  .carousel-container {
    max-width: 100%;
  }
  .domain-hero {
    padding: 2rem 1rem;
  }
  .domain-hero h1 {
    font-size: 1.6rem;
  }
  .why-premium ul {
    margin-left: 0;
  }
  .buy-domain-container .content-layout {
    padding: 0 1rem;
  }
  
  /* Ensure content doesn't get squeezed */
  header {
    padding: 1rem;
  }
  .content-layout {
    padding: 0 1rem;
    gap: 1rem;
  }
  .main-content {
    max-width: 100%;
    width: 100%;
  }
  .sidebar {
    width: 100%;
    max-width: 100%;
  }
  
  /* Mobile pricing adjustments */
  .domain-price-tag {
    font-size: 1rem;
  }
  .price-amount {
    font-size: 1.2rem;
  }
}
