/*
Theme Name: Clip Your English Custom
Theme URI: https://dodigitals.org
Author: Do Digitals (Ram Kishor)
Author URI: https://dodigitals.org
Description: A lightweight, custom-coded blogging theme for Clip Your English.
Version: 1.0
*/

:root {
    --primary-color: #67472f;
    --accent-color: #d38523;
}
* {
    margin:0;
    padding:0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 { color: var(--primary-color); }
a { color: var(--accent-color); text-decoration: none; }

/* --- Desktop View (Default) --- */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 25px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu li a {
    color: #67472f; /* Primary Brown */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

.nav-menu li a:hover {
    color: #d38523; /* Accent Orange */
}

/* Hide Mobile Toggle on Desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #67472f;
    margin: 4px 0;
    transition: 0.4s;
}

/* --- Tablet & Mobile View (Under 992px) --- */
@media screen and (max-width: 992px) {
    .menu-toggle {
        display: flex;
        z-index: 1000;
    }

    .main-navigation {
        position: fixed;
        right: -100%; /* Hidden off-screen */
        top: 0;
        width: 70%;
        height: 100vh;
        background: #ffffff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.5s;
        padding-top: 80px;
        z-index: 999;
    }

    .main-navigation.active {
        right: 0; /* Slide in */
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
    }

    .nav-menu li {
        margin: 20px 0;
    }

    .nav-menu li a {
        font-size: 20px;
    }

    /* Animation for Hamburger to X */
    .menu-toggle.active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
}
.custom-logo {
    width: 100%;
    height: auto;
    max-width: 130px;
}
/* --- Top Bar Styling --- */
.top-bar {
    background: #67472f; /* Your Primary Brown */
    color: #ffffff;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Main Header Styling --- */
.main-header {
    background: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo-fallback {
    font-size: 26px;
    font-weight: 900;
    color: #67472f;
    text-transform: uppercase;
    text-decoration: none;
}

.logo-fallback span {
    color: #d38523; /* Your Accent Orange */
}

/* Menu Styling (Centered) */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu li a {
    color: #333;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d38523;
    transition: 0.3s;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* CTA Button */
.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-button {
    background: #d38523;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

.cta-button:hover {
    background: #67472f;
}

/* Responsive Fixes */
@media screen and (max-width: 992px) {
    .nav-menu, .header-cta { display: none; } /* Hide on mobile to use sidebar */
    .top-bar { display: none; }
    .menu-toggle { display: flex; }
}
/* --- 1. Bootstrap-style Container System --- */
.custom-container {
    width: 100%;
    max-width: 1366px; /* Fixed width for large screens */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- 2. Top Bar Styles --- */
.top-bar {
    background: #67472f;
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- 3. Main Header Styles --- */
.main-header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Fallback */
.logo-text { font-size: 24px; font-weight: 800; color: #67472f; text-decoration: none; text-transform: uppercase; }
.logo-text span { color: #d38523; }

/* Desktop Menu Visibility */
.nav-menu { display: flex; list-style: none; gap: 25px; margin: 0; padding: 0; }
.nav-menu li a { color: #333; font-weight: 700; font-size: 14px; text-transform: uppercase; text-decoration: none; transition: 0.3s; }
.nav-menu li a:hover { color: #d38523; }

/* Action Button */
.btn-subscribe { background: #d38523; color: #fff !important; padding: 10px 22px; border-radius: 4px; font-weight: bold; text-decoration: none; font-size: 14px; }

/* --- 4. Mobile Logic --- */
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.mobile-menu-toggle span { width: 25px; height: 3px; background: #67472f; border-radius: 2px; }

.mobile-sidebar { position: fixed; right: -300px; top: 0; width: 280px; height: 100vh; background: #fff; z-index: 1001; transition: 0.4s; padding: 30px; box-shadow: -5px 0 20px rgba(0,0,0,0.1); }
.mobile-sidebar.open { right: 0; }
.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; display: none; }
.sidebar-overlay.show { display: block; }

.mobile-nav-menu { list-style: none; padding: 0; }
.mobile-nav-menu li { margin-bottom: 20px; }
.mobile-nav-menu li a { font-size: 18px; font-weight: 700; color: #67472f; text-decoration: none; }

/* --- 5. Media Queries --- */

/* Tablet View (992px and below) */
@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .btn-subscribe { display: none; } /* Optional: Hide button on smaller tablets */
}

/* Mobile View (768px and below) */
@media (max-width: 768px) {
    .top-bar { display: none; } /* Hide top bar on mobile for space */
    .logo-text { font-size: 20px; }
    .custom-container { padding: 0 15px; }
}