/*
Theme Name: NickLearning
Theme URI: https://nicklearning.com
Author: NickLearning
Description: Custom theme for CFA courses and financial analysis
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: nicklearning
*/

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

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark-blue: #1A2B3C;
    --primary-white: #FFFFFF;
    --accent-gold: #FFB347;
    --light-blue: #E8F1F8;
    --slate-gray: #708090;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary-dark-blue);
}

/* Header Styles */
.site-header {
    background-color: var(--primary-dark-blue);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-branding {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
}

.site-title a {
    color: var(--accent-gold);
    text-decoration: none;
}

.site-description {
    color: var(--slate-gray);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    margin: 0;
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu > li {
    position: relative;
    margin: 0 1rem;
}

.main-menu a {
    color: var(--primary-white);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: block;
}

/* Dropdown Styles */
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--light-blue);
    min-width: 200px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
    list-style: none;
    padding: 0.5rem 0;
}

.main-menu li:hover > .sub-menu {
    display: block;
}

.sub-menu a {
    color: var(--primary-dark-blue);
    padding: 0.5rem 1rem;
}

.sub-menu a:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark-blue);
}

/* Auth Navigation */
.auth-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-button {
    background-color: var(--accent-gold);
    color: var(--primary-dark-blue);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.auth-button:hover {
    background-color: #ffc367;
}

.notification-icon {
    position: relative;
    color: var(--primary-white);
    font-size: 1.2rem;
    cursor: pointer;
    display: none; /* Hidden by default, shown when logged in */
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-gold);
    color: var(--primary-dark-blue);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* Footer Styles */
.site-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 0;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-column p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-link {
    color: #cccccc;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #ffffff;
}

.newsletter-signup h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #333333;
    background-color: #2a2a2a;
    color: #ffffff;
    border-radius: 4px;
}

.newsletter-form input::placeholder {
    color: #999999;
}

.submit-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #0056b3;
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #cccccc;
}

.security-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cccccc;
    font-size: 0.9rem;
}

.security-badge i {
    color: #28a745;
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #333333;
    text-align: center;
}

.disclaimer {
    color: #999999;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-style: italic;
}

.copyright {
    color: #666666;
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .submit-button {
        width: 100%;
    }
}

/* Content Styles */
.content-area {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.entry-title {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-dark-blue);
    margin-bottom: 1rem;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
}

.entry-meta {
    color: var(--slate-gray);
    margin-bottom: 1rem;
}

.entry-meta a {
    color: var(--primary-dark-blue);
    text-decoration: none;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-content {
    margin-bottom: 2rem;
}

.read-more {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--primary-dark-blue);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #ffc367;
}

.entry-footer {
    color: var(--slate-gray);
    border-top: 1px solid var(--light-blue);
    padding-top: 1rem;
}

.entry-footer a {
    color: var(--primary-dark-blue);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .main-navigation {
        margin: 1rem 0;
    }
    
    .main-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .main-menu > li {
        margin: 0.5rem 0;
    }
    
    .sub-menu {
        position: static;
        box-shadow: none;
        width: 100%;
    }

    .footer-navigation {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-menu-section {
        margin-bottom: 2rem;
    }
}

/* Authentication Styles */
.auth-container {
    max-width: 500px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: var(--primary-white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-title {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-dark-blue);
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--primary-dark-blue);
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 0.75rem;
    border: 1px solid var(--slate-gray);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(255, 179, 71, 0.2);
}

.form-hint {
    font-size: 0.875rem;
    color: var(--slate-gray);
}

.remember-me {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.auth-submit {
    background-color: var(--accent-gold);
    color: var(--primary-dark-blue);
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-submit:hover {
    background-color: #ffc367;
}

.auth-messages {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    display: none;
}

.auth-messages.error {
    display: block;
    background-color: #ffe5e5;
    color: #d63031;
    border: 1px solid #ff9999;
}

.auth-messages.success {
    display: block;
    background-color: #e5ffe5;
    color: #27ae60;
    border: 1px solid #99ff99;
}

.auth-links {
    margin-top: 2rem;
    text-align: center;
    color: var(--slate-gray);
}

.auth-links a {
    color: var(--primary-dark-blue);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    color: var(--accent-gold);
}

.auth-separator {
    margin: 0 0.5rem;
    color: var(--slate-gray);
}

/* Homepage Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #2A3B4C 100%);
    color: var(--primary-white);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/pattern.png');
    opacity: 0.1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--slate-gray);
}

.hero-cta {
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--primary-dark-blue);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #ffc367;
    transform: translateY(-2px);
}

/* CFA Courses Section */
.cfa-courses-section {
    padding: 6rem 2rem;
    background-color: var(--primary-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-dark-blue);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--slate-gray);
    font-size: 1.1rem;
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    background: var(--primary-white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.course-card.slide-in {
    animation: slideIn 0.6s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-header {
    padding: 2rem;
    color: var(--primary-white);
    text-align: center;
}

.course-header.level-1 {
    background: linear-gradient(135deg, #1A2B3C 0%, #2A3B4C 100%);
}

.course-header.level-2 {
    background: linear-gradient(135deg, #2A3B4C 0%, #3A4B5C 100%);
}

.course-header.level-3 {
    background: linear-gradient(135deg, #3A4B5C 0%, #4A5B6C 100%);
}

.course-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.course-tag {
    display: inline-block;
    padding: 0.25rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
}

.course-content {
    padding: 2rem;
}

.course-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.course-features li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--slate-gray);
}

.course-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.course-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-status {
    color: var(--slate-gray);
    font-style: italic;
}

.enroll-button {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--primary-dark-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.enroll-button:hover {
    background-color: #ffc367;
}

/* Latest News Section */
.latest-news-section {
    padding: 6rem 2rem;
    background-color: var(--light-blue);
}

.news-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--slate-gray);
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.filter-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.filter-button:hover,
.filter-button.active {
    color: var(--primary-dark-blue);
}

.filter-button:hover::after,
.filter-button.active::after {
    transform: scaleX(1);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: var(--primary-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.news-category {
    color: var(--accent-gold);
    font-weight: 500;
}

.news-date {
    color: var(--slate-gray);
    font-size: 0.875rem;
}

.news-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.news-title a {
    color: var(--primary-dark-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--accent-gold);
}

.news-excerpt {
    color: var(--slate-gray);
    font-size: 0.875rem;
    line-height: 1.6;
}

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .courses-container {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-button {
        width: 100%;
        text-align: center;
    }
}

/* Coming Soon Page Styles */
.coming-soon-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #ffffff;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.coming-soon-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 40px;
}

.progress-container {
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #007bff;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.progress-text {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Features Preview Section */
.features-preview {
    padding: 80px 20px;
    background-color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.feature-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 20px;
}

.feature-preview {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail {
    width: 100%;
    height: 100px;
    background-color: #e9ecef;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    font-size: 2rem;
}

.question-preview {
    width: 100%;
}

.question-text {
    font-weight: 600;
    margin-bottom: 15px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    padding: 8px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.exam-preview {
    width: 100%;
    text-align: center;
}

.exam-info {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #666666;
}

.feature-list i {
    color: #28a745;
}

/* What to Expect Section */
.what-to-expect {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.expectations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.expectation-item {
    text-align: center;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.expectation-item:hover {
    transform: translateY(-5px);
}

.expectation-item i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 20px;
}

.expectation-item h3 {
    margin-bottom: 15px;
    color: #333333;
}

.expectation-item p {
    color: #666666;
    font-size: 0.9rem;
}

/* Stay Updated Section */
.stay-updated {
    padding: 80px 20px;
    background-color: #ffffff;
}

.update-container {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: center;
}

.notify-form {
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    gap: 10px;
}

.form-group input {
    flex: 1;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
}

.submit-button {
    padding: 12px 30px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #0056b3;
}

.social-updates {
    margin-top: 30px;
}

.social-updates p {
    color: #666666;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    color: #007bff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #0056b3;
}

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .expectations-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .submit-button {
        width: 100%;
    }
}

/* Paid Research Contact Page Styles */
.research-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #ffffff;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.research-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.1;
}

.research-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.research-hero .hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.research-hero .hero-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 20px;
}

.research-hero .hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cccccc;
}

/* Services Section */
.research-services {
    padding: 80px 20px;
    background-color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.service-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 20px;
}

.service-card h3 {
    color: #333333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #666666;
}

.service-features i {
    color: #28a745;
}

/* Contact Section */
.research-contact {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.contact-container {
    max-width: 800px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info {
    text-align: center;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.email-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.email-display i {
    color: #007bff;
}

.copy-button {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.copy-button:hover {
    color: #0056b3;
}

.contact-note {
    color: #666666;
    font-size: 0.9rem;
}

.contact-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #0056b3;
}

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

@media (max-width: 768px) {
    .research-hero .hero-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Category Page Styles */
.category-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 80px 0;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/pattern.png') repeat;
    opacity: 0.1;
}

.category-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.category-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.category-meta {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.post-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.category-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.category-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.posts-grid {
    display: flex;
    flex-direction: column;
}

.posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #007bff;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.post-content {
    padding: 20px;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #007bff;
}

.post-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more svg {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

.read-more:hover svg {
    transform: translateX(5px);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 5px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background: #007bff;
    color: #fff;
}

.pagination .page-numbers:hover:not(.current) {
    background: #f8f9fa;
    color: #007bff;
}

/* Sidebar Styles */
.category-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #007bff;
}

.related-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-categories li {
    margin-bottom: 10px;
}

.related-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.related-categories a:hover {
    color: #007bff;
}

.post-count {
    color: #666;
    font-size: 0.9rem;
}

.popular-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-posts li {
    margin-bottom: 15px;
}

.popular-posts a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-posts a:hover {
    color: #007bff;
}

.popular-posts img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
}

.post-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.post-info .post-date {
    font-size: 0.9rem;
    color: #666;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background: #0056b3;
}

/* Responsive Design */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        order: -1;
    }

    .posts-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: 60px 0;
    }

    .category-title {
        font-size: 2.5rem;
    }

    .posts-container {
        grid-template-columns: 1fr;
    }

    .pagination .page-numbers {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .category-hero {
        padding: 40px 0;
    }

    .category-title {
        font-size: 2rem;
    }

    .category-meta {
        font-size: 1rem;
    }

    .sidebar-widget {
        padding: 20px;
    }
}

/* Single Post Styles */
.single-post-hero {
    position: relative;
    background: #1a1a1a;
    color: #fff;
    padding: 80px 0;
    margin-bottom: 60px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-meta-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.post-category a {
    background: #007bff;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.post-category a:hover {
    background: #0056b3;
}

.post-date, .reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.3;
    color: #fff;
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.author-details {
    text-align: left;
}

.author-name {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-bio {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Main Content */
.post-main {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Table of Contents */
.table-of-contents {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.table-of-contents h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

#toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#toc-list li {
    margin-bottom: 8px;
}

#toc-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

#toc-list a:hover {
    color: #007bff;
}

/* Post Content */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 2em 0 1em;
    color: #333;
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 1.5em 0 1em;
    color: #333;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2em 0;
}

.post-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin: 2em 0;
    font-style: italic;
    color: #666;
}

/* Post Tags */
.post-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-tags i {
    color: #666;
}

.tag-link {
    background: #f8f9fa;
    color: #666;
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #007bff;
    color: #fff;
}

/* Share Buttons */
.share-buttons {
    margin: 40px 0;
}

.share-buttons h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.share-links {
    display: flex;
    gap: 15px;
}

.share-links a, .share-print {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.share-twitter {
    background: #1DA1F2;
}

.share-linkedin {
    background: #0077B5;
}

.share-facebook {
    background: #4267B2;
}

.share-print {
    background: #666;
    border: none;
    cursor: pointer;
}

.share-links a:hover, .share-print:hover {
    opacity: 0.9;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.author-avatar-large img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.author-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.author-info p {
    color: #666;
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 15px;
}

.author-social a {
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.author-social a:hover {
    color: #007bff;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-previous, .nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.nav-previous a, .nav-next a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-previous a:hover, .nav-next a:hover {
    color: #007bff;
}

/* Comments Section */
.comments-section {
    margin-top: 60px;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #333;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-meta {
    font-size: 0.9rem;
    color: #666;
}

.comment-content {
    color: #333;
    line-height: 1.6;
}

/* Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #007bff;
}

.related-posts-list, .popular-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts-list li, .popular-posts-list li {
    margin-bottom: 15px;
}

.related-posts-list a, .popular-posts-list a {
    display: flex;
    gap: 15px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-posts-list a:hover, .popular-posts-list a:hover {
    color: #007bff;
}

.related-posts-list img, .popular-posts-list img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
}

.post-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.post-info .post-date {
    font-size: 0.9rem;
    color: #666;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: #007bff;
    width: 0;
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        order: -1;
    }

    .post-main {
        padding: 30px;
    }

    .post-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .single-post-hero {
        padding: 60px 0;
    }

    .post-meta-top {
        flex-direction: column;
        gap: 10px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-info {
        text-align: center;
    }

    .author-social {
        justify-content: center;
    }

    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }

    .nav-next {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .single-post-hero {
        padding: 40px 0;
    }

    .post-title {
        font-size: 1.8rem;
    }

    .post-main {
        padding: 20px;
    }

    .share-links {
        flex-wrap: wrap;
    }

    .share-links a, .share-print {
        flex: 1;
        justify-content: center;
    }
} 