/* ==========================================================================
   INNER PAGES STYLES (About, Services, Contact, Blog)
   ========================================================================== */

/* Inner Page Header */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
    padding: 100px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/page-banner.jpg') center/cover;
    opacity: 0.15;
}
.page-header-content {
    position: relative;
    z-index: 2;
}
.page-header h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 15px;
    color: white;
}
.page-header p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Page Content Base */
.page-content {
    padding: 80px 0;
}

/* ABOUT PAGE */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}
.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}
.about-img img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.team-card {
    text-align: center;
}
.team-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--soft-bg);
}
.team-card h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.team-card span {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* CONTACT PAGE */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}
.contact-info-card {
    background: var(--soft-bg);
    padding: 40px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}
.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}
.contact-item-icon {
    width: 50px;
    height: 50px;
    background: white;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.contact-item-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.contact-item-details p {
    color: var(--text-muted);
}
.contact-form {
    background: white;
    padding: 50px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-dark);
}
.form-group {
    margin-bottom: 20px;
}
.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}
textarea.form-control {
    height: 150px;
    resize: vertical;
}
.map-container {
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 50px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* BLOG (HOME & SINGLE) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}
.blog-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.blog-img {
    height: 220px;
    overflow: hidden;
}
.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.blog-card:hover .blog-img img {
    transform: scale(1.05);
}
.blog-content {
    padding: 30px;
}
.blog-meta {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}
.blog-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}
.blog-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.read-more {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.read-more:hover {
    gap: 10px;
}

/* Single Post */
.single-post-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}
.single-post-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin: 15px 0;
}
.single-post-thumbnail {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
}
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}
.single-post-content h2, .single-post-content h3 {
    color: var(--dark);
    margin: 30px 0 15px;
}

/* ENVATO STYLE BLOG */
.blog-layout {
    display: flex;
    gap: 40px;
}
.blog-main-content {
    flex: 1;
}
.blog-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.blog-grid-envato {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}
.envato-blog-card {
    background: transparent;
}
.envato-blog-img {
    margin-bottom: 20px;
}
.envato-blog-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.envato-meta {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}
.envato-cat {
    color: #8da4be; /* Light blueish */
}
.envato-date {
    color: #f69450; /* Orangeish */
}
.envato-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}
.envato-title a {
    color: inherit;
    text-decoration: none;
}
.envato-title a:hover {
    color: var(--primary);
}
.envato-excerpt {
    color: #777;
    font-size: 1rem;
    line-height: 1.6;
}

/* WIDGETS */
.envato-widget {
    background: #f4efeb;
    padding: 30px;
    margin-bottom: 30px;
}
.envato-widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #222;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
}
.envato-search-form {
    display: flex;
}
.envato-search-form input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 20px 0 0 20px;
    outline: none;
}
.envato-search-form button {
    background: #8da4be;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-weight: 700;
}
.envato-cat-list {
    list-style: none;
}
.envato-cat-list li {
    margin-bottom: 12px;
}
.envato-cat-list a {
    color: #666;
    text-decoration: none;
}
.envato-cat-list a:hover {
    color: var(--primary);
}
.envato-cat-list i {
    color: #8da4be;
    margin-right: 8px;
}
.envato-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.envato-rp-item {
    display: flex;
    gap: 15px;
}
.envato-rp-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
}
.envato-rp-item h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.3;
}
.envato-rp-item h4 a {
    color: #333;
}
.envato-rp-item span {
    font-size: 0.85rem;
    color: var(--primary);
}

@media (max-width: 991px) {
    .blog-layout {
        flex-direction: column;
    }
    .blog-sidebar {
        width: 100%;
    }
}

/* PROJECTS / PORTFOLIO */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.project-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.project-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
}
.project-card:hover .project-overlay {
    opacity: 1;
}
.project-overlay h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 5px;
}
.project-overlay span {
    color: var(--secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
}
