@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.0/css/all.min.css');

/* ============================================================= */
/* 1. GLOBAL & RESET STYLES                                     */
/* ============================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0d1117;
  color: #e6edf3;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }

.portal-text-center { text-align: center; }
.portal-mt-5 { margin-top: 3rem; }
.portal-ms-2 { margin-left: 0.5rem; }

.portal-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-weight: 600;
}
.portal-bg-danger  { background: #da3633; color: white; }
.portal-bg-warning { background: #d29922; color: white; }

/* ============================================================= */
/* 2. HEADER & NAVIGATION STYLES                                */
/* ============================================================= */

.header {
  background: rgba(13,17,23,0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 90px;
  display: flex;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid #30363d;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-img {
  height: 250px;
  max-width: 200px;
  object-fit: contain;
  transition: transform .3s;
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav a {
  color: #e6edf3;
  text-decoration: none;
  margin-left: 2.2rem;
  font-weight: 500;
  font-size: 1.05rem;
}

.nav a:hover, .nav a.active {
  color: #58a6ff;
}

.customer-portal-btn {
  margin-left: 2rem;
  background: #005f9f;
  color: white;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 4px 15px #005f9f;
  text-decoration: none;
}

.customer-portal-btn:hover {
  background: #005f9f;
  transform: translateY(-3px);
}

/* Hamburger menu button (visible only on mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: #e6edf3;
  transition: all 0.3s;
}

/* Mobile menu (dropdown) */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(13,17,23,0.98);
  backdrop-filter: blur(10px);
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #30363d;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: #e6edf3;
  text-decoration: none;
  padding: 15px 20px;
  width: 100%;
  text-align: center;
  font-weight: 500;
  font-size: 1.1rem;
}

.mobile-menu a:hover {
  color: #58a6ff;
  background: rgba(255,255,255,0.05);
}

.mobile-menu .customer-portal-btn {
  margin: 10px 20px;
  width: auto;
  display: inline-block;
}

/* Responsive styles for header */
@media (max-width: 992px) {
  .header {
    height: 70px; /* Slightly smaller header on mobile */
  }

  .logo-img {
    height: 55px; /* Smaller logo on mobile */
  }

  .nav {
    display: none; /* Hide desktop navigation */
  }

  .hamburger {
    display: flex;
  }

  /* Hamburger turns into X when active */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

/* ============================================================= */
/* 3. MAIN SITE – BUTTONS & SECTIONS                            */
/* ============================================================= */

.btn {
  background: #005f9f;
  color: white;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all .3s;
}

.btn:hover {
  background: #e55a00;
  transform: translateY(-4px);
}

.btn-primary { background: #ff6b00; }
.btn-primary:hover { background: #e55a00; }

.btn-secondary {
  background: transparent;
  border: 2px solid #ff6b00;
}

.btn-secondary:hover {
  background: #ff6b00;
  border-color: #ff6b00;
}

/* About Section */
.about-section {
  padding: 120px 0;
  background: #161b22;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.8rem;
  color: #58a6ff;
  margin-bottom: 1.5rem;
}

.check-list {
  list-style: none;
  margin: 2rem 0;
}

.check-list li {
  padding: 0.7rem 0;
  position: relative;
  padding-left: 2.5rem;
  font-size: 1.1rem;
}

.check-list li::before {
  content: '\f108';
  font-family: 'Font Awesome 7 Free';
  font-weight: 900;
  color: #ff6b00;
  position: absolute;
  left: 0;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Services Preview */
.services-preview {
  padding: 140px 0 120px;
  background: #0d1117;
}

.services-preview h2 {
  text-align: center;
  font-size: 3.2rem;
  margin-bottom: 4rem;
  color: #58a6ff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: #21262d;
  padding: 3.5rem 2rem;
  border-radius: 18px;
  text-align: center;
  border: 1px solid #30363d;
  transition: all .4s;
}

.service-card:hover {
  transform: translateY(-15px);
  border-color: #58a6ff;
  box-shadow: 0 20px 40px rgba(88,166,255,0.15);
}

.service-card i {
  color: #ff6b00;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  color: #58a6ff;
  margin: 1rem 0;
}

/* Why Choose Us */
.why-choose-us {
  padding: 120px 0;
  background: #161b22;
}

.why-choose-us h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 4rem;
  color: #58a6ff;
}

.features-grid {
  display: grid;
  background: #161b22;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.feature {
  text-align: center;
  padding: 2rem;
}

.feature i {
  color: #ff6b00;
  margin-bottom: 1.5rem;
}

.feature h4 {
  font-size: 1.5rem;
  color: #58a6ff;
  margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #ff6b00, #e55a00);
  text-align: center;
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Main site responsive */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-image img {
    max-width: 80%;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 768px) {
  .services-preview h2,
  .why-choose-us h2,
  .cta-section h2 { font-size: 2.5rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 320px; }
}

/* ============================================================= */
/* 4. CUSTOMER PORTAL – DASHBOARD & SIDEBAR                     */
/* ============================================================= */

.portal-dashboard { display: flex; min-height: 100vh; background: #0d1117; }

.portal-sidebar {
  width: 280px; background: #161b22; border-right: 1px solid #30363d;
  flex-shrink: 0; position: fixed; inset: 0  auto 0 0; z-index: 100;
  overflow-y: auto; transition: transform .3s ease;
}
.portal-sidebar-header   { padding: 2rem 1.5rem; text-align: center; border-bottom: 1px solid #30363d; }
.portal-sidebar-header h4 { margin: 0.5rem 0 0; font-size: 1.1rem; }
.portal-sidebar-menu     { padding: 1rem 0; }
.portal-sidebar-item {
  display: flex; align-items: center; padding: 0.9rem 1.5rem;
  color: #e6edf3; text-decoration: none; transition: all .2s;
}
.portal-sidebar-item:hover, .portal-sidebar-item.active { background: #21262d; color: #58a6ff; }
.portal-sidebar-item i { width: 24px; margin-right: 12px; font-size: 1.1rem; }

.portal-main-content { flex: 1; margin-left: 280px; padding: 3rem 2rem; }

.portal-welcome-card h2 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.portal-welcome-card p  { font-size: 1.1rem; opacity: 0.9; }

.portal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
  margin: 2.5rem 0;
}
.portal-stat-card {
  background: #161b22; padding: 2rem; border-radius: 12px;
  text-align: center; border: 1px solid #30363d;
}
.portal-stat-card h3 { font-size: 2.8rem; margin: 0 0 0.5rem; color: #58a6ff; }
.portal-stat-card p  { margin: 0; font-size: 1.1rem; opacity: 0.9; }

.portal-btn-login {
  background: #ff6b00; color: white; padding: 1rem 2.5rem;
  border-radius: 50px; text-decoration: none; font-weight: 600;
  transition: all .3s; display: inline-block;
}
.portal-btn-login:hover { background: #e55a00; transform: translateY(-3px); }

.portal-mobile-toggle {
  display: none; position: fixed; top: 1rem; left: 1rem; z-index: 101;
  background: #21262d; border: 1px solid #30363d; padding: 0.8rem 1.2rem;
  border-radius: 8px; color: white;
}

/* Portal dashboard responsive */
@media (max-width: 992px) {
  .portal-sidebar { transform: translateX(-100%); }
  .portal-sidebar.open { transform: translateX(0); }
  .portal-main-content { margin-left: 0; }
  .portal-mobile-toggle { display: block; }
}

/* ============================================================= */
/* 5. PORTAL LOGIN PAGE                                         */
/* ============================================================= */

.portal-bg { 
  background: #0d1117; 
  min-height: 100vh; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 2rem 1rem;
}

.portal-login-container { width: 100%; max-width: 420px; }

.portal-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.portal-card-body { padding: 3rem 2.5rem; text-align: center; }

/* BIGGER, BOLDER LOGIN LOGO */
.portal-logo {
  max-width: 320px;     /* adjust this number to make it even bigger/smaller */
  width: 90%;
  height: auto;
  margin: 0 auto 2.5rem auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.portal-mb-4 { margin-bottom: 1.5rem; }
.portal-mt-4 { margin-top: 1.5rem; }

.portal-label {
  display: block;
  text-align: left;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #e6edf3;
}

.portal-input {
  width: 100%;
  padding: 0.9rem 1rem;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border 0.2s;
}
.portal-input:focus {
  outline: none;
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88,166,255,0.2);
}

.portal-2fa-input {
  font-size: 1.8rem;
  letter-spacing: 0.5rem;
  text-align: center;
  font-weight: bold;
}

.portal-btn-full { width: 100%; justify-content: center; margin-top: 0.5rem; }

.portal-btn-login {
  background: #ff6b00;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all .3s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}
.portal-btn-login:hover { background: #e55a00; transform: translateY(-3px); }

.portal-btn-register {
  margin-top: 1.5rem;
  display: block;
  color: #58a6ff;
  text-decoration: none;
  font-weight: 500;
}
.portal-btn-register:hover { text-decoration: underline; }

.portal-alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.portal-alert-danger { background: #da3633; color: white; }

/* Back to main site button – top left, clean & unobtrusive */
.portal-back-link {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 10;
}

.portal-back-btn {
  color: #e6edf3;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.portal-back-btn:hover {
  opacity: 1;
  color: #58a6ff;
  transform: translateX(-4px);
}

.portal-back-btn i {
  font-size: 1.1rem;
}

/* On mobile – move it down a bit and center if needed */
@media (max-width: 768px) {
  .portal-back-link {
    left: 1.5rem;
    top: 1.5rem;
  }
  .portal-back-btn {
    font-size: 0.95rem;
  }
}

/* ============================================================= */
/* 6. CUSTOMER PORTAL – TICKETS PAGE (pt- prefix)               */
/* ============================================================= */

.pt-tickets-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.pt-page-header { margin-bottom: 2.5rem; }

.pt-btn-new-ticket {
  background: #ff6b00;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
}

.pt-btn-new-ticket:hover {
  background: #e55a00;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
}

.pt-ticket-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.pt-ticket-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  border-color: #58a6ff;
}

.pt-ticket-header { padding: 1.5rem 1.5rem 1rem; border-bottom: 1px solid #30363d; }
.pt-ticket-number { font-size: 1.4rem; font-weight: 700; color: #58a6ff; margin: 0; }
.pt-ticket-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.8rem; font-size: 0.95rem; color: #8b949e; }
.pt-ticket-meta strong { color: #e6edf3; }
.pt-ticket-body { padding: 1.5rem; }
.pt-ticket-description { color: #c9d1d9; line-height: 1.6; word-break: break-word; }
.pt-ticket-footer {
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid #30363d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}
.pt-ticket-footer small { color: #8b949e; }

.pt-btn-view-ticket {
  background: transparent;
  border: 1px solid #58a6ff;
  color: #58a6ff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.pt-btn-view-ticket:hover {
  background: #58a6ff;
  color: #0d1117;
}

.pt-no-tickets {
  text-align: center;
  padding: 5rem 2rem;
  color: #8b949e;
  font-size: 1.2rem;
}

.pt-no-tickets i { font-size: 4rem; opacity: 0.5; margin-bottom: 1rem; }

/* Alerts */
.pt-alert-success {
  background: rgba(46, 160, 67, 0.15);
  border: 1px solid #2ea043;
  color: #a5d6a7;
}

.pt-alert-danger {
  background: rgba(218, 54, 51, 0.15);
  border: 1px solid #da3633;
  color: #f8d7da;
}

/* Modal styling */
.pt-modal .modal-content {
  background: #161b22;
  border: 1px solid #30363d;
  color: #e6edf3;
  border-radius: 12px;
}

.pt-modal .modal-header,
.pt-modal .modal-footer {
  border-color: #30363d;
}

.pt-modal .modal-title {
  color: #e6edf3;
}

.pt-modal .form-label {
  color: #e6edf3;
  font-weight: 500;
}

.pt-modal .form-control,
.pt-modal .form-select {
  background: #21262d;
  border: 1px solid #444;
  color: #e6edf3;
  border-radius: 8px;
}

.pt-modal .form-control::placeholder {
  color: #6e7681;
}

.pt-modal .form-control:focus,
.pt-modal .form-select:focus {
  background: #21262d;
  border-color: #58a6ff;
  box-shadow: 0 0 0 0.2rem rgba(88, 166, 255, 0.25);
  color: #e6edf3;
}

.pt-modal .form-text {
  color: #8b949e;
}

/* ============================================================= */
/* 7. TICKET VIEW PAGE (view-ticket.php)                        */
/* ============================================================= */

body.portal-dashboard {
  background-color: #121212;
  color: #e0e0e0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Main container */
.ticketview-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Cards */
.card.bg-secondary {
  background-color: #1e1e1e !important;
  border: 1px solid #333 !important;
}

/* Headings */
h2.h3, h5 {
  color: #ffffff;
}

/* Badges */
.badge {
  font-size: 0.85em;
  padding: 0.5em 0.8em;
}

/* Message History - Chat Bubble Layout */
.message-bubble {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 85%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  word-wrap: break-word;
}

.message-customer {
  background: #2d3748;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message-tech {
  background: #1a365d;
  align-self: flex-end;
  color: #a5d8ff;
  border-bottom-right-radius: 4px;
}

.message-system {
  background: #2d3748;
  align-self: flex-start;
  font-style: italic;
  opacity: 0.9;
  border-bottom-left-radius: 4px;
}

/* Align tech messages to the right */
.d-flex.flex-column > .message-tech {
  margin-left: auto;
}

/* Message meta (sender + timestamp) */
.message-bubble .d-flex.justify-content-between {
  margin-bottom: 0.75rem;
  font-size: 0.95em;
}

.message-bubble strong {
  color: #ffffff;
}

.message-bubble small.text-muted {
  color: #a0aec0 !important;
}

/* Message text */
.message-bubble p {
  margin: 0;
  line-height: 1.6;
}

/* Attachments */
.attachment-item {
  display: block;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-top: 0.5rem;
  text-decoration: none;
  color: #e0e0e0;
  transition: background 0.2s;
  font-size: 0.95em;
}

.attachment-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  text-decoration: none;
}

.attachment-item i {
  color: #90cdf4;
}

/* Reply Form */
.ticketview-submit-btn {
  background: #2563eb;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s;
}

.ticketview-submit-btn:hover {
  background: #1d4ed8;
}

/* Form controls in dark mode */
.form-control.bg-dark,
textarea.form-control.bg-dark {
  background-color: #1e1e1e;
  border-color: #444;
  color: #e0e0e0;
}

.form-control.bg-dark::placeholder {
  color: #777;
}

.form-control.bg-dark:focus {
  background-color: #1e1e1e;
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
  color: #e0e0e0;
}

/* File input styling */
input[type="file"].form-control {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

/* Alerts */
.alert-success {
  background-color: #166534;
  border-color: #1f9a5e;
  color: #d4edda;
}

.alert-danger {
  background-color: #58151c;
  border-color: #842029;
  color: #f8d7da;
}

/* Empty state */
.text-center.py-5 {
  font-style: italic;
  color: #718096;
}

/* ============================================================= */
/* 8. RESIDENTIAL & BUSINESS SUPPORT PAGES                      */
/* ============================================================= */

.residential-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
}
.residential-hero h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.residential-hero .check-list {
  color: white;
  margin: 2rem 0;
}
.residential-hero .btn {
  background: #ffcc00;
  color: #222;
  font-weight: bold;
  padding: 14px 32px;
  font-size: 1.1rem;
  border: none; /* optional: removes default button border */
  cursor: pointer;
}

.residential-services .services-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.residential-services .service-card i {
  color: #667eea;
  margin-bottom: 1rem;
}

.residential-pricing {
  background: #21262d;
  padding: 80px 0;
}
.residential-pricing .features-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  text-align: center;
}
.residential-pricing .feature i {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.residential-pricing .feature h4 {
  font-size: 1.5rem;
  margin: 1rem 0;
}
.residential-pricing strong {
  font-size: 2rem;
  color: #667eea;
}

.residential-testimonials {
  padding: 80px 0;
  background: #0d1117;
}
.residential-testimonials .service-card {
  background: #21262d;
  border: none;
  font-style: italic;
  text-align: center;
}
.residential-testimonials strong {
  font-style: normal;
  display: block;
  margin-top: 1rem;
  color: #667eea;
}

.residential-cta {
  background: linear-gradient(135deg, #2e3866 0%, #746b6b 100%);
  color: white;
  padding: 90px 0;
  text-align: center;
}

.residential-cta h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.residential-cta .btn:first-child {
  background: #ffcc00;
  color: #222;
  font-weight: bold;
  padding: 16px 40px;
  font-size: 1.2rem;
  margin: 0 10px;
}
.residential-cta p {
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

/* Business Support */
.business-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
}
.business-hero h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.business-hero .check-list {
  color: white;
  margin: 2rem 0;
}
.business-cta .btn {  /* or .business-hero .btn if you prefer */
  background: #109f2f;
  color: #222;
  font-weight: bold;
  padding: 14px 32px;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
}

.business-services .services-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.business-services .service-card i {
  color: #667eea;
  margin-bottom: 1rem;
}

.business-pricing {
  background: #21262d;
  padding: 80px 0;
}
.business-pricing .features-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  text-align: center;
}
.business-pricing .feature i {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.business-pricing .feature h4 {
  font-size: 1.5rem;
  margin: 1rem 0;
}
.business-pricing strong {
  font-size: 2rem;
  color: #667eea;
}

.business-testimonials {
  padding: 80px 0;
  background: #fff;
}
.business-testimonials .service-card {
  background: #f0f4ff;
  border: none;
  font-style: italic;
  text-align: center;
}
.business-testimonials strong {
  font-style: normal;
  display: block;
  margin-top: 1rem;
  color: #333;
}

.business-cta {
  background:
  linear-gradient(135deg, rgba(46, 56, 102, 0.8) 0%, rgba(116, 107, 107, 0.8) 100%),
  url('/images/IMG_0863.jpg') center/cover no-repeat;  
  color: white;
  padding: 90px 0;
  text-align: center;
}

.business-cta h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.business-cta .btn:first-child {
  background: #ffcc00;
  color: #222;
  font-weight: bold;
  padding: 16px 40px;
  font-size: 1.2rem;
  margin: 0 10px;
}
.business-cta p {
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.modal-content {
  background: white;
  max-width: 500px;
  width: 100%;
  border-radius: 12px;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-close {
  position: absolute;
  top: 12px; right: 18px;
  font-size: 2.5rem;
  cursor: pointer;
  color: #aaa;
}
.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  padding: 12px 16px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}
.modal-content h3 { color: #667eea; margin-top: 0; }

/* ============================================================= */
/* 9. BLOG PAGE - Compact Grid + Spacious Reading Pane          */
/* ============================================================= */

/* Remove any max-width limit ONLY for the grid area */
main {
    max-width: 1400px;        /* Reasonable max for readability */
    margin: 0 auto;
    padding: 120px 20px 60px;
    width: 100%;
    box-sizing: border-box;
}

/* Title stays centered */
h1 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.8rem;
    font-weight: 800;
    color: #005f9f;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #f5a739;
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Dense compact grid - many small cards */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 100px;
    width: 100%;
}

/* Small cube-like cards */
.post-card {
    background: #4a453d;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 280px;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.post-thumb {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-thumb img {
    transform: scale(1.15);
}

.post-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card h2 {
    font-size: 1.25rem;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.3;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .meta {
    font-size: 0.85rem;
    color: #bbbbbb;
    margin-bottom: 12px;
}

.excerpt-preview {
    font-size: 0.95rem;
    color: #dddddd;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Reading Pane - normal centered, spacious width */
#reading-pane.hidden {
    display: none;
}

#reading-pane {
    background: rgba(0, 0, 0, 0.4);
    padding: 80px 20px;
    margin: 0 auto;
    width: 100%;
}

#reading-pane .reading-content {
    max-width: 900px;         /* Comfortable reading width */
    margin: 0 auto;
    background: #3c3730;
    border-radius: 20px;
    padding: 48px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-top: 4px solid #f5a739;
}

.close-btn {
    position: absolute;
    top: 24px;
    right: 32px;
    background: rgba(245, 167, 57, 0.15);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    color: #f5a739;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f5a739;
    color: #000;
}

.full-article h1 {
    font-size: 2.8rem;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.full-thumb {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 16px;
    margin: 32px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.meta-full {
    font-size: 1.1rem;
    color: #f5a739;
    margin-bottom: 40px;
    font-weight: 500;
}

.article-body {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #e0e0e0;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 32px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 18px;
    }
    .post-card {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    .post-card {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .post-card {
        height: 260px;
    }
    .post-thumb {
        height: 130px;
    }
    #reading-pane .reading-content {
        padding: 32px 20px;
        margin: 0 10px;
        border-radius: 16px;
    }
    .full-article h1 {
        font-size: 2.2rem;
    }
}
/* ============================================================= */
/* 10. FOOTER                                                   */
/* ============================================================= */

.footer {
  background-color: #111827; /* equivalent to bg-gray-900 */
  color: white;
  padding: 3rem 0;
  border-top: 1px solid #1f2937; /* border-gray-800 */
}

.footer-container {
  max-width: 80rem; /* max-w-7xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.footer-content {
  text-align: center;
}

.footer-brand {
  font-size: 2.5rem; /* text-4xl */
  font-weight: 800; /* font-extrabold */
  margin-bottom: 0.5rem;
}

.brand-saving {
  color: white;
}

.brand-yourtech {
  color: #58a6ff;; /* teal-400 */
}

.footer-tagline {
  color: #9ca3af; /* text-gray-300 */
  font-size: 1.125rem; /* text-lg */
  margin-bottom: 2.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-social a {
  color: #9ca3af; /* gray-400 */
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #5eead4; /* teal-400 */
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-copyright {
  font-size: 0.875rem; /* text-sm */
  color: #6b7280; /* gray-500 */
}

/* ============================================================= */
/* 11. RESPONSIVE IMPROVEMENTS FOR PORTAL PAGES                 */
/* ============================================================= */

.portal-main-content { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
@media (max-width: 992px) { .portal-main-content { padding: 2rem 1rem; } }

@media (max-width: 992px) {
    .pt-tickets-container,
    .ticketview-container {
        padding: 1.5rem 1rem;
    }

    /* Stack page headers vertically */
    .pt-page-header,
    .d-flex.align-items-center.gap-3 {
        flex-direction: column;
        align-items: stretch !important;
        text-align: center;
    }

    .pt-page-header .pt-btn-new-ticket,
    .btn-new-ticket {
        width: 100%;
        max-width: 320px;
        margin: 1rem auto 0;
    }

    /* Ticket cards on tickets.php */
    .pt-ticket-card {
        margin-bottom: 1.2rem;
    }

    .pt-ticket-header,
    .pt-ticket-body,
    .pt-ticket-footer {
        padding: 1.2rem;
    }

    .pt-ticket-footer {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .pt-ticket-meta {
        justify-content: center;
        font-size: 0.9rem;
        flex-direction: column;
        align-items: center;
    }

    .pt-ticket-meta .badge {
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .pt-tickets-container,
    .ticketview-container {
        padding: 1rem 0.75rem;
    }

    .pt-ticket-number {
        font-size: 1.3rem;
    }

    .pt-ticket-meta span {
        display: block;
        margin-bottom: 0.5rem;
    }

    .pt-ticket-meta .badge {
        display: inline-block;
        margin-top: 0.5rem;
    }
}

/* For view-ticket.php — responsive message bubbles */
@media (max-width: 768px) {
    .message-bubble {
        max-width: 95%;
    }

    .d-flex.flex-column > .message-tech {
        margin-left: 0;
        margin-right: auto;
    }

    .ticketview-container {
        padding: 1.5rem 1rem;
    }

    .attachment-item {
        font-size: 0.9em;
    }
}

@media (max-width: 576px) {
    .d-flex.align-items-center.gap-3 {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-sm {
        width: 100%;
        text-align: center;
    }
}

/* Message bubbles in view-ticket.php (chat view) */
.messages-wrapper {
    max-width: 100%;
}

/* Desktop & Tablet: Tech messages on the right */
@media (min-width: 769px) {
    .messages-wrapper > .message-tech {
        align-self: flex-end;
        max-width: 80%;
    }

    .messages-wrapper > .message-customer,
    .messages-wrapper > .message-system {
        align-self: flex-start;
        max-width: 80%;
    }

    .message-bubble {
        max-width: 80%;
    }
}

/* Mobile: All messages full-width and left-aligned for better reading */
@media (max-width: 768px) {
    .messages-wrapper > .message-bubble {
        max-width: 100% !important;
        align-self: flex-start !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .message-bubble {
        border-radius: 12px;
    }

    /* Slightly smaller text on mobile */
    .message-bubble p {
        font-size: 0.95rem;
    }
}

/* ----- Modal improvements on mobile ----- */
@media (max-width: 576px) {
    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .modal-footer .btn:last-child {
        margin-bottom: 0;
    }

    .modal-dialog {
        margin: 1rem;
    }

    .form-control,
    .form-select {
        font-size: 1rem; /* Prevents iOS zoom */
    }
}

/* ----- Empty state & general text ----- */
@media (max-width: 768px) {
    .pt-no-tickets,
    .text-center.py-5 {
        padding: 3rem 1rem;
    }

    .pt-no-tickets i,
    .text-center i {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .pt-tickets-container {
        padding: 1.5rem 1rem;
    }

    .pt-page-header {
        text-align: center;
    }

    .pt-page-header .pt-btn-new-ticket {
        width: 100%;
        max-width: 300px;
        margin-top: 1rem;
    }

    .pt-ticket-footer {
        flex-direction: column;
        text-align: center;
    }
}



/* ===================================
   CONTACT PAGE - DARK MODE (DEFAULT)
   =================================== */

.contact-hero {
  padding: 100px 0 80px;
  color: white;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%); /* deeper blue for dark business */
}

.contact-hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.contact-hero-text p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.contact-big-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: #ffffff;
  color: #1d4ed8;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.contact-big-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  background: #f1f5f9;
}

.contact-main {
  padding: 100px 0;
  background: #111827; /* main dark background */
  color: #e2e8f0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2,
.contact-form-card h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  color: #60a5fa; /* light blue accent for headings */
}

.contact-info > p {
  color: #94a3b8;
  margin-bottom: 40px;
}

.info-card {
  background: #1e293b;
  padding: 24px;
  border-radius: 12px;
  border-left: 5px solid #3b82f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 24px;
}

.info-card i {
  color: #60a5fa;
  margin-bottom: 16px;
  font-size: 2rem;
}

.info-card h4 {
  color: #93c5fd;
  margin-bottom: 8px;
}

.info-card a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.info-card p,
.info-card small {
  color: #94a3b8;
}

.contact-form-card {
  background: #1e293b;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group.full {
  grid-column: span 2;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #cbd5e1;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  font-size: 1rem;
  color: #e2e8f0;
  transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #64748b;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

.submit-btn {
  background: #2563eb;
  color: white;
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: #3b82f6;
}

.emergency-note {
  background: #7c2d12;
  padding: 20px;
  border-radius: 10px;
  border-left: 5px solid #f97316;
  color: #fb923c;
  font-size: 1.1rem;
  margin-top: 32px;
}

.form-note {
  margin-top: 24px;
  color: #94a3b8;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===================================
   RESIDENTIAL OVERRIDES (DARK MODE)
   =================================== */

body.contact-residential .contact-hero {
  background: linear-gradient(135deg, #be123c 0%, #ea580c 100%); /* warm gradient */
}

body.contact-residential .contact-big-btn {
  color: #ea580c;
}

body.contact-residential .contact-big-btn:hover {
  background: #fff0e6;
}

body.contact-residential .contact-info h2,
body.contact-residential .contact-form-card h2 {
  color: #fb923c;
}

body.contact-residential .info-card {
  background: #7c2d12;
  border-left-color: #f97316;
}

body.contact-residential .info-card i,
body.contact-residential .info-card a {
  color: #fb923c;
}

body.contact-residential .info-card h4 {
  color: #fdba74;
}

body.contact-residential .form-group input:focus,
body.contact-residential .form-group select:focus,
body.contact-residential .form-group textarea:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.3);
}

body.contact-residential .submit-btn {
  background: linear-gradient(to right, #ea580c, #be123c);
}

body.contact-residential .submit-btn:hover {
  background: linear-gradient(to right, #c2410c, #9f1239);
}

body.contact-residential .emergency-note {
  background: #451a03;
  border-left-color: #fb923c;
  color: #fed7aa;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 992px) {
  .contact-hero-grid,
  .contact-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero-text h1 {
    font-size: 2.5rem;
  }

  .contact-hero {
    padding: 80px 0 60px;
  }

  .contact-main {
    padding: 80px 0;
  }

  .contact-grid {
    gap: 60px;
  }
}