/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #2c3e50;      /* Deep Blue */
    --secondary-color: #d4af37;    /* Dark Gold */
    --accent-color: #34495e;       /* Darker Blue */
    --text-color: #333;
    --text-light: #666;
    --background-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --max-width: 1200px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    /* text-decoration: underline; */
}

#main-content{
    margin-top: 10px;
}

/* ===== LAYOUT UTILITIES ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.main-content {
    flex: 1;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background-color: var(--primary-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h1 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===== BUTTONS ===== */
.cta-button,
.cta-button-large {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
}

.cta-button-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.cta-button:hover,
.cta-button-large:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== SECTIONS ===== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(44, 62, 80, 0.05));
    border-top: 3px solid var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.welcome-text h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.welcome-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.welcome-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.welcome-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--secondary-color);
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.timeline-preview {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--secondary-color);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 40px;
    width: 2px;
    height: 60px;
    background: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--secondary-color);
    margin-right: 1.5rem;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 4rem 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-link {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.feature-link:hover {
    color: var(--primary-color);
}

/* ===== LATEST ARTICLES SECTION ===== */
.latest-articles {
    padding: 4rem 0;
    background: var(--white);
}

.articles-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.preview-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 2px solid var(--secondary-color);
    transition: var(--transition);
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.preview-image {
    height: 200px;
    overflow: hidden;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.preview-card:hover .preview-image img {
    transform: scale(1.05);
}

.preview-content {
    padding: 2rem;
}

.preview-category {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.preview-content h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.preview-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.preview-content h3 a:hover {
    color: var(--secondary-color);
}

.preview-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.preview-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.preview-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.preview-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.preview-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.preview-mini-image {
    width: 80px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

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

.preview-mini-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.3;
}

.preview-mini-content h4 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.preview-mini-content h4 a:hover {
    color: var(--secondary-color);
}

.preview-mini-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.articles-cta {
    text-align: center;
}

/* ===== HISTORICAL PERIODS SECTION ===== */
.historical-periods {
    padding: 4rem 0;
    background-color: var(--background-color);
}

.periods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.period-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.period-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.period-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.period-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.period-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.period-card p {
    margin-bottom: 1rem;
}

.period-years {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    margin: 1rem 0;
    padding: 0.5rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--border-radius);
}

.period-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 1rem;
}

.period-highlights span {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: left;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.verified-badge {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
}

.references {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid var(--accent-color);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.7;
}

/* ===== PAGE SPECIFIC STYLES ===== */
.page-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.page-header h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0;
}

.content-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.sources-list {
    list-style: none;
    padding: 0;
}

.sources-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.sources-list li:last-child {
    border-bottom: none;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.approach-item {
    padding: 1.5rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

.approach-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-method {
    text-align: center;
    padding: 2rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-method h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-link {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
}

.contact-link:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.submit-btn {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-family: inherit;
}

.submit-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.form-note {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    font-size: 0.9rem;
}

.faq-container {
    margin-top: 1.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.faq-item p {
    margin: 0;
    line-height: 1.6;
}

.response-info {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.response-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .header{
        padding: 0;
        height: 70px;
    }
    
    .navbar{
        padding: 0;
    }

    .nav-container{
        height: 70px;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        height: calc(100vh - 70px);
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .welcome-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .welcome-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .articles-preview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid,
    .periods-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .nav-logo h1 {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-card,
    .period-card {
        padding: 1.5rem;
    }
}
