/*
Theme Name: Teer Media
Theme URI: https://teermedia.com
Author: You
Version: 1.0
Description: Responsive theme for Teer sites with Formula Calculator
*/

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    background: #D81D46;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.site-logo {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 3px;
}
.main-nav ul li {
    position: relative;
}
.main-nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 20px 18px;
    display: block;
    font-weight: 600;
    font-size: 15px;
}
.main-nav ul li a:hover {
    background: #1e40af;
}
.main-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    flex-direction: column;
}
.main-nav ul li:hover > ul {
    display: flex;
}
.main-nav ul ul li a {
    color: #1e293b;
    padding: 12px 18px;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.main-nav ul ul li a:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.menu-toggle span {
    width:25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
}

.site-content {
    flex: 1;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    width: 100%;
}
.content-box {
    background: #fff;
    padding: 90px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.site-footer {
    background: #1e293b;
    color: #cbd5e1;
    margin-top: auto;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}
.footer-widget h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
}
.footer-widget ul {
    list-style: none;
}
.footer-widget ul li {
    margin-bottom: 10px;
}
.footer-widget a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
}
.footer-widget a:hover {
    color: #60a5fa;
}
.footer-bottom {
    border-top: 1px solid #334155;
    padding: 20px;
    text-align: center;
    font-size: 13px;
}

@media only screen and (max-width: 868px) {
    .menu-toggle {
        display: flex;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #1d4ed8;
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav ul li {
        border-bottom: 1px solid #1e40af;
    }
    .main-nav ul ul {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: #1e40af;
    }
    .main-nav ul ul li a {
        color: #dbeafe;
        padding-left: 40px;
    }
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    .site-content {
        margin: 20px auto;
        padding: 0 15px;
    }
    .content-box {
        padding: 20px;
    }
}

@media only screen and (max-width: 480px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}