:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius: 4px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.template2 {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
}

/* NAVBAR - Dynamic Colors */
.t2-navbar {
    background: var(--t2-header-bg);
    color: var(--t2-header-text);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border-bottom: 3px solid var(--secondary-color);
}

.t2-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.t2-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.t2-nav-links {
    display: flex;
    gap: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.t2-nav-links a {
    color: var(--t2-header-text);
    text-decoration: none;
    opacity: 0.8;
    transition: 0.3s;
}

.t2-nav-links a:hover,
.t2-nav-links a.active {
    opacity: 1;
    color: var(--secondary-color);
}

/* SEARCH BOX */
.t2-search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 10px;
}

.t2-search-form input {
    background: none;
    border: none;
    color: white;
    font-size: 0.85rem;
    outline: none;
}

.t2-search-form button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* GRID LAYOUT */
.t2-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1.1fr;
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

/* CARD STYLE */
.t2-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: fit-content;
    border-top: 2px solid transparent;
    transition: 0.3s;
}

.t2-card:hover {
    border-top-color: var(--secondary-color);
}

.t2-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.t2-card-header::before {
    content: '';
    width: 4px;
    height: 15px;
    background: var(--secondary-color);
    display: inline-block;
}

/* NEWS ITEMS */
.t2-hero-news {
    padding: 25px;
    border-bottom: 1px solid var(--border-light);
}

.t2-hero-news .date {
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.t2-hero-news h2 {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 10px 0;
    letter-spacing: -1px;
    color: var(--primary-color);
}

.t2-list-item {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.t2-list-item:hover {
    background: #f8fafc;
}

.t2-list-item img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.t2-list-item h4 {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.t2-list-item:hover h4 {
    color: var(--secondary-color);
}

/* FEATURED CATEGORY TAG */
.t2-tag {
    background: var(--secondary-color);
    color: white;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 900;
    border-radius: 20px;
    text-transform: uppercase;
}

/* MAIN FEATURED CARD */
.t2-main-featured {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* STATS */
.t2-stat-row {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.t2-stat-name {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.t2-stat-val {
    font-weight: 900;
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* FOOTER */
.t2-footer {
    background: var(--t2-header-bg);
    color: var(--t2-header-text);
    padding: 80px 0 40px;
    border-top: 5px solid var(--secondary-color);
}

.t2-footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.t2-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.t2-footer-col h4 {
    font-weight: 900;
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.t2-footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 3px;
    background: var(--secondary-color);
}

.t2-footer-links {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-left: 0;
}

.t2-footer-links a {
    color: var(--t2-header-text);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.t2-footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

.t2-newsletter-wrap {
    margin-bottom: 30px;
}

.t2-newsletter {
    display: flex;
    margin-top: 20px;
}

.t2-newsletter input {
    padding: 12px 15px;
    border: none;
    flex: 1;
    font-size: 0.85rem;
    border-radius: 4px 0 0 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.t2-newsletter button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 25px;
    font-weight: 800;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: 0.3s;
}

.t2-newsletter button:hover {
    filter: brightness(1.2);
}

.t2-social-icons {
    display: flex;
    gap: 15px;
}

.t2-social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--t2-header-text);
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
}

.t2-social-icons a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.t2-footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

@media (max-width: 1200px) {
    .t2-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .t2-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .t2-footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}