/*
Theme Name: IFTM University
Theme URI: https://iftmuniversity.ac.in
Author: IFTM University
Author URI: https://iftmuniversity.ac.in
Description: Custom WordPress theme for IFTM University with matching header and footer from main website
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iftm-university
Tags: education, university, blog, news, custom-header, custom-menu, featured-images, threaded-comments, translation-ready

IFTM University - Custom WordPress Theme
Designed to match the main website's header and footer
*/

/* ==========================================================================
   Base Styles
   ========================================================================== */

:root {
    --primary-color: #1b1f52;
    --secondary-color: #f47621;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'CircularStd', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.sticky {
    /* Sticky post styles */
}

.bypostauthor {
    /* Post author styles */
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.site-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ==========================================================================
   Blog Layout
   ========================================================================== */

.blog-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .blog-container {
        grid-template-columns: 2fr 1fr;
    }
}

/* ==========================================================================
   Post Styles
   ========================================================================== */

.post {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.post-thumbnail {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content-wrapper {
    padding: 30px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--secondary-color);
}

.post-excerpt {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: var(--primary-color);
}

.post-categories {
    margin-bottom: 15px;
}

.post-categories a {
    display: inline-block;
    padding: 5px 15px;
    background: var(--secondary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 5px;
    text-transform: uppercase;
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.single-post .post {
    box-shadow: none;
}

.single-post .post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.single-post .post-content h2 {
    font-size: 32px;
}

.single-post .post-content h3 {
    font-size: 26px;
}

.single-post .post-content p {
    margin-bottom: 20px;
}

.single-post .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.single-post .post-content ul,
.single-post .post-content ol {
    margin: 20px 0 20px 30px;
}

.single-post .post-content li {
    margin-bottom: 10px;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar {
    position: sticky;
    top: 20px;
}

.widget {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.comments-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 20px;
}

.comment-author {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.comment-content {
    line-height: 1.6;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .post-title {
        font-size: 22px;
    }
    
    .post-thumbnail {
        height: 250px;
    }
    
    .post-content-wrapper {
        padding: 20px;
    }
    
    .single-post .post-content {
        font-size: 16px;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
