/*
Theme Name: India Tupy Custom Theme
Theme URI: https://indiatupy.com
Author: India Tupy
Author URI: https://indiatupy.com
Description: Custom WordPress theme matching the India Tupy Photography website design
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: indiatupy
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: #fff;
    color: #3e3e3e;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

a {
    color: #3e3e3e;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

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

/* Site Container */
#site {
    width: 100%;
    margin: 0 auto;
}

/* Header Styles */
#header {
    text-align: center;
    padding: 40px 20px 20px;
    background: #fff;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
}

#logoWrapper {
    margin-bottom: 20px;
}

#logoImage {
    margin: 0;
    font-size: 0;
}

#logoImage img {
    max-width: 450px;
    width: 100%;
    height: auto;
}

/* Navigation Styles */
#mainNavWrapper {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #e4e4e4;
}

#mainNavigation {
    display: inline-block;
}

#mainNavigation div {
    display: inline-block;
    margin: 0 15px;
}

#mainNavigation a {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
    font-weight: 500;
    padding: 10px 5px;
    display: inline-block;
    color: #3e3e3e;
}

#mainNavigation a:hover {
    opacity: 0.6;
}

/* Content Wrapper */
#content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Blog Posts Grid */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .blog-posts {
        grid-template-columns: 1fr;
    }
}

/* Individual Post in Grid */
.blog-post {
    background: #fff;
    border: 1px solid #e4e4e4;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.blog-post:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.blog-post-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f6f6f6;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-content {
    padding: 20px;
}

.blog-post-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-post-title a {
    color: #3e3e3e;
}

.blog-post-meta {
    font-size: 11px;
    color: #8e8e8e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.blog-post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    color: #3e3e3e;
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #e4e4e4;
    transition: all 0.2s ease;
}

.read-more:hover {
    background: #3e3e3e;
    color: #fff;
    opacity: 1;
}

/* Single Post Styles */
.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.single-post-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e4e4e4;
}

.single-post-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #3e3e3e;
}

.single-post-meta {
    font-size: 11px;
    color: #8e8e8e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-post-image {
    margin-bottom: 30px;
    text-align: center;
}

.single-post-image img {
    width: 100%;
    height: auto;
}

.single-post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #3e3e3e;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 500;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* Pagination */
.pagination {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #e4e4e4;
    margin-top: 40px;
}

.pagination a {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 20px;
    border: 1px solid #e4e4e4;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    color: #3e3e3e;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #3e3e3e;
    color: #fff;
    opacity: 1;
}

/* Footer */
#footer {
    background: #f6f6f6;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #e4e4e4;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.back-to-top {
    margin-bottom: 20px;
}

.back-to-top a {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    color: #3e3e3e;
}

/* Responsive */
@media (max-width: 768px) {
    #header {
        padding: 20px 15px;
    }

    #logoImage img {
        max-width: 250px;
    }

    #mainNavigation div {
        margin: 0 10px;
    }

    #mainNavigation a {
        font-size: 10px;
        padding: 8px 3px;
    }

    #content {
        padding: 20px 15px;
    }

    .single-post-title {
        font-size: 24px;
    }

    .single-post-content {
        font-size: 15px;
    }
}

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}
