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

:root {
    --primary: #4f46e5; /* Premium Indigo */
    --primary-dark: #4338ca;
    --bg-color: #f1f5f9; /* Slightly softer background */
    --text-main: #0f172a;
    --text-muted: #475569;
    --white: #ffffff;
    --border: #cbd5e1;
    --max-width: 1280px; /* Wider container for 3 columns */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.logo img {
    height: 80px; /* Matches header height */
    width: auto;  /* Allows landscape elongation */
    max-width: 350px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 0.5rem; /* Reduced gap since we added padding */
    align-items: center;
}

.nav-links a, .dropbtn {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600; /* Bolder for modern look */
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-links a:hover, .dropdown:hover .dropbtn {
    background-color: #e0e7ff; /* Soft premium indigo background */
    color: var(--primary-dark);
}

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

/* Invisible bridge to prevent hover loss */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px; 
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    z-index: 101;
    border-radius: 12px;
    overflow: hidden;
    top: 100%;
    left: 0;
    margin-top: 5px;
    border: 1px solid rgba(0,0,0,0.03);
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0; /* Reset border radius for dropdown items */
}

.dropdown-content a:hover {
    background-color: var(--bg-color);
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.login-btn {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
}

.login-btn:hover {
    background: var(--primary-dark);
}

/* Main Layout */
.container {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* Custom Scrollbar for Nav */
.nav-links::-webkit-scrollbar {
    display: none;
}
.nav-links {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Gallery Grid on Index */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

/* Responsive styles are at the bottom of the file */

/* Slider / Headline */
.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.slide-content h2 {
    font-family: var(--font-serif);
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.slide-content a {
    color: white;
    text-decoration: none;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 1rem;
    box-sizing: border-box;
}

.slider-controls button {
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.3s;
}

.slider-controls button:hover {
    background: rgba(255,255,255,0.6);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: var(--white);
    border-radius: 16px; /* Softer radius */
    overflow: hidden;
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.05); /* Premium soft shadow */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

.news-img {
    height: 220px; /* Taller image for better 3-col aspect ratio */
    background: #e2e8f0;
    background-size: cover;
    background-position: center;
}

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

.news-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.15rem; /* Reduced from 1.25rem for comfort */
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

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

.read-more {
    margin-top: auto;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Sidebar / Ad Widget */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.sponsor-widget {
    padding: 0;
    overflow: hidden;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.ad-space {
    background: #f1f5f9;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 8px;
    border: 2px dashed #cbd5e1;
}

/* Article Detail */
.article-header {
    margin-bottom: 2rem;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

.article-content p {
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    margin-top: 4rem;
}

/* Media Queries (Overrides) */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .slider-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    header {
        height: auto;
        padding: 15px 0;
    }
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 1rem;
    }
    .logo img {
        height: 60px;
    }
    .nav-links {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 5px;
    }
    .nav-links a, .dropbtn {
        white-space: nowrap;
        padding: 0.5rem;
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr !important;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .slider-container {
        height: 200px;
    }
    .slide-content h2 {
        font-size: 1.15rem;
    }
    .slide-content {
        padding: 1rem;
    }
    .news-title {
        font-size: 1.05rem;
    }
}
