:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --text-color: #2b2d42;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
}

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

body { 
    font-family: 'Roboto', Arial, sans-serif; 
    background: #fff; 
    color: var(--text-color);
    line-height: 1.6;
}

/* Enhanced Header */
.header { 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: var(--secondary-color); 
    color: #fff; 
    padding: 12px 20px; 
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo { 
    width: 80px; 
    height: 80px; 
    background: #fff; 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-right: 20px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.logo img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain;
    padding: 4px;
}

.title-text {
    display: flex;
    align-items: center;
    margin-right: 20px;
    max-width: 200px;
    height: 80px;
    overflow: hidden;
}

.title-text img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 60px;
}

.nav {
    display: flex;
    margin-left: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-link {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: block;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--primary-color);
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    margin-left: 20px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Enhanced News Ticker */
.news-ticker {
    background: #1a1a1a;
    padding: 12px 0;
    margin-bottom: 0;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-color);
}

.ticker-container {
    display: flex;
    align-items: center;
    background: var(--primary-color);
    padding: 8px 16px;
    border-radius: 0;
    margin: 0;
}

.ticker-label {
    color: white;
    font-weight: bold;
    margin-right: 16px;
    white-space: nowrap;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.2);
    padding: 4px 12px;
    border-radius: 4px;
}

.ticker-content {
    color: white;
    font-size: 1rem;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-content a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    transition: color 0.3s;
    font-weight: 500;
}

.ticker-content a:hover {
    color: #ffeb3b;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Updated News Grid Layout */
.news-grid {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    min-height: 100vh;
}

/* Updated Card Styles */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    width: 100%;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.news-card.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.card-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.news-card.featured .card-image {
    height: 300px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.category {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.4;
}

.news-card.featured .card-title {
    font-size: 1.5rem;
}

.card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: auto;
}

.date, .read-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #fff;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.categories-columns {
    display: flex;
    gap: 20px;
}

.category-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-column ul li {
    margin-bottom: 8px;
}

.category-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.category-column ul li a:hover {
    color: var(--primary-color);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        position: relative;
    }
    
    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .logo {
        order: 1;
    }
    
    .title-text {
        order: 2;
        max-width: 150px;
        height: 60px;
    }
    
    .title-text img {
        max-height: 50px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
        margin-left: auto;
    }
    
    .nav {
        order: 4;
        width: 100%;
        margin-top: 15px;
        margin-left: 0;
        justify-content: center;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 10px;
        display: none;
        align-items: center;
        width: 100%;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
    
    .news-card.featured {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .ticker-content {
        font-size: 0.9rem;
    }
    
    .ticker-content a {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 60px;
        height: 60px;
        margin-right: 12px;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .news-card.featured .card-title {
        font-size: 1.3rem;
    }
}

/* Category Pages Specific Styles */
.category-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.category-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* About Page Styles */
.about-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.about-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.about-content h2 {
    color: var(--primary-color);
    margin: 30px 0 16px 0;
    font-size: 1.5rem;
}

.about-content p {
    margin-bottom: 16px;
    color: var(--text-color);
}

/* Gallery Styles */
.gallery-container {
    margin: 30px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
    background: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.gallery-item.hidden {
    display: none;
}

/* Gallery Controls */
.gallery-controls {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.gallery-toggle-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.gallery-toggle-btn:hover {
    background: #d32f3a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.gallery-toggle-btn:active {
    transform: translateY(0);
}

.gallery-toggle-btn.expanded .btn-icon {
    transform: rotate(180deg);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.gallery-info {
    margin-top: 15px;
    color: var(--text-color);
    font-size: 0.95rem;
    opacity: 0.8;
}

.gallery-count {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: inline-block;
}

/* Gallery Animation for expanding */
.gallery-item.expanding {
    animation: fadeInUp 0.5s ease forwards;
}

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

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10000;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.1rem;
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Gallery Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .gallery-overlay i {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .gallery-controls {
        padding: 15px;
        margin-top: 20px;
    }
    
    .gallery-toggle-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .gallery-count {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .lightbox-nav {
        padding: 0 20px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 12px;
        font-size: 1.2rem;
    }
    
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .gallery-overlay i {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gallery-toggle-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .gallery-controls {
        padding: 12px;
    }
    
    .lightbox img {
        max-width: 95%;
        max-height: 80%;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 