/* General Styles */

.social-media-page {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Hero Section */
.hero-section {
  background: #292929;
  min-height: 90vh;
  position: relative;
  overflow: hidden;
}

.hero-container {
  background: #292929;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 40px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  min-height: calc(90vh - 120px);
}

.hero-content {
  flex: 1;
  z-index: 2;
  animation: fadeInLeft 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 30px;
  letter-spacing: 2px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 60px;
  font-weight: 300;
  letter-spacing: 3px;
}

.hero-button {
  background: #ffa224;
  color: white;
  border: none;
  padding: 16px 48px;
  max-width: 400px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.hero-button:hover {
  background: #ed8800;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.hero-image {
  flex: 1;
  position: relative;
  margin-bottom: 100px;
  animation: fadeInRight 1s ease-out;
}

.hero-image img {
  width: 100%;
  height: 600px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
  animation: float 3s ease-in-out infinite;
}

/* Contact Bar */
.contact-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  padding: 30px 20px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: #4a90e2;
}

.contact-text {
  text-align: left;
}

.contact-label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 1rem;
  color: #333;
  font-weight: 600;
}

/* About Section */
.about-section {
  padding: 100px 0;
  background: #fff;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 80px;
}

.about-text {
  flex: 1;
}

.section-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
  font-weight: 400;
}

.about-description {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-description p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.02);
}

.about-button {
  background: #ffa224;
  color: white;
  border: none;
  padding: 16px 48px;
  max-width: 400px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.about-button:hover {
  background: #ed8800;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Why Choose Section */
.why-choose-section {
  padding: 100px 0;
  background: #f8f9fa;
}

.why-choose-header {
  text-align: center;
  margin-bottom: 60px;
}

.why-choose-header .section-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 10px;
}

.why-choose-header .section-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.title-divider {
  width: 80px;
  height: 3px;
  background: #4a90e2;
  margin: 0 auto;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.reason-card {
  background: white;
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.reason-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.reason-icon {
  width: 80px;
  height: 80px;
  background: #f0f7ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.3s ease;
}

.reason-icon svg {
  width: 40px;
  height: 40px;
  color: #4a90e2;
}

.reason-card:hover .reason-icon {
  background: #4a90e2;
  transform: scale(1.1);
}

.reason-card:hover .reason-icon svg {
  color: white;
}

.reason-title {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.reason-text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* Products Section */
.products-section {
  padding: 100px 0;
  background: white;
}

.products-header {
  text-align: center;
  margin-bottom: 60px;
}

.products-header .section-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
}

.section-description {
  font-size: 1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
  align-items: stretch;
}

.product-card {
  background: white;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 300px;
  flex-shrink: 0;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

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

.product-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.product-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
  gap: 15px;
  margin-top: auto;
}

.product-price {
  font-size: 1.2rem;
  color: #4a90e2;
  font-weight: 600;
}

.product-button {
  background: #4a90e2;
  color: white;
  border: none;
  padding: 10px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.product-button:hover {
  background: #357abd;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

/*====================*/
/*popup*/
.package-detail-link {
  display: block;
  text-align: right;
  color: #2F80ED; 
  text-decoration: underline;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.25s ease;
}
.package-detail-link:hover {
  color: #1666d3;   
  transform: translateX(-3px);
}

/* POPUP OVERLAY */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47,128,237,0.18);  
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

/* HIỆN OVERLAY */
.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* POPUP BOX */
.popup-box {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 600px;
    padding: 40px;
    background: #fff;
    border-radius: 24px;
    border: 2px solid #2F80ED22; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
    z-index: 1000;
    max-height: 85vh;
    overflow-y: auto;
}

/* HIỆN POPUP */
.popup-box.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* CLOSE BUTTON */
.popup-close {
    font-size: 30px;
    position: absolute;
    top: 10px;
    right: 16px;
    cursor: pointer;
    font-weight: 600;
    color: #2F80ED;
    transition: 0.2s ease;
}
.popup-close:hover {
    color: #1666d3;
    transform: scale(1.15);
}

/* POPUP CONTENT STYLING */
#popup-content h3 {
    color: #2F80ED;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

#popup-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

#popup-content ul {
    list-style: none;
    padding: 0;
}

#popup-content li {
    color: #555;
    font-size: 14px;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

#popup-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2F80ED;
    font-weight: bold;
}


/* Gallery Section */
.gallery-section {
  background: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 0;
}

.gallery-item {
  overflow: hidden;
  position: relative;
}

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

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

/* Design CTA Section */
.design-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #343a40 0%, #495057 100%);
  text-align: center;
}

.design-cta-content {
  max-width: 700px;
  margin: 0 auto;
  color: white;
  padding: 0 20px;
}

.design-cta-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
  line-height: 1.3;
}

.design-cta-subtitle {
  font-size: 1.1rem;
  margin-bottom: 35px;
  opacity: 0.9;
}

.design-cta-button {
  background: #5a9fd4;
  color: white;
  border: none;
  padding: 15px 45px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.design-cta-button:hover {
  background: #4a8ec2;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(90, 159, 212, 0.4);
}

.design-cta-note {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 15px;
}

/* Contact Form Section */
.contact-form-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.contact-form-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.contact-form-header {
  background: white;
  padding: 40px;
  text-align: center;
  border-bottom: 2px solid #f0f0f0;
}

.form-title {
  font-size: 2.5rem;
  color: #333;
  font-weight: 700;
  margin: 0;
}

.contact-form-content {
  padding: 50px 40px;
}

.custom-contact-form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group-full {
  margin-bottom: 25px;
}

.form-group label {
  font-size: 0.95rem;
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
}

.required {
  color: #e74c3c;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background-color: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

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

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.submit-btn {
  background: #4a90e2;
  color: white;
  border: none;
  padding: 15px 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.submit-btn svg {
  width: 20px;
  height: 20px;
}

.submit-btn:hover {
  background: #357abd;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

/* Features Section */
.features-section {
  padding: 100px 0;
  background: #f8f9fa;
}

.features-header {
  text-align: center;
  margin-bottom: 60px;
}

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

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.feature-text {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.cta-content {
  text-align: center;
  color: white;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.cta-button {
  background: white;
  color: #4a90e2;
  border: none;
  padding: 18px 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding: 60px 30px 100px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .contact-bar {
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
  }

  .about-content {
    flex-direction: column;
    gap: 50px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 250px);
  }

  .gallery-item:nth-child(7),
  .gallery-item:nth-child(8) {
    display: none;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .contact-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-item {
    justify-content: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
  }

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

  .section-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 200px);
  }

  .gallery-title {
    font-size: 2rem;
  }

  .contact-form-content {
    padding: 30px 20px;
  }

  .contact-form-header {
    padding: 30px 20px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-button,
  .cta-button {
    width: 100%;
    padding: 15px 30px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(8, 180px);
  }

  .gallery-title {
    font-size: 1.5rem;
  }

  .gallery-button {
    width: 100%;
  }

  .submit-btn {
    width: 100%;
    justify-content: center;
  }
}