/* SG Theme — clean redesign for Shivang Satya Gupta website */

/* ========== BASE ========== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #FAF9F6;
    color: #1C1917;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: #B45309; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========== HEADER ========== */
.sg-theme-topbar {
    background: #1C1917;
    color: #FAF9F6;
    font-size: 0.78rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}
.sg-theme-topbar a { color: #FAF9F6; transition: color 0.2s; }
.sg-theme-topbar a:hover { color: #D97706; }

.sg-theme-masthead {
    background: #FFFFFF;
    border-bottom: 1px solid #E7E5E0;
    padding: 2rem 1rem;
    text-align: center;
}
.sg-theme-masthead h1 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900;
    color: #1C1917;
    margin: 0 0 0.6rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.sg-theme-masthead p {
    color: #57534E;
    font-size: 0.95rem;
    margin: 0 auto;
    line-height: 1.6;
    max-width: 720px;
}
.sg-theme-masthead strong { color: #1C1917; font-weight: 700; }
.sg-theme-masthead .tagline {
    color: #B45309;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-top: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.sg-theme-masthead .tagline::before,
.sg-theme-masthead .tagline::after {
    content: '';
    display: block;
    width: 2rem;
    height: 1px;
    background: #D8D3CB;
}

.sg-theme-nav {
    background: #FFFFFF;
    border-bottom: 2px solid #1C1917;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sg-theme-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sg-theme-nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.sg-theme-nav a.nav-link {
    color: #1C1917;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.85rem 0;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    display: inline-block;
}
.sg-theme-nav a.nav-link:hover,
.sg-theme-nav a.nav-link.active {
    color: #B45309;
    border-bottom-color: #B45309;
}
.sg-theme-nav .subscribe-btn {
    background: #B45309;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
    padding: 0.55rem 1.1rem;
    border-radius: 2px;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.sg-theme-nav .subscribe-btn:hover { background: #92400E; }

.sg-theme-dropdown {
    position: relative;
    display: inline-block;
}
.sg-theme-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 15rem;
    background: #FFFFFF;
    border: 1px solid #E7E5E0;
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 1001;
}
.sg-theme-dropdown:hover .sg-theme-dropdown-menu {
    opacity: 1;
    visibility: visible;
}
.sg-theme-dropdown-menu a {
    display: block;
    padding: 0.55rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #57534E;
    border-bottom: 1px solid #F2F0EB;
    transition: background 0.15s, color 0.15s;
}
.sg-theme-dropdown-menu a:hover {
    background: #F2F0EB;
    color: #1C1917;
}

.sg-theme-mobile-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #1C1917;
    cursor: pointer;
    padding: 0.6rem;
}

.sg-theme-mobile-menu {
    display: none;
    border-top: 1px solid #E7E5E0;
    background: #FFFFFF;
    padding: 0.75rem 1rem;
}
.sg-theme-mobile-menu.active { display: block; }
.sg-theme-mobile-menu a {
    display: block;
    padding: 0.65rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    border-bottom: 1px solid #F2F0EB;
    transition: color 0.15s;
}
.sg-theme-mobile-menu a:hover { color: #B45309; }

@media (max-width: 1023px) {
    .sg-theme-nav-links,
    .sg-theme-nav .subscribe-btn { display: none; }
    .sg-theme-mobile-btn { display: block; }
}

/* ========== MAIN CONTENT ========== */
.sg-theme-content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1rem;
    min-height: 50vh;
}

/* Content card */
.sg-content-card {
    background: #FFFFFF;
    border: 1px solid #E7E5E0;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .sg-content-card { padding: 1.5rem; }
    .sg-theme-content-wrapper { padding: 2rem 1rem; }
}

/* ========== TYPOGRAPHY ========== */
.sg-theme-content-wrapper h1,
.sg-theme-content-wrapper h2,
.sg-theme-content-wrapper h3,
.sg-theme-content-wrapper h4,
.sg-theme-content-wrapper h5,
.sg-theme-content-wrapper h6 {
    font-family: 'Merriweather', Georgia, serif;
    color: #1C1917;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.sg-theme-content-wrapper h1 { font-size: 2.2rem; }
.sg-theme-content-wrapper h2 { font-size: 1.8rem; }
.sg-theme-content-wrapper h3 { font-size: 1.4rem; }
.sg-theme-content-wrapper h4 { font-size: 1.2rem; }

.sg-theme-content-wrapper p,
.sg-theme-content-wrapper li,
.sg-theme-content-wrapper td,
.sg-theme-content-wrapper th {
    font-family: 'Inter', sans-serif;
    color: #44403C;
    font-size: 1rem;
    line-height: 1.75;
}

.sg-theme-content-wrapper p { margin-bottom: 1.2em; }

.sg-theme-content-wrapper ul,
.sg-theme-content-wrapper ol {
    margin-bottom: 1.2em;
    padding-left: 1.5rem;
}

.sg-theme-content-wrapper blockquote {
    border-left: 4px solid #B45309;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #57534E;
    font-style: italic;
}

.sg-theme-content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.sg-theme-content-wrapper th,
.sg-theme-content-wrapper td {
    border: 1px solid #E7E5E0;
    padding: 0.75rem;
    text-align: left;
}

.sg-theme-content-wrapper th {
    background: #F2F0EB;
    font-weight: 600;
}

/* ========== ELEMENTOR CONTENT FALLBACK ========== */
.elementor-section,
.elementor-section-boxed {
    width: 100% !important;
    max-width: 100% !important;
}

.elementor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 100% !important;
}

.elementor-column {
    flex: 1 1 250px;
    min-width: 0;
}

.elementor-widget-wrap {
    padding: 1rem 0;
}

.elementor-icon-box-wrapper {
    background: #F2F0EB;
    border: 1px solid #E7E5E0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.elementor-icon-box-icon svg {
    width: 48px;
    height: 48px;
    fill: #B45309;
}

.elementor-icon-box-title {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1C1917;
    margin: 0.75rem 0 0;
}

.elementor-heading-title {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    font-weight: 900;
    color: #1C1917;
    text-align: center;
    margin: 1.5rem 0;
}

/* ========== BLOG / CATEGORY PAGES ========== */
#blog-entries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.blog-entry {
    background: #FFFFFF;
    border: 1px solid #E7E5E0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.blog-entry:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.blog-entry-inner {
    padding: 1rem;
}

.blog-entry .thumbnail {
    margin: -1rem -1rem 1rem;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-entry .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-entry:hover .thumbnail img {
    transform: scale(1.05);
}

.blog-entry-title {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.75rem;
}

.blog-entry-title a {
    color: #1C1917;
}

.blog-entry-title a:hover {
    color: #B45309;
}

.blog-entry .meta {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.78rem;
    color: #78716C;
}

.blog-entry .meta li {
    display: inline;
    margin-right: 1rem;
}

.blog-entry-summary p {
    font-size: 0.92rem;
    color: #57534E;
    line-height: 1.6;
    margin: 0;
}

.blog-entry-readmore a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #B45309;
}

/* Pagination */
.oceanwp-pagination,
.pagination,
.page-numbers {
    margin-top: 2.5rem;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: #FFFFFF;
    border: 1px solid #E7E5E0;
    color: #1C1917;
    border-radius: 4px;
    font-size: 0.9rem;
}

.page-numbers.current,
.page-numbers:hover {
    background: #B45309;
    color: #FFFFFF;
    border-color: #B45309;
}

/* Single post */
.single-post-title {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #1C1917;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.entry-header .meta {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    color: #78716C;
    font-size: 0.85rem;
}

.entry-header .meta li {
    display: inline;
    margin-right: 1rem;
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Screen reader only text should be hidden visually */
.screen-reader-text,
.screen-reader-text span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hide broken icon placeholders gracefully */
.meta i[class^="icon-"],
.meta i[class*=" icon-"] {
    display: none;
}

/* ========== FOOTER ========== */
.sg-theme-footer {
    background: #1C1917;
    color: #FFFFFF;
    padding: 3.5rem 0 1.5rem;
    margin-top: 0;
}
.sg-theme-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}
.sg-theme-footer h3 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 900;
    margin: 0 0 1rem;
    color: #FFFFFF;
}
.sg-theme-footer h4 {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 1rem;
    color: #A8A29E;
}
.sg-theme-footer p,
.sg-theme-footer li {
    color: #A8A29E;
    font-size: 0.88rem;
    line-height: 1.65;
}
.sg-theme-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sg-theme-footer li { margin-bottom: 0.5rem; }
.sg-theme-footer a {
    color: #A8A29E;
    transition: color 0.2s;
}
.sg-theme-footer a:hover { color: #D97706; }
.sg-theme-footer-bottom {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    padding: 1.5rem 1rem 0;
    border-top: 1px solid #333;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    color: #78716C;
    font-size: 0.78rem;
}

/* ========== UTILITY CLASSES ========== */
.max-w-7xl { max-width: 1200px; margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.hidden { display: none; }
.inline { display: inline; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.text-center { text-align: center; }
.text-gray-400 { color: #9CA3AF; }
.text-gray-600 { color: #4B5563; }
.text-gray-900 { color: #111827; }
.transition-colors { transition-property: color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
