/*
Theme Name: RECTEM Professional Blog
Theme URI: https://rectem.edu.ng
Author: RECTEM
Author URI: https://rectem.edu.ng
Description: A professional blog theme for Redeemer's College of Technology and Management (RECTEM) featuring the institution's brand colors and modern, clean design.
Version: 1.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: rectem-blog
Tags: education, blog, institutional, two-columns, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 Variables & Reset
2.0 Typography
3.0 Layout
4.0 Header
5.0 Navigation
6.0 Content
7.0 Sidebar
8.0 Footer
9.0 Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 Variables & Reset
--------------------------------------------------------------*/
:root {
    --rectem-primary: #003DA5;      /* RECTEM Navy - Primary brand color */
    --rectem-primary-hover: #002d7a; /* RECTEM Navy - Hover state */
    --rectem-secondary: #f1ab00;    /* RECTEM Gold - Secondary/Accent color */
    --rectem-secondary-hover: #e09a00; /* RECTEM Gold - Hover state */
    --rectem-dark: #001f5c;         /* Darker navy for contrast */
    --rectem-light: #ecf0f1;        /* Light gray */
    --rectem-white: #ffffff;
    --rectem-text: #333333;
    --rectem-border: #dfe6e9;
    --rectem-link-highlight: #D6336B; /* Pink/magenta for inline links */
}

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

/*--------------------------------------------------------------
2.0 Typography
--------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;500;600;700&family=Oswald:wght@400;500;600;700&family=Montserrat:wght@700;800;900&display=swap');

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--rectem-text);
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--rectem-primary);
    text-transform: none;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--rectem-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--rectem-secondary-hover);
}

/*--------------------------------------------------------------
3.0 Layout
--------------------------------------------------------------*/
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--rectem-white);
}

.content-wrapper {
    display: flex;
    gap: 30px;
    padding: 40px 30px;
    width: 100%;
}

.main-content {
    flex: 1;
    min-width: 0;
    display: block;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
    display: block;
}

/*--------------------------------------------------------------
4.0 Header
--------------------------------------------------------------*/
.site-header {
    background: linear-gradient(135deg, var(--rectem-primary) 0%, var(--rectem-primary-hover) 100%);
    color: var(--rectem-white);
    padding: 18px 30px;
    border-bottom: 4px solid var(--rectem-secondary);
}

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

.site-branding {
    display: flex;
    align-items: center;
    flex: 1;
}

.site-title-wrapper {
    flex: 1;
}

.site-title {
    font-family: 'Montserrat', 'Oswald', sans-serif;
    font-size: 2.2rem;
    margin: 0 0 4px 0;
    color: var(--rectem-white);
    font-weight: 800;
    font-style: normal;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 6px;
}

.site-title a {
    color: var(--rectem-white);
}

.site-title a:hover {
    color: var(--rectem-secondary);
}

.site-description {
    font-size: 1rem;
    color: rgba(255,255,255,0.95);
    margin: 0;
    font-style: italic;
    font-weight: 300;
}

.header-contact {
    text-align: right;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
}

.header-contact a {
    color: var(--rectem-white);
    display: block;
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.header-contact a:hover {
    color: var(--rectem-secondary);
}

/*--------------------------------------------------------------
5.0 Navigation
--------------------------------------------------------------*/
.main-navigation {
    background-color: var(--rectem-white);
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background-color: var(--rectem-primary);
    border: 2px solid var(--rectem-white);
    padding: 10px 12px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    border-radius: 4px;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 26px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--rectem-white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active {
    background-color: var(--rectem-secondary);
}

.mobile-menu-toggle.active .hamburger-icon span {
    background-color: var(--rectem-white);
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 18px 25px;
    color: var(--rectem-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    font-family: 'Fira Sans', sans-serif;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--rectem-white);
    background-color: var(--rectem-primary);
}

/* Dropdown menus */
.nav-menu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--rectem-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 220px;
    list-style: none;
}

.nav-menu li:hover > ul {
    display: block;
}

.nav-menu ul a {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.nav-menu ul a:hover {
    background-color: #f8f9fa;
    color: var(--rectem-primary);
}

/*--------------------------------------------------------------
6.0 Content
--------------------------------------------------------------*/

/* Blog Listing Grid */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    margin-bottom: 50px;
}

/* All posts same size - no featured first */
.post {
    background-color: var(--rectem-white);
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post:hover {
    border-color: var(--rectem-primary);
    transform: translateY(-3px);
}

.post-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
    background-color: #f0f0f0;
}

.post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.post:hover .post-thumbnail {
    transform: scale(1.05);
}

/* Category badge on image */
.post-category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--rectem-secondary);
    color: var(--rectem-white);
    padding: 8px 18px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 10;
    font-family: 'Fira Sans', sans-serif;
}

.post-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: var(--rectem-white);
}

.post-header {
    margin-bottom: 15px;
}

.entry-title {
    margin-bottom: 15px;
    line-height: 1.3;
    font-size: 1.6rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
}

.entry-title a {
    color: var(--rectem-primary);
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: var(--rectem-secondary-hover);
}

.entry-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--rectem-border);
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.entry-meta svg {
    opacity: 0.7;
}

.entry-meta a {
    color: var(--rectem-primary);
    font-weight: 500;
}

.entry-meta a:hover {
    color: var(--rectem-secondary-hover);
}

.entry-content,
.entry-excerpt {
    line-height: 1.8;
    color: #555;
    flex-grow: 1;
    margin-bottom: 20px;
}

.entry-excerpt {
    font-size: 1rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

.entry-content ul,
.entry-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.entry-content blockquote {
    border-left: 4px solid var(--rectem-secondary);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
    background-color: rgba(243, 156, 18, 0.05);
    padding: 15px 20px;
    border-radius: 0 5px 5px 0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background-color: var(--rectem-primary);
    color: var(--rectem-white);
    border-radius: 0;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: auto;
    font-family: 'Fira Sans', sans-serif;
    justify-content: center;
}

.read-more:hover {
    background-color: var(--rectem-secondary-hover);
    color: var(--rectem-white);
    transform: translateX(3px);
}

.read-more::after {
    content: '→';
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Post categories and tags */
.post-footer {
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-top: 1px solid var(--rectem-border);
}

.post-categories,
.post-tags {
    margin-bottom: 10px;
}

.post-categories a,
.post-tags a {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 5px 5px 0;
    background-color: var(--rectem-primary);
    color: var(--rectem-white);
    border-radius: 3px;
    font-size: 0.85rem;
}

.post-tags a {
    background-color: var(--rectem-secondary);
}

.post-categories a:hover,
.post-tags a:hover {
    opacity: 0.8;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background-color: var(--rectem-white);
    border: 1px solid var(--rectem-border);
    border-radius: 5px;
    color: var(--rectem-primary);
}

.pagination .current {
    background-color: var(--rectem-primary);
    color: var(--rectem-white);
    border-color: var(--rectem-primary);
}

.pagination a:hover {
    background-color: var(--rectem-primary);
    color: var(--rectem-white);
}

/* Comments */
.comments-area {
    margin-top: 50px;
    margin-bottom: 60px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    clear: both;
}

.comments-title {
    border-bottom: 3px solid var(--rectem-primary);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--rectem-white);
    border-radius: 5px;
    border-left: 3px solid var(--rectem-secondary);
}

.comment-author {
    font-weight: 700;
    color: var(--rectem-primary);
}

.comment-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.comment-form {
    margin-top: 30px;
    margin-bottom: 40px;
}

.comment-form p {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--rectem-primary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 1rem;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--rectem-primary);
}

.comment-form input[type="submit"] {
    background-color: var(--rectem-primary);
    color: var(--rectem-white);
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.comment-form input[type="submit"]:hover {
    background-color: var(--rectem-secondary-hover);
}

/* Post Navigation */
.post-navigation {
    margin-top: 40px;
    margin-bottom: 80px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation a {
    display: block;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 48%;
}

.post-navigation a:hover {
    background-color: var(--rectem-primary);
    color: var(--rectem-white);
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.post-navigation a:hover .nav-subtitle {
    color: rgba(255,255,255,0.8);
}

.post-navigation .nav-title {
    font-weight: 700;
    color: var(--rectem-primary);
}

.post-navigation a:hover .nav-title {
    color: var(--rectem-white);
}

/*--------------------------------------------------------------
7.0 Sidebar
--------------------------------------------------------------*/
.widget {
    margin-bottom: 35px;
    background-color: var(--rectem-white);
    padding: 0;
    border-radius: 0;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.widget-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0;
    padding: 20px 25px;
    background-color: var(--rectem-primary);
    color: var(--rectem-white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title::before {
    content: '✎';
    font-size: 1.4rem;
    color: var(--rectem-white);
    background-color: rgba(255,255,255,0.2);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 15px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    display: block;
    color: var(--rectem-primary);
    transition: all 0.3s ease;
    padding-left: 0;
    font-weight: 500;
}

.widget a:hover {
    color: var(--rectem-secondary-hover);
    padding-left: 10px;
}

/* Search widget */
.widget_search {
    padding: 0;
}

.widget_search .widget-title {
    padding: 20px 25px;
    background-color: var(--rectem-primary);
    color: var(--rectem-white);
    margin-bottom: 0;
    border-bottom: none;
    font-family: 'Oswald', sans-serif;
}

.widget_search .widget-title::before {
    content: '🔍';
    background-color: rgba(255,255,255,0.2);
}

.widget_search .search-form {
    padding: 25px;
}

.widget_search input[type="search"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Fira Sans', sans-serif;
    transition: border-color 0.3s ease;
}

.widget_search input[type="search"]:focus {
    outline: none;
    border-color: var(--rectem-primary);
    box-shadow: 0 0 0 3px rgba(0, 61, 165, 0.1);
}

.widget_search button,
.widget_search input[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background-color: var(--rectem-primary);
    color: var(--rectem-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Fira Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.widget_search button:hover,
.widget_search input[type="submit"]:hover {
    background-color: var(--rectem-secondary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/*--------------------------------------------------------------
8.0 Footer
--------------------------------------------------------------*/
.site-footer {
    background: linear-gradient(135deg, var(--rectem-primary-hover) 0%, var(--rectem-primary) 100%);
    color: var(--rectem-white);
    padding: 40px 30px 20px;
    margin-top: 50px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-widget {
    color: rgba(255,255,255,0.9);
}

.footer-widget h3 {
    color: var(--rectem-white);
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--rectem-secondary);
    padding-bottom: 10px;
}

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

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: rgba(255,255,255,0.9);
}

.footer-widget a:hover {
    color: var(--rectem-secondary);
}

.site-info {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    max-width: 1200px;
    margin: 0 auto;
}

.site-info p {
    margin: 8px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/*--------------------------------------------------------------
9.0 Responsive
--------------------------------------------------------------*/

/* Desktop - 2 column grid */
@media (min-width: 969px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet and mobile */
@media (max-width: 968px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-contact {
        text-align: center;
    }
    
    /* Mobile Menu Styles */
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: relative;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--rectem-white);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu.active {
        display: flex;
        max-height: 500px;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        width: 100%;
    }
    
    .nav-menu ul {
        position: static;
        box-shadow: none;
        width: 100%;
        background-color: #f8f9fa;
    }
    
    .nav-menu ul a {
        padding-left: 35px;
    }
    
    .nav-menu li:hover > ul {
        display: block;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-thumbnail-wrapper {
        height: 240px;
    }
    
    .site-title {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }
    
    .site-description {
        font-size: 0.9rem;
    }
    
    .header-contact {
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .site-header {
        padding: 15px 20px;
    }
    
    .site-title {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }
    
    .site-description {
        font-size: 0.8rem;
    }
    
    .header-contact {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .post-content,
    .comments-area,
    .widget {
        padding: 20px;
    }
    
    .content-wrapper {
        padding: 20px 15px;
    }
    
    .entry-title {
        font-size: 1.4rem;
    }
    
    .post-thumbnail-wrapper {
        height: 200px;
    }
    
    .post-category-badge {
        font-size: 0.7rem;
        padding: 6px 14px;
    }
    
    .nav-menu a {
        padding: 15px 20px;
    }
    
    /* Mobile Footer Improvements */
    .site-footer {
        padding: 30px 20px 15px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 25px;
    }
    
    .footer-widget h3 {
        font-size: 1.1rem;
    }
    
    .site-info {
        padding-top: 20px;
    }
    
    .site-info p {
        font-size: 0.85rem;
        margin: 6px 0;
    }
}
