/* Import a modern font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: #333;
    background: linear-gradient(to bottom right, #f8f9fa, #e9ecef);
    padding-top: 80px; /* Add padding to prevent content from hiding under fixed header */
    font-size: 16px;
}

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

/* --- Header & Navigation --- */
header {
    background: linear-gradient(135deg, #2c3e50, #4a6fa5);
    color: #fff;
    padding: 15px 0;
    text-align: center;
    position: fixed; /* Make header sticky */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.6rem; /* Adjust as needed */
    font-weight: 700;
    letter-spacing: 0.5px;
     word-break: break-word; /* Ensure logo wraps if needed on small screens */
    display: inline-block;
    padding: 5px 0;
    transition: color 0.8s ease;
}
.logo a:hover {
    text-decoration: underline;
    color: #ff2f2f;
}

.logo .dot-com {
    color: #bdc3c7;
    font-weight: 300;
    font-size: 0.9em; /* Make .com slightly smaller */
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 400;
    padding: 8px 5px;
    position: relative;
    transition: color 0.3s ease;
}

/* Underline effect for active/hover */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f0ad4e; /* Accent color */
    transition: width 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #fff; /* Make active/hover slightly brighter */
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%; /* Full underline on hover/active */
}


#menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}


/* --- Hero Section (Homepage) --- */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(74, 111, 165, 0.7));
    color: #fff;
    text-align: center;
    padding: 6rem 1rem;
    margin-top: -30px; /* Adjust if needed based on header height */
    margin-bottom: 30px;
    border-radius: 0 0 12px 12px; /* Rounded bottom corners */
    animation: fadeIn 1s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.hero .highlight {
     color: #f0ad4e; /* Accent color */
}

.hero .subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: #f0ad4e; /* Accent color */
    color: #2c3e50; /* Dark text on light button */
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #ec971f; /* Darker accent */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.buy-now-button{
    background: #04a504;
    color: white;
    padding: 13px 25px;
    border-radius: 50px;
    font-weight: 600;
}
.buy-now-button:hover {
    background: #026802;
    color: white;
    padding: 13px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
}
/* --- Sales Banner --- */
.sales-banner {
    background-color: #ffffff;
    border: none;
    border-left: 5px solid #f0ad4e;
    color: #333;
    padding: 20px 25px;
    margin: 40px auto;
    text-align: center;
    border-radius: 8px;
    max-width: 900px; /* Wider banner */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sales-banner p {
    margin-bottom: 15px;
    font-size: 1.1rem; /* Slightly larger */
}

.inquire-button {
    display: inline-block;
    background: linear-gradient(135deg, #d9534f, #c9302c); /* Warm red gradient */
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
     box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.inquire-button:hover {
    background: linear-gradient(135deg, #c9302c, #a9201c); /* Darker gradient */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* --- Main Content Styling --- */
.page-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-top: 40px;
    margin-bottom: 40px;
}

/* For pages other than homepage */
.page-content h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 700;
    border-bottom: 3px solid #f0ad4e;
    padding-bottom: 15px;
    display: inline-block;
}
.page-content .highlight {
    color: #d9534f; /* Highlight color for words */
    font-weight: 700;
}


section {
    margin-bottom: 40px;
    padding-bottom: 30px;
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem; /* Slightly smaller for sections */
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee; /* Lighter underline */
}

h3 {
    color: #4a6fa5;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: #4a6fa5;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.separator {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 40px 0;
}

ul, ol {
    margin-left: 25px;
    margin-bottom: 1.2rem;
}

li {
    margin-bottom: 10px;
}
.highlight {
    color: #d9534f; /* Highlight color for words */
    font-weight: 700;
}

/* Specific styling for elements from previous examples */
.pronunciation-details code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f8f9fa;
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid #eee;
    font-size: 0.95rem;
}
.pronunciation-details button {
    padding: 10px 18px; margin-top: 10px; cursor: pointer; background-color: #5cb85c; color: white; border: none; border-radius: 5px; font-weight: 600; transition: background-color 0.3s ease, transform 0.2s ease;
}
.pronunciation-details button:hover:not(:disabled) { background-color: #4cae4c; transform: translateY(-2px); }
.pronunciation-details button:disabled { background-color: #bdc3c7; cursor: not-allowed; opacity: 0.7; }

.word-breakdown { list-style-type: decimal; }
.word-breakdown li { margin-bottom: 5px; }
.word-breakdown strong { color: #d9534f; }

.comparison-table { width: 100%; border-collapse: collapse; margin-top: 20px; margin-bottom: 30px; }
.comparison-table th, .comparison-table td { border: 1px solid #ddd; padding: 12px; text-align: left; }
.comparison-table th { background-color: #4a6fa5; color: white; font-weight: 600; }
.comparison-table tr:nth-child(even) { background-color: #f9f9f9; }
.comparison-table strong { color: #2c3e50; }

.blog-post-summary { margin-bottom: 30px; }
.blog-post-summary h3 a { color: #2c3e50; text-decoration: none; font-size: 1.6rem; }
.blog-post-summary h3 a:hover { color: #4a6fa5; }
.post-meta { font-size: 0.9rem; color: #777; margin-bottom: 10px; }
.read-more { font-weight: 600; color: #d9534f; }

.image-placeholder,
.infographic-placeholder,
.ad-placeholder {
    background-color: #f8f9fa; border: 1px dashed #ced4da; text-align: center; padding: 50px 20px; margin: 30px 0; color: #adb5bd; font-style: italic; border-radius: 8px;
}


/* --- Footer --- */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px 20px;
    background-color: #e9ecef; /* Light grey footer background */
    color: #495057; /* Darker grey text */
    font-size: 0.95rem;
}
footer .container { padding: 0; }
footer a { color: #4a6fa5; font-weight: 600; }
footer a:hover { color: #2c3e50; }


/* --- Responsive Design --- */
@media (max-width: 768px) {
    body { padding-top: 70px; } /* Adjust for header */
    header .container { flex-direction: column; }
    .logo { margin-bottom: 10px; }
    nav ul { display: none; /* Hide nav links by default */ flex-direction: column; width: 100%; background-color: #34495e; /* Slightly different background for dropdown */ position: absolute; top: 100%; /* Position below header */ left: 0; padding: 10px 0; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
    nav ul.active { display: flex; /* Show when active */ } /* JS will toggle this class */
    nav ul li { margin: 10px 0; text-align: center; }
    nav ul li a { padding: 10px; display: block; width: 90%; margin: 0 auto; }
    nav ul li a::after { display: none; /* No underline on mobile menu */ }
    #menu-toggle { display: block; /* Show hamburger menu */ position: absolute; top: 15px; right: 20px; }

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

    .page-content h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    body { font-size: 15px; }
    .logo a { font-size: 1rem; }
    .hero { padding: 4rem 1rem; }
    .hero h1 { font-size: 1.5rem; }
    .hero .subtitle { font-size: 1.1rem; }
    .page-content { padding: 25px; }
    .page-content h1 { font-size: 1.4rem; }
     .comparison-table th, .comparison-table td { padding: 8px; font-size: 0.9rem; }
}

/* === Mobile Optimization Additions (2025-10-26) === */

/* Make all images and embeds fluid by default */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Ensure long words/URLs wrap cleanly */
.page-content, p, li, blockquote {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Improve tap target sizes for nav links on mobile */
@media (max-width: 768px) {
  nav ul li a {
    min-height: 44px;
    line-height: 44px;
  }
}

/* Responsive tables: enable horizontal scroll on small screens */
@media (max-width: 900px) {
  .comparison-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}

/* Slightly reduce padding on small screens for better fit */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  section, .page-content { padding-left: 14px; padding-right: 14px; }
}

/* Prevent header overlap when using fixed header */
:target {
  scroll-margin-top: 80px;
}
/* === End Mobile Additions === */


/* Stacked table on small screens */
@media (max-width: 600px) {
  .comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; }
  .comparison-table thead { display: none; }
  .comparison-table tr { display: block; margin: 0 0 12px; border: 1px solid var(--border, #e5e7eb); border-radius: 10px; overflow: hidden; background: var(--card, #fff); }
  .comparison-table td { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 12px; }
  .comparison-table td::before { content: attr(data-label); font-weight: 600; flex: 0 0 46%; opacity: 0.85; }
}





/* --- Contact form --- */
.contact-page .contact-simple {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 20px;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.contact-form .required {
    color: #e74c3c;
    margin-left: 3px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
}

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

/* Honeypot field – hide from real users */
.hp-field {
    display: none;
}

/* --- Alerts --- */
.alert {
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.alert-success {
    background-color: #e8f8f0;
    border: 1px solid #2ecc71;
    color: #1e7e34;
}

.alert-error {
    background-color: #fdecea;
    border: 1px solid #e74c3c;
    color: #a71d2a;
}

/* Visit counter (if not already added) */
.visit-counter {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #6c757d;
}

.visit-counter strong {
    color: #2c3e50;
    font-weight: 600;
}

