/* Global */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5; /* Very light grey */
    color: #333;
    line-height: 1.6;
}

.container, .header-container, .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #800000; /* Dark Maroon */
    color: #fff;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    height: 60px;
    margin-right: 10px;
}

.logo-title h1 {
    font-size: 32px; /* Large font */
    margin: 0;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

nav li {
    margin: 0 10px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

/* Main */
main {
    padding: 20px;
}

#hero {
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.0;
}

#hero h2 {
    font-size: 28px;
    line-height: 1.0;
}

#hero p {
    font-size: 18px;
    margin: 10px 0 20px;
}

.ad-unit {
    width: 970px;
    height: 250px;
    background-color: #ccc;
    margin: 20px auto;
    text-align: center;
    line-height: 250px;
}

#seo-tools, #fast-ranking-tools {
    margin-bottom: 40px;
}

#seo-tools h2, #fast-ranking-tools h2 {
    text-align: center;
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.tool-card {
    background-color: #00008b; /* Dark Blue */
    color: #fff;
    padding: 20px;
    text-align: center;
    font-family: Calibri, sans-serif;
    font-size: 16px;
    border-radius: 8px;
}

.tool-card a {
    color: #fff;
    text-decoration: none;
}

#testimonials {
    background-color: #e0e0e0; /* Light Grey */
    padding: 40px 20px;
    overflow: hidden;
}

#testimonials h2 {
    text-align: center;
    margin-bottom: 20px;
}

.testimonials-wrapper {
    overflow: hidden;
}

.testimonials-container {
    display: flex;
    animation: scroll 50s linear infinite reverse; /* Added reverse for left to right scrolling */
    white-space: nowrap;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial {
    min-width: 300px;
    margin-right: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: inline-block;
    text-align: center;
    overflow: hidden; /* Prevent overflow from card */
}

.testimonial p {
    margin: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Clamp to 3 lines */
    -webkit-box-orient: vertical;
    word-wrap: break-word; /* Break long words */
}

/* Footer */
footer {
    background-color: #800000; /* Dark Maroon */
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.copyright {
    color: #000000; /* Dark Black */
    font-size: 16pt;
    font-weight: bold;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
    .tools-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    .tools-grid { grid-template-columns: repeat(3, 1fr); }
    nav ul { flex-wrap: wrap; }
    nav li { margin: 10px; }
}

@media (max-width: 768px) {
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .ad-unit { width: 100%; height: auto; }
    header { height: auto; padding: 20px 0; }
    .logo-title { margin-bottom: 10px; }
}

@media (max-width: 576px) {
    .tools-grid { grid-template-columns: 1fr; }
}