/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}


/* Header */
header {
    background: #2c3e50;
    color: #fff;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
}

/* Hero */
.hero {
    background: #ecf0f1;
    padding: 5rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero {
    background: url('images/hero-bg.png') no-repeat center center;
    background-size: cover;
    padding: 150px 20px;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    position: relative;
}

/* Optional dark overlay just for hero */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: -1;
}

/* Ensure content stays above overlay */
.hero h1, .hero p, .hero .cta-button {
    position: relative;
}

.cta-button {
    background: #3498db;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #2980b9;
}

/* Services */
.featured-services, .services {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.service {
    width: 30%;
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service:hover {
    transform: translateY(-10px);
}

.service i {
    color: #3498db;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
    padding: 3rem 2rem;
    background: #f9f9f9;
    text-align: center;
}

.testimonial-slider {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial {
    width: 45%;
    margin: 1rem;
    padding: 1rem;
}

.testimonial {
    background: url('images/testimonial-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 150px 20px;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    position: relative;
}

/* Optional dark overlay just for hero */
.testimonial::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: -1;
}

/* About Snippet */
.about-snippet {
    padding: 3rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.read-more {
    color: #3498db;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    padding: 3rem 2rem;
    background: #ecf0f1;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input, .contact-form textarea {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
}

.contact-form button {
    background: #3498db;
    color: #fff;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #2980b9;
}

.contact-details {
    margin-top: 2rem;
    text-align: center;
}

.contact-details p {
    margin: 0.5rem 0;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
}

.newsletter {
    margin-bottom: 1.5rem;
}

.newsletter h3 {
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    margin-bottom: 0;
    border-radius: 5px 0 0 5px;
}

.newsletter-form button {
    border-radius: 0 5px 5px 0;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.footer-links li {
    margin: 0 1rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover {
    color: #3498db;
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: none;
    background: #3498db;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#back-to-top:hover {
    background: #2980b9;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.featured-services, .testimonials, .about-snippet, .contact-form, .about, .services, .blog-posts {
    animation: fadeIn 1s ease-in;
}

/* About Page */
.about {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.team-member {
    width: 30%;
    text-align: center;
    margin-bottom: 2rem;
}

.team-member i {
    color: #3498db;
    margin-bottom: 1rem;
}

/* Blog Page */
.blog-posts {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.posts-grid {
    display: flex;
    flex-direction: column;
}

article {
    margin-bottom: 2rem;
}

article h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

article p {
    font-size: 1rem;
}

/* Login and Register Forms */
.login-form, .register-form {
    padding: 3rem 2rem;
    background: #ecf0f1;
    text-align: center;
}

.login-form form, .register-form form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
}

.login-form input, .register-form input {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.login-form button, .register-form button {
    background: #3498db;
    color: #fff;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-form button:hover, .register-form button:hover {
    background: #2980b9;
}

/* ===== DASHBOARD GLOBAL ===== */
.dashboard-body {
    background: #f4f6f9;
    font-family: "Segoe UI", sans-serif;
}

/* Header */
.dashboard-header {
    background: #0a1f44;
    color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-header img {
    height: 35px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

/* Layout */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: #12264a;
    color: #fff;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    padding: 15px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar li:hover,
.sidebar li.active {
    background: #1c3b75;
}

/* Content */
.dashboard-content {
    flex: 1;
    padding: 30px;
}

/* Page Header */
.page-header h1 {
    margin-bottom: 5px;
}

.page-header span {
    color: #1c3b75;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-card i {
    font-size: 28px;
    color: #1c3b75;
    margin-bottom: 10px;
}

/* Panels */
.dashboard-panels {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.panel {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.activity-list {
    padding-left: 18px;
}

.activity-list li {
    margin-bottom: 10px;
}

/* Buttons */
.primary-btn {
    background: #1c3b75;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
}

/* Footer */
.dashboard-footer {
    text-align: center;
    padding: 15px;
    background: #0a1f44;
    color: #fff;
}

/* Dashboard */
.dashboard {
    padding: 3rem 2rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #2c3e50;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .services-grid, .team-grid {
        flex-direction: column;
    }

    .service, .team-member {
        width: 100%;
    }

    .testimonial {
        width: 100%;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 5px;
        margin-bottom: 1rem;
    }

    .newsletter-form button {
        border-radius: 5px;
    }
}