/* ============================================================
   WEBMAIL LOGIN DIRECTORY — SHARED STYLESHEET
   Primary: #0d9488 | Navy: #1e293b | Amber: #f59e0b
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; background: #f8fafc; color: #1e293b; line-height: 1.6; }
h1,h2,h3,h4,h5 { font-family: 'Poppins', sans-serif; line-height: 1.25; }
a { color: #0d9488; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
ul { list-style: none; }

/* ---- Variables ---- */
:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #ccfbf1;
  --navy: #1e293b;
  --navy-light: #334155;
  --amber: #f59e0b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-600: #475569;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
}

/* ---- Header / Navbar ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px; height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.nav-logo .logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 15px;
  color: var(--white); line-height: 1.2;
}
.nav-logo .logo-text span { color: #5eead4; }
.nav-search-wrap { flex: 1; max-width: 360px; position: relative; }
.nav-search-wrap input {
  width: 100%; padding: 8px 16px 8px 38px;
  border-radius: 20px; border: none;
  background: rgba(255,255,255,0.1); color: var(--white);
  font-size: 14px; outline: none;
  transition: background 0.2s;
}
.nav-search-wrap input::placeholder { color: rgba(255,255,255,0.5); }
.nav-search-wrap input:focus { background: rgba(255,255,255,0.18); }
.nav-search-wrap .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.5); font-size: 14px;
  pointer-events: none;
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500;
  padding: 6px 14px; border-radius: 6px;
  text-decoration: none; transition: all 0.2s;
}
.nav-links a:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.nav-links a.active { background: var(--teal); color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: #fff; font-size: 22px; }

/* ---- Breadcrumb ---- */
.breadcrumb-bar {
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 10px 24px;
}
.breadcrumb-bar nav { max-width: 1200px; margin: 0 auto; }
.breadcrumb-bar ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb-bar ol li { font-size: 13px; color: var(--gray-500); }
.breadcrumb-bar ol li a { color: var(--teal); }
.breadcrumb-bar ol li::after { content: '›'; margin-left: 6px; }
.breadcrumb-bar ol li:last-child::after { display: none; }
.breadcrumb-bar ol li:last-child { color: var(--navy); font-weight: 500; }

/* ---- Buttons ---- */
.btn-login {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal); color: var(--white);
  padding: 16px 36px; border-radius: 8px;
  font-size: 18px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(13,148,136,0.35);
  transition: all 0.2s; letter-spacing: 0.01em;
}
.btn-login:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,148,136,0.45); text-decoration: none; color: #fff; }
.btn-login:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--teal);
  padding: 10px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  border: 2px solid var(--teal); cursor: pointer;
  text-decoration: none; transition: all 0.2s;
}
.btn-secondary:hover { background: var(--teal); color: #fff; text-decoration: none; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 6px; font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--gray-200); color: var(--navy-light);
  background: var(--white); cursor: pointer; text-decoration: none;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }

/* ---- Trust Badges ---- */
.trust-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  padding: 12px 16px;
}
.trust-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); color: #fff;
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
}
.trust-badge.dark {
  background: var(--teal-light); color: var(--teal-dark);
}

/* ---- Section Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-title { font-size: 2rem; color: var(--navy); margin-bottom: 8px; }
.section-subtitle { color: var(--gray-500); font-size: 1.05rem; margin-bottom: 40px; }
.section-header { text-align: center; margin-bottom: 48px; }

/* ---- ISP Cards (Directory) ---- */
.isp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.isp-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all 0.2s; border: 1.5px solid transparent;
  text-decoration: none;
}
.isp-card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.isp-card .card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px;
  color: var(--white); flex-shrink: 0;
}
.isp-card .card-name { font-weight: 700; font-size: 1rem; color: var(--navy); }
.isp-card .card-desc { font-size: 13px; color: var(--gray-500); flex: 1; }
.isp-card .card-link {
  font-size: 13px; font-weight: 600; color: var(--teal);
  display: flex; align-items: center; gap: 4px;
}
.isp-card .card-flag { font-size: 16px; }

/* ---- Featured ISP Cards ---- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.featured-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: all 0.2s; border: 1.5px solid var(--gray-200);
}
.featured-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.featured-card .card-icon-lg {
  width: 60px; height: 60px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 22px;
  color: var(--white);
}
.featured-card .card-name-lg { font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.featured-card .card-desc-sm { font-size: 13px; color: var(--gray-500); }
.featured-card .btn-access {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal); color: #fff;
  padding: 10px 20px; border-radius: 7px; font-size: 14px; font-weight: 700;
  border: none; cursor: pointer; text-decoration: none; margin-top: 4px;
  width: fit-content; transition: all 0.2s;
}
.featured-card .btn-access:hover { background: var(--teal-dark); text-decoration: none; color: #fff; }

/* ---- Hero sections ---- */
.hero-home {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #134e4a 100%);
  color: var(--white); padding: 80px 0 60px;
  text-align: center;
}
.hero-home h1 {
  font-size: 3rem; font-weight: 800; margin-bottom: 16px;
  line-height: 1.15;
}
.hero-home h1 span { color: #5eead4; }
.hero-home .sub { font-size: 1.2rem; color: rgba(255,255,255,0.75); margin-bottom: 36px; }

.hero-isp {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 40%, #1e293b 100%);
  color: var(--white); padding: 60px 0 50px;
}
.hero-isp h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 10px; }
.hero-isp .sub { font-size: 1.05rem; color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.hero-isp .direct-url-wrap {
  background: rgba(0,0,0,0.25); border-radius: 10px;
  padding: 16px 22px; margin-top: 20px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
}
.hero-isp .url-label { font-size: 12px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.05em; }
.hero-isp .url-text { font-family: monospace; font-size: 15px; color: #5eead4; font-weight: 600; }
.btn-copy {
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 6px;
  padding: 6px 14px; font-size: 13px; cursor: pointer; font-weight: 600;
  transition: all 0.2s; position: relative;
}
.btn-copy:hover { background: rgba(255,255,255,0.25); }
.btn-copy .copied-tip {
  position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 4px 10px; border-radius: 4px;
  font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.btn-copy.copied .copied-tip { opacity: 1; }
.verified-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1); color: #fff;
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
  margin-top: 12px;
}

/* ---- Search Box ---- */
.search-wrap {
  position: relative; max-width: 640px; margin: 0 auto 24px;
}
.search-wrap input {
  width: 100%; padding: 18px 22px 18px 52px;
  border-radius: 12px; border: none;
  font-size: 16px; color: var(--navy);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  outline: none; transition: box-shadow 0.2s;
}
.search-wrap input:focus { box-shadow: 0 4px 30px rgba(13,148,136,0.35); }
.search-wrap .si {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--gray-300); pointer-events: none;
}

/* ---- How It Works ---- */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.step-card {
  text-align: center; background: var(--white);
  border-radius: var(--radius-lg); padding: 36px 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step-icon { font-size: 30px; margin-bottom: 10px; }
.step-title { font-weight: 700; font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--gray-500); }

/* ---- FAQ Accordion ---- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; border: 1.5px solid var(--gray-200); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 18px 22px; text-align: left; font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 0.98rem; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: background 0.15s;
}
.faq-question:hover { background: var(--gray-50); }
.faq-question.active { color: var(--teal); }
.faq-icon { font-size: 18px; font-weight: 400; transition: transform 0.25s; flex-shrink: 0; }
.faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 22px;
}
.faq-answer.open { max-height: 400px; padding: 0 22px 18px; }
.faq-answer p { font-size: 14px; color: var(--gray-600); line-height: 1.7; }

/* ---- Login Steps ---- */
.steps-list { max-width: 700px; display: flex; flex-direction: column; gap: 16px; margin: 0 auto; }
.step-row {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm); border-left: 4px solid var(--teal);
}
.step-row .snum {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-row .stxt strong { font-size: 15px; color: var(--navy); display: block; margin-bottom: 4px; }
.step-row .stxt p { font-size: 13px; color: var(--gray-500); margin: 0; }

/* ---- Alternative Access Cards ---- */
.alt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.alt-card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--gray-200);
  display: flex; flex-direction: column; gap: 10px;
}
.alt-card .alt-icon { font-size: 28px; }
.alt-card h4 { font-size: 0.95rem; color: var(--navy); font-weight: 700; }
.alt-card p { font-size: 13px; color: var(--gray-500); flex: 1; }
.alt-card a { font-size: 13px; font-weight: 600; color: var(--teal); }

/* ---- IMAP Settings Table ---- */
.server-table { width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.server-table th { background: var(--teal); color: #fff; padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 600; }
.server-table td { padding: 12px 16px; font-size: 13px; color: var(--navy-light); border-bottom: 1px solid var(--gray-100); background: var(--white); }
.server-table tr:last-child td { border-bottom: none; }
.server-table td code { background: var(--gray-100); padding: 2px 8px; border-radius: 4px; font-size: 12px; font-family: monospace; }

/* ---- Error Accordion ---- */
.error-list { display: flex; flex-direction: column; gap: 10px; }
.error-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; border: 1.5px solid var(--gray-200); }
.error-q {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 16px 20px; text-align: left; font-weight: 600; font-size: 14px;
  color: var(--navy); display: flex; justify-content: space-between; align-items: center;
  gap: 12px; transition: background 0.15s;
}
.error-q:hover { background: var(--gray-50); }
.error-q.active { color: var(--teal); }
.error-icon { font-size: 16px; transition: transform 0.25s; }
.error-q.active .error-icon { transform: rotate(45deg); }
.error-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}
.error-a.open { max-height: 300px; padding: 0 20px 16px; }
.error-a p { font-size: 13px; color: var(--gray-600); }

/* ---- Related Cards ---- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  background: var(--white); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--gray-200);
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  transition: all 0.2s;
}
.related-card:hover { border-color: var(--teal); transform: translateX(3px); text-decoration: none; }
.related-card .rc-icon {
  width: 42px; height: 42px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff; flex-shrink: 0;
}
.related-card .rc-name { font-weight: 600; font-size: 14px; color: var(--navy); }
.related-card .rc-link { font-size: 12px; color: var(--teal); }
.related-card .rc-arrow { margin-left: auto; color: var(--gray-300); font-size: 18px; }

/* ---- Password Reset Section ---- */
.pw-steps { max-width: 680px; display: flex; flex-direction: column; gap: 14px; }
.pw-step {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.pw-step .pnum {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--amber); color: #fff;
  font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pw-step p { font-size: 14px; color: var(--navy-light); }

/* ---- About Section ---- */
.about-box {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--gray-200);
  max-width: 900px; margin: 0 auto;
}
.about-box p { color: var(--gray-600); margin-bottom: 14px; line-height: 1.75; }
.about-box p:last-child { margin-bottom: 0; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand .logo-text-f {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px;
  color: #fff; display: block; margin-bottom: 10px;
}
.footer-brand p { font-size: 13px; line-height: 1.6; max-width: 260px; }
.footer-col h4 {
  font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 700;
  color: #fff; margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 13px; text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: #5eead4; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-bottom .disclaimer { max-width: 600px; }

/* ---- Section backgrounds ---- */
.bg-white { background: var(--white); }
.bg-gray { background: var(--gray-100); }
.bg-teal-light { background: var(--teal-light); }
.bg-navy { background: var(--navy); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-amber { color: var(--amber); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }

/* ---- No results ---- */
.no-results { text-align: center; padding: 60px 20px; color: var(--gray-500); display: none; }
.no-results .nr-icon { font-size: 48px; margin-bottom: 12px; }
.no-results h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--navy); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .isp-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-home h1 { font-size: 2rem; }
  .hero-isp h1 { font-size: 1.8rem; }
  .section { padding: 44px 0; }
  .section-title { font-size: 1.6rem; }
  .isp-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .alt-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-search-wrap { max-width: 200px; }
  .btn-login { padding: 14px 24px; font-size: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-home { padding: 56px 0 44px; }
  .trust-badge { font-size: 12px; padding: 5px 10px; }
  .direct-url-wrap { flex-direction: column; align-items: flex-start; }
}
