/* ==========================================================================
   CSS Variables & Global Styles
   ========================================================================== */
:root {
    /* Accent Colors */
    --color-steel-blue: #4682B4;
    --color-steel-blue-dark: #3a6b94;
    --color-warm-grey: #A09E96;
    --color-warm-grey-light: #e5e4e1;
    --color-off-white: #FAF9F6;
    
    /* Base Colors */
    --color-text-main: #2C303A;
    --color-text-light: #6C757D;
    --color-white: #FFFFFF;
    --color-dark-bg: #1A1C23;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Layout & UI */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-off-white);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-main);
}

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

ul {
    list-style: none;
}

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

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    color: var(--color-steel-blue);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-warm-grey);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-steel-blue);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-steel-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--color-white);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-box {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-steel-blue);
    letter-spacing: 1px;
}

.logo-image {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-main);
    position: relative;
}

.nav-links a:hover {
    color: var(--color-steel-blue);
}

/* contact button in nav */
.btn-contact {
    background-color: var(--color-warm-grey);
    color: var(--color-white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
}

.btn-contact:hover {
    background-color: var(--color-steel-blue);
    color: var(--color-white);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: -20px;
    background-color: var(--color-white);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    overflow: hidden;
    z-index: 1;
}

.dropdown-content a {
    color: var(--color-text-main);
    padding: 12px 16px;
    display: block;
    font-weight: 400;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-warm-grey-light);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--color-off-white);
    color: var(--color-steel-blue);
    padding-left: 20px;
}

.nav-arrow {
    font-size: 0.8rem;
    margin-left: 4px;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-main);
}

/* ==========================================================================
   Home Page Components
   ========================================================================== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(26, 28, 35, 0.6), rgba(26, 28, 35, 0.6)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    color: var(--color-white);
    padding-top: 60px; /* Offset for navbar */
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    color: var(--color-white);
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: slideUp 0.8s ease forwards;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideUp 1s ease forwards;
}

/* Description Section */
.description-section {
    background-color: var(--color-white);
    text-align: center;
}

.description-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--color-text-light);
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--color-warm-grey-light);
    text-align: center;
    padding: 4rem 0;
}

/* Latest Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.article-category {
    background-color: var(--color-steel-blue);
    color: var(--color-white);
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    display: inline-block;
    border-radius: 0 0 8px 0;
    font-weight: 500;
}

.article-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.article-meta {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.article-link {
    margin-top: auto;
    color: var(--color-steel-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-link i {
    transition: transform 0.3s ease;
}

.article-card:hover .article-link i {
    transform: translateX(5px);
}

/* ==========================================================================
   Team Page
   ========================================================================== */
.team-hierarchy {
    margin-bottom: 4rem;
}

.team-hierarchy h3 {
    font-size: 2rem;
    color: var(--color-steel-blue);
    margin-bottom: 2rem;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

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

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

.team-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--color-warm-grey-light);
}

.team-name {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.team-role {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-social {
    color: var(--color-steel-blue);
    font-size: 1.2rem;
}

.team-social:hover {
    color: var(--color-steel-blue-dark);
}

/* Analyst List */
.analyst-list {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.analyst-category {
    margin-bottom: 1.5rem;
}

.analyst-category h4 {
    color: var(--color-warm-grey);
    border-bottom: 1px solid var(--color-warm-grey-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.analyst-ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.analyst-ul li a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-main);
    background: var(--color-off-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.analyst-ul li a:hover {
    background: var(--color-steel-blue);
    color: var(--color-white);
}

/* ==========================================================================
   About Us
   ========================================================================== */
.about-segment {
    margin-bottom: 4rem;
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.about-segment h3 {
    color: var(--color-steel-blue);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

/* ==========================================================================
   Join Us
   ========================================================================== */
.join-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.join-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--color-steel-blue);
}

.join-card h3 {
    margin-bottom: 1rem;
}

.join-card ul {
    margin-left: 1.5rem;
    list-style-type: disc;
    margin-bottom: 1.5rem;
}

.join-card ul li {
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   PDF Viewer Modal
   ========================================================================== */
.pdf-viewer-container {
    height: 80vh;
    width: 100%;
    margin-top: 2rem;
    background: var(--color-dark-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.pdf-object {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #2b2b2b; /* Mute dark color */
    color: var(--color-warm-grey-light);
    padding: 4rem 0 0 0;
}

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

.footer-logo h2 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.footer-links h4, .footer-social h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: var(--color-warm-grey);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-steel-blue);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--color-white);
}

.social-icons a:hover {
    background-color: var(--color-steel-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #1a1a1a;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
    color: var(--color-warm-grey);
}

/* ==========================================================================
   Utilities & Animations
   ========================================================================== */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
