/*
 Theme Name: FlickTab Child
 Theme URI: https://flicktab.com/
 Description: Professional child theme for GeneratePress.
 Author: Anoop Vaish
 Template: generatepress
 Version: 1.0.0
*/

.main-navigation {
	box-shadow: rgb(0 0 0 / .16) 0 1px 4px;
}
/* =================================================
   1. GLOBAL RESET & VARIABLES
================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary: #6b38ff;
    --primary-light: #ab76f6;
    --text-dark: #333;
    --card-bg: rgba(255,255,255,0.95);
    --radius: 16px;
    --shadow: 0 8px 24px rgba(0,0,0,0.06);
    --shadow-soft: 0 4px 14px rgba(0,0,0,0.05);
}

html {
    overflow-y: scroll;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: linear-gradient(to right, #F7F7F7, #ede6f6);
    color: var(--text-dark);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* =================================================
   2. GLOBAL CONTAINERS
================================================= */

.container,
.faq-container,
.work-container,
.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Desktop */
}

/* Tablet */
@media (max-width: 1024px) {
    .container,
    .faq-container,
    .work-container,
    .section-container {
        padding: 0 15px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container,
    .faq-container,
    .work-container,
    .section-container {
        padding: 0 10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container,
    .faq-container,
    .work-container,
    .section-container {
        padding: 0 8px;
    }
}

/* =================================================
   3. HEADER & NAVIGATION
================================================= */

.site-header {
    background: linear-gradient(to right, #F7F7F7, #AB76F6);
    z-index: 999;
}

.inside-header {
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.site-header .header-image {
    height: 60px;
    width: auto;
}

/* Navigation */
.main-navigation {
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.main-navigation .main-nav ul li a {
    position: relative;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #5100c4;
}

/* Hover underline */
.main-navigation .main-nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.main-navigation .main-nav ul li a:hover {
    color: var(--primary);
}

.main-navigation .main-nav ul li a:hover::after {
    width: 100%;
}

/* =================================================
   4. CARD LAYOUT (CONTENT & SIDEBAR)
================================================= */

.inside-article,
.inside-page,
.comments-area,
.page-header,
.widget {
    padding: 28px 24px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

/* Desktop Layout */
@media (min-width: 1025px) {

    body.right-sidebar .content-area {
        width: 69%;
    }

    body.right-sidebar .widget-area {
        width: 31%;
        padding-left: 24px;
    }

    body.no-sidebar .content-area {
        width: 100%;
    }
}

/* Tablet & Mobile Layout */
@media (max-width: 1024px) {

    .content-area,
    .widget-area {
        width: 100%;
        padding: 20px;
    }
}

/* =================================================
   5. PAGE TITLES
================================================= */

.page-header {
    text-align: center;
}

.page-header h1,
.entry-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
}

/* =================================================
   6. TYPOGRAPHY STYLING
================================================= */

.entry-content {
    font-size: 16px;
    line-height: 1.8;
}

.entry-content p {
    font-size: 17px;
}

.entry-content h2 {
    font-size: 26px;
    color: var(--primary);
}

.entry-content h3 { font-size: 22px; }
.entry-content h4 { font-size: 20px; }
.entry-content h5 { font-size: 18px; }

/* =================================================
   7. BUTTON STYLES
================================================= */

.td_btn,
.wpcf7-submit,
.wp-block-search__button {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.td_btn:hover,
.wpcf7-submit:hover,
.wp-block-search__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107,56,255,0.35);
}

/* =================================================
   8. SEARCH BAR
================================================= */

.wp-block-search__inside-wrapper {
    display: flex;
    gap: 8px;
    width: 100%;
    padding: 6px;
    background: #9e6df552;
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
}

.wp-block-search__input {
    flex: 1;
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    outline: none;
    background: transparent;
    min-width: 0;
}

/* =================================================
   9. CUSTOM LIST STYLE
================================================= */

.entry-content ul {
    list-style: none;
    padding-left: 20px;
}

.entry-content ul li {
    position: relative;
    padding-left: 20px;
}

.entry-content ul li::before {
    content: "";
    width: 8px;
    height: 8px;
    background: linear-gradient(95deg, #e6ddf3, #6a00ff);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 10px;
}

/* =================================================
   10. CONTACT FORM 7
================================================= */

.wpcf7 form {
    max-width: 520px;
    margin: 0 auto;
    background: #ab70ff14;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.wpcf7 input,
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e6e1f5;
}

/* =================================================
   11. MOBILE OPTIMIZATION
================================================= */

@media (max-width: 768px) {

    .site-header {
        background: #fff;
        border-bottom: 1px solid #eee;
    }

    .page-header h1,
    .entry-title {
        font-size: 26px;
    }

    .main-navigation .main-nav ul li a::after {
        display: none;
    }

    .wp-block-search__inside-wrapper {
        padding: 5px;
    }

    .wp-block-search__button {
        padding: 9px 14px;
        font-size: 13px;
    }
}
/* Sidebar Sticky */
@media (min-width: 1024px) {

    .inside-right-sidebar {
        position: sticky;
        top: 100px;  /* header ke niche spacing */
    }

}

/* Related Styling */
.flicktab-related-posts {
    margin-top: 30px;
}

.related-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin: 15px 0;
    padding: 8px 18px;
    background: #a663fc;
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
    position: relative;
}

.related-thumb {
    display: block;
    margin-bottom: 12px;
}

.related-thumb img {
    width: 60%;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.3s ease;
    display: block;
    margin: 0 auto; 
}

.related-thumb img:hover {
    transform: scale(1.05);
}