/*
Theme Name: Teer Media
Theme URI: https://teermedia.com
Author: Teer Media
Author URI: https://teermedia.com
Description: Official theme for Teer Media - Teer calculation and results
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: teermedia
*/

:root {
    --primary: #D32F2F;
    --submenu: #1976D2;
    --text: #333;
    --bg: #fff;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 15px; width: 100%; }
.flex { display: flex; flex-wrap: wrap; }
.between { justify-content: space-between; }
.align-center { align-items: center; }

/* Header */
.site-header { background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: relative; z-index: 100; }
.header-top { padding: 15px 0; }
.site-branding img { max-height: 70px; width: auto; }

/* Menu */
.main-navigation { background: var(--primary); position: relative; }
.main-navigation ul { list-style: none; display: flex; flex-wrap: wrap; }
.main-navigation ul li { position: relative; }
.main-navigation ul li a { 
    display: block; padding: 15px 20px; color: #fff; font-weight: 600; 
    transition: all 0.3s;
}
.main-navigation ul li:hover > a { background: rgba(0,0,0,0.2); }
.main-navigation ul ul { 
    display: none; position: absolute; background: var(--submenu); 
    min-width: 200px; z-index: 999; top: 100%; left: 0;
}
.main-navigation ul li:hover > ul { display: block; }
.main-navigation ul ul li a { padding: 12px 15px; }
.main-navigation ul ul ul { left: 100%; top: 0; }

.menu-toggle { display: none; background: var(--primary); color: #fff; border: none; padding: 10px 15px; cursor: pointer; }
.close-menu { 
    display: none; position: absolute; top: 15px; right: 15px; 
    background: #fff; color: var(--primary); border: none; 
    width: 35px; height: 35px; border-radius: 50%; font-size: 20px; cursor: pointer;
}

/* Above/Below Menu Widget */
.above-menu-area { background: #f8f9fa; padding: 8px 0; text-align: center; font-size: 14px; }
.below-menu-area { background: #fff; padding: 10px 0; border-bottom: 1px solid #eee; }

/* Content */
.site-content { padding: 30px 0; min-height: 60vh; }
.content-area { width: 70%; padding-right: 30px; }
.widget-area { width: 30%; }
.entry-title { margin-bottom: 20px; font-size: 28px; color: var(--primary); }
.entry-content p { margin-bottom: 15px; text-align: justify; }

/* Gallery */
.gallery-slider { position: relative; overflow: hidden; margin: 20px 0; }
.gallery-track { display: flex; transition: transform 0.4s; }
.gallery-slide { min-width: 100%; }
.gallery-nav { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; transform: translateY(-50%); }
.gallery-nav button { 
    background: rgba(0,0,0,0.5); color: #fff; border: none; 
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 18px;
}

/* Infrastructure Grid */
.infra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 20px 0; }
.infra-item { border: 1px solid #ddd; border-radius: 8px; overflow: hidden; text-align: center; }
.infra-item img { width: 100%; height: 200px; object-fit: cover; }
.infra-item span { display: block; padding: 12px; font-weight: 600; background: #f8f9fa; }

/* From The Desk */
.desk-section { display: flex; gap: 20px; margin: 30px 0; align-items: flex-start; }
.desk-img { flex: 0 0 300px; }
.desk-img img { border-radius: 8px; }
.desk-content h3 { color: var(--primary); margin-bottom: 15px; font-size: 24px; }

/* Footer */
.site-footer { background: #222; color: #fff; padding: 20px 0 0; margin-top: 40px; }
.footer-top { padding: 20px 0; text-align: center; }
.footer-top a { color: #FFEB3B; }
.footer-bottom { background: #111; padding: 15px 0; text-align: center; font-size: 14px; }
.footer-bottom p { margin: 5px 0; }

/* Social */
.social-links { margin: 15px 0; }
.social-links a { display: inline-block; margin: 0 8px; color: #fff; font-size: 18px; }

/* Responsive */
@media (max-width: 991px) {
    .content-area, .widget-area { width: 100%; padding-right: 0; }
    .desk-section { flex-direction: column; }
    .desk-img { flex: 1; text-align: center; }
}

@media (max-width: 768px) {
    .menu-toggle, .close-menu { display: block; }
    .main-navigation { display: none; }
    .main-navigation.active { 
        display: block; position: fixed; top: 0; left: 0; right: 0; bottom: 0; 
        background: var(--primary); padding-top: 60px; overflow-y: auto;
    }
    .main-navigation ul { flex-direction: column; }
    .main-navigation ul li a { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .main-navigation ul ul { position: static; display: none; background: rgba(0,0,0,0.2); }
    .main-navigation ul li.active > ul { display: block; }
    .site-branding img { max-height: 50px; }
    .entry-title { font-size: 24px; }
}