/*
Theme Name: RSK
Theme URI: https://kyrencs.com/rsk
Author: Rukmini Kota
Author URI: https://kyrencs.com/
Description: A professional, responsive WordPress theme for Cloud, Content & Creative Strategy.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rsk
*/

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

:root {
    --green-dark: #5a8a6f;
    --green-light: #c8e6d4;
    --green-accent: #b3d9bf;
    --green-pale: #e8f3ed;
    --bg-light: #f5fbf8;
    --bg-secondary: #eef8f2;
    --text-dark: #1a1a1a;
    --text-light: #555;
    --accent: #b3d9bf;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    border-bottom: 1px solid rgba(179, 217, 191, 0.2);
    padding: 1.2rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    filter: brightness(1);
}

nav {
    display: flex;
    gap: 3rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--green-dark);
}

.nav-cta {
    background: var(--accent);
    color: white;
    padding: 0.7rem 1.8rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(179, 217, 191, 0.3);
    background: var(--green-light);
}

/* Hero Section - Full Image Background with Overlay */
.hero {
    margin-top: 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: calc(100vh - 80px);
    position: relative;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(90, 138, 111, 0.15) 0%, rgba(90, 138, 111, 0.05) 40%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: 5%;
    padding: 4rem 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.hero-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-style: italic;
    color: var(--text-light);
}

.hero-quote-author {
    font-size: 0.95rem;
    color: var(--green-dark);
    font-weight: 600;
    margin-bottom: 2rem;
    font-style: normal;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(179, 217, 191, 0.3);
    background: var(--green-light);
}

.cta-button-secondary {
    background: transparent;
    color: var(--green-dark);
    border: 2px solid var(--accent);
}

.cta-button-secondary:hover {
    background: rgba(179, 217, 191, 0.1);
    border-color: var(--green-light);
    color: var(--green-dark);
}

/* Section */
section {
    padding: 6rem 2rem;
}

.section-max {
    max-width: 1400px;
    margin: 0 auto;
}

section:nth-child(even) {
    background: var(--bg-secondary);
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
    color: var(--green-dark);
}

.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--green-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Featured Grid - 2 columns */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.featured-card {
    background: linear-gradient(135deg, var(--green-light), var(--green-accent));
    border-radius: 15px;
    padding: 2rem;
    color: white;
    transition: all 0.3s;
    text-align: center;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(179, 217, 191, 0.25);
}

.company-logo {
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.5rem;
}

.company-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.featured-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.featured-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* Blog Hero Section */
section.blog-hero-section {
    margin-top: 80px;
    background: var(--green-dark) !important;
    min-height: 280px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: white;
}

.blog-hero-content .section-label {
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.blog-hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(179, 217, 191, 0.25);
}

.blog-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: linear-gradient(135deg, var(--green-light), var(--green-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--green-dark);
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-read-more {
    color: var(--green-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
}

.blog-read-more:hover {
    color: var(--accent);
}

/* Companies Section */
.company-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(179, 217, 191, 0.08), rgba(200, 230, 212, 0.05));
    border-radius: 15px;
}

.company-block:nth-child(even) {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.company-block:nth-child(even) > * {
    direction: ltr;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.company-logo-large {
    height: 120px;
    flex-shrink: 0;
    background: rgba(179, 217, 191, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.company-logo-large img {
    height: 100%;
    object-fit: contain;
}

.company-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
}

.company-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--green-dark);
}

.company-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Newsletter Section */
.newsletter {
    background: var(--bg-secondary);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    text-align: center;
}

.newsletter p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    color: var(--text-dark);
}

.newsletter-form input::placeholder {
    color: #999;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--accent);
    border: none;
    color: white;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(179, 217, 191, 0.3);
    background: var(--green-light);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.about-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--green-dark);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(179, 217, 191, 0.2);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    color: var(--green-dark);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--green-dark);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(179, 217, 191, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: #888;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--green-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 500px;
        margin-left: 2%;
        padding: 3rem 2rem;
    }

    .featured-grid, .blog-grid {
        grid-template-columns: 1fr;
    }

    .company-block {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        margin-top: 80px;
        min-height: auto;
        padding: 3rem 1rem;
    }

    .hero-content {
        max-width: 100%;
        margin-left: 0;
        margin-right: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    nav {
        display: none;
    }

    .featured-grid, .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .company-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Single Post Layout */
.single-post-hero {
    margin-top: 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 450px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
}

.single-post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(90, 138, 111, 0.4) 0%, rgba(26, 26, 26, 0.75) 100%);
    z-index: 1;
}

.single-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: white;
}

.single-hero-content .post-category-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--text-dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.single-hero-content .post-category-badge:hover {
    background: white;
    color: var(--green-dark);
}

.single-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.single-hero-meta {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.single-hero-meta span {
    margin: 0 1rem;
}

.single-post-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.post-body-content {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-light);
}

.post-body-content p {
    margin-bottom: 1.8rem;
}

.post-body-content h2, .post-body-content h3 {
    font-family: 'Playfair Display', serif;
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    font-weight: 700;
}

.post-body-content h2 {
    font-size: 2rem;
}

.post-body-content h3 {
    font-size: 1.6rem;
}

.post-body-content blockquote {
    border-left: 4px solid var(--green-dark);
    padding: 1.2rem 2rem;
    margin: 2.5rem 0;
    background: var(--bg-secondary);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--green-dark);
    border-radius: 0 12px 12px 0;
    line-height: 1.7;
}

.post-body-content ul, .post-body-content ol {
    margin-bottom: 1.8rem;
    padding-left: 2rem;
}

.post-body-content li {
    margin-bottom: 0.6rem;
}

.post-body-content a {
    color: var(--green-dark);
    text-decoration: underline;
    transition: color 0.3s;
}

.post-body-content a:hover {
    color: var(--accent);
}

.post-tags {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(179, 217, 191, 0.2);
}

.post-tags span {
    font-weight: 700;
    color: var(--text-dark);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.post-tags a {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--green-dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.post-tags a:hover {
    background: var(--green-dark);
    color: white;
}

.back-to-home {
    display: inline-block;
    margin-top: 3rem;
    color: var(--green-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--green-pale);
    border-radius: 50px;
}

.back-to-home:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: white;
}

/* Blog Pagination Styling */
.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.blog-pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid var(--green-pale);
    border-radius: 50px;
    color: var(--green-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: white;
}

/* WordPress Admin Bar Fixes */
body.admin-bar header {
    top: 32px;
}

body.admin-bar .single-post-hero,
body.admin-bar section.blog-hero-section {
    margin-top: 112px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }
    body.admin-bar .single-post-hero,
    body.admin-bar section.blog-hero-section {
        margin-top: 126px;
    }
}



