/*
Theme Name: Yojanapath Pro
Theme URI: https://yojanapath.in
Author: Saurabh Tripathi
Author URI: https://yojanapath.in
Description: Professional Government Scheme & News WordPress Theme.
Version: 1.0
License: GPL-2.0+
Text Domain: yojanapath-pro
*/

/* ================= RESET ================= */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    color: #222;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ================= CONTAINER ================= */

.yp-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ================= HEADER ================= */

.yp-header {
    background: #ff7a00;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.yp-logo a {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

/* NAVIGATION */

.yp-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.yp-nav ul li a {
    color: #fff;
    font-weight: 500;
    transition: 0.3s;
}

.yp-nav ul li a:hover {
    opacity: 0.8;
}

/* MOBILE TOGGLE */

.yp-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.yp-menu-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

/* BREAKING BAR */

.yp-breaking-bar {
    background: #111;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.yp-breaking-label {
    font-weight: bold;
    margin-right: 10px;
    color: #ff7a00;
}

/* ================= HERO ================= */

.yp-hero {
    text-align: center;
    padding: 60px 0;
}

.yp-hero h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.yp-hero p {
    margin-bottom: 25px;
    color: #555;
}

.yp-search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.yp-search-form input {
    padding: 12px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.yp-search-form button {
    padding: 12px 18px;
    background: #ff7a00;
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

/* ================= SLIDER ================= */

.yp-slider-section {
    padding: 40px 0;
}

.yp-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.yp-slide {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.yp-slide-content {
    padding: 15px;
}

.yp-slide-content h3 {
    font-size: 18px;
}

/* ================= GRID ================= */

.yp-latest {
    padding: 40px 0;
}

.yp-latest h2 {
    margin-bottom: 25px;
}

.yp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.yp-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.yp-card:hover {
    transform: translateY(-5px);
}

.yp-card-body {
    padding: 15px;
}

.yp-card-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.yp-date {
    font-size: 13px;
    color: #777;
}

/* ================= LAYOUT ================= */

.yp-layout {
    display: flex;
    gap: 30px;
    padding: 40px 0;
}

.yp-content {
    flex: 3;
}

.yp-sidebar {
    flex: 1;
}

.yp-widget {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.yp-widget-title {
    margin-bottom: 10px;
    font-size: 16px;
}

/* ================= POST ================= */

.yp-post-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.yp-meta {
    font-size: 14px;
    margin-bottom: 20px;
    color: #777;
}

.yp-featured-image {
    margin-bottom: 20px;
}

.yp-post-content {
    font-size: 16px;
}

/* ================= FOOTER ================= */

.yp-footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .yp-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: #111;
        padding-top: 80px;
        transition: 0.3s;
    }

    .yp-nav ul {
        flex-direction: column;
        padding-left: 20px;
    }

    .yp-nav.active {
        right: 0;
    }

    .yp-menu-toggle {
        display: flex;
    }

    .yp-layout {
        flex-direction: column;
    }

    .yp-search-form input {
        width: 100%;
    }

    /* ===============================
YOJANAPATH PRO – SLIDER ADDON
Do Not Remove Old CSS
=============================== */

.yp-slider-section {
    padding: 50px 0;
}

.yp-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.yp-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: opacity 0.5s ease-in-out;
}

.yp-slide-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.yp-slide-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
    padding: 18px 22px;
    border-radius: 8px;
}

.yp-slide-content h3 {
    color: #fff;
    font-size: 20px;
    margin: 0;
}
}