/*
Theme Name: Tenwek High School
Theme URI: https://tenwekhighschool.com
Author: Tenwek High School
Author URI: https://tenwekhighschool.com
Description: A custom theme for Tenwek High School, located in Bomet County, Kenya. Built with a focus on education and excellence.
Version: 1..
Requires at least: 6.
Tested up to: 7.
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2..html
Text Domain: tenwek-high-school
Template: twentytwentyfive
*/

/* ============================================================
   Tenwek High School - Custom Styles
   ============================================================ */

:root {
    --ths-primary: #1a5276;
    --ths-primary-dark: #e2f44;
    --ths-secondary: #f39c12;
    --ths-accent: #27ae60;
    --ths-light: #f8f9fa;
    --ths-dark: #2c3e50;
    --ths-white: #ffffff;
    --ths-gray: #6c757d;
    --ths-light-gray: #e9ecef;
    --ths-footer-bg: #e2f44;
    --ths-footer-text: #ecff1;
}

/* Top Header Bar */
.ths-top-bar {
    background-color: var(--ths-primary-dark);
    color: var(--ths-white);
    padding: 8px ;
    font-size: 14px;
}

.ths-top-bar a {
    color: var(--ths-white);
    text-decoration: none;
}

.ths-top-bar a:hover {
    color: var(--ths-secondary);
}

/* Header / Site Branding */
.ths-header {
    background: linear-gradient(135deg, var(--ths-primary) %, var(--ths-primary-dark) 100%);
    padding: 20px ;
}

.ths-header .site-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--ths-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: ;
}

.ths-header .site-description {
    font-size: 1rem;
    color: var(--ths-secondary);
    font-weight: 500;
    margin: 5px  ;
}

/* Navigation */
.ths-nav {
    background-color: var(--ths-primary);
    border-top: 3px solid var(--ths-secondary);
}

.ths-nav .nav-menu {
    list-style: none;
    margin: ;
    padding: ;
    display: flex;
    flex-wrap: wrap;
}

.ths-nav .nav-menu li {
    position: relative;
}

.ths-nav .nav-menu li a {
    display: block;
    padding: 14px 20px;
    color: var(--ths-white);
    text-decoration: none;
    font-weight: 500;
    transition: background .3s;
}

.ths-nav .nav-menu li a:hover,
.ths-nav .nav-menu li.current-menu-item a {
    background-color: var(--ths-secondary);
    color: var(--ths-dark);
}

/* Hero Section */
.ths-hero {
    background: linear-gradient(rgba(26, 82, 118, .85), rgba(14, 47, 68, .85)), url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?w=160') center/cover no-repeat;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ths-white);
    padding: 60px 20px;
}

.ths-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(,,,.5);
}

.ths-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin:  auto 30px;
    opacity: .95;
}

.ths-hero .btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--ths-secondary);
    color: var(--ths-dark);
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: all .3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ths-hero .btn:hover {
    background-color: var(--ths-white);
    transform: translateY(-3px);
    box-shadow:  5px 20px rgba(,,,.3);
}

/* Section Styles */
.ths-section {
    padding: 80px ;
}

.ths-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.ths-section-title h2 {
    font-size: 2.2rem;
    color: var(--ths-primary);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.ths-section-title h2::after {
    content: '';
    position: absolute;
    bottom: ;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--ths-secondary);
}

.ths-section-title p {
    color: var(--ths-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin:  auto;
}

/* Welcome Section */
.ths-welcome {
    background-color: var(--ths-white);
}

.ths-welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.ths-welcome-text h3 {
    color: var(--ths-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.ths-welcome-text p {
    color: var(--ths-dark);
    line-height: 1.8;
    margin-bottom: 20px;
}

.ths-welcome-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow:  10px 30px rgba(,,,.15);
}

/* Feature Cards */
.ths-features {
    background-color: var(--ths-light);
}

.ths-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.ths-feature-card {
    background: var(--ths-white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow:  5px 20px rgba(,,,.08);
    transition: transform .3s;
}

.ths-feature-card:hover {
    transform: translateY(-10px);
}

.ths-feature-card .icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    background-color: var(--ths-light);
    border-radius: 50%;
    margin:  auto 20px;
    font-size: 2rem;
    color: var(--ths-primary);
}

.ths-feature-card h4 {
    color: var(--ths-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.ths-feature-card p {
    color: var(--ths-gray);
    font-size: .95rem;
    line-height: 1.6;
}

/* Stats Section */
.ths-stats {
    background: linear-gradient(135deg, var(--ths-primary) %, var(--ths-primary-dark) 100%);
    color: var(--ths-white);
}

.ths-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.ths-stat-item .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--ths-secondary);
    display: block;
}

.ths-stat-item .stat-label {
    font-size: 1.1rem;
    margin-top: 10px;
    opacity: .9;
}

/* News Section */
.ths-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ths-news-card {
    background: var(--ths-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow:  5px 20px rgba(,,,.08);
    transition: transform .3s;
}

.ths-news-card:hover {
    transform: translateY(-5px);
}

.ths-news-card .news-image {
    height: 200px;
    background-color: var(--ths-light-gray);
    overflow: hidden;
}

.ths-news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ths-news-card .news-content {
    padding: 25px;
}

.ths-news-card .news-date {
    color: var(--ths-secondary);
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ths-news-card .news-title {
    margin: 10px ;
    font-size: 1.15rem;
}

.ths-news-card .news-title a {
    color: var(--ths-primary);
    text-decoration: none;
}

.ths-news-card .news-title a:hover {
    color: var(--ths-secondary);
}

.ths-news-card .news-excerpt {
    color: var(--ths-gray);
    line-height: 1.6;
}

/* CTA Section */
.ths-cta {
    background: linear-gradient(rgba(26, 82, 118, .92), rgba(14, 47, 68, .92)), url('https://images.unsplash.com/photo-1523050854058-8df90110c7f1?w=160') center/cover no-repeat;
    color: var(--ths-white);
    text-align: center;
    padding: 80px 20px;
}

.ths-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.ths-cta p {
    font-size: 1.2rem;
    max-width: 600px;
    margin:  auto 30px;
    opacity: .95;
}

.ths-cta .btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--ths-secondary);
    color: var(--ths-dark);
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: all .3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin:  10px;
}

.ths-cta .btn-outline {
    background: transparent;
    border: 2px solid var(--ths-white);
    color: var(--ths-white);
}

.ths-cta .btn:hover {
    background-color: var(--ths-white);
    color: var(--ths-dark);
    transform: translateY(-3px);
}

.ths-cta .btn-outline:hover {
    background-color: var(--ths-white);
    color: var(--ths-primary);
}

/* Footer */
.ths-footer {
    background-color: var(--ths-footer-bg);
    color: var(--ths-footer-text);
    padding: 60px  ;
}

.ths-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.ths-footer h4 {
    color: var(--ths-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.ths-footer h4::after {
    content: '';
    position: absolute;
    bottom: ;
    left: ;
    width: 40px;
    height: 3px;
    background-color: var(--ths-secondary);
}

.ths-footer a {
    color: var(--ths-footer-text);
    text-decoration: none;
    transition: color .3s;
}

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

.ths-footer ul {
    list-style: none;
    margin: ;
    padding: ;
}

.ths-footer ul li {
    padding: 6px ;
}

.ths-footer .footer-info p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.ths-footer .contact-info li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ths-footer-bottom {
    background-color: rgba(,,,.2);
    padding: 20px ;
    margin-top: 40px;
    text-align: center;
    font-size: .9rem;
}

/* Page Content Styles */
.ths-page-header {
    background: linear-gradient(rgba(26, 82, 118, .85), rgba(14, 47, 68, .85)), url('https://images.unsplash.com/photo-1523240795612-9a054bdb644?w=160') center/cover no-repeat;
    color: var(--ths-white);
    text-align: center;
    padding: 100px 20px 80px;
}

.ths-page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.ths-page-header p {
    font-size: 1.2rem;
    opacity: .95;
    max-width: 600px;
    margin:  auto;
}

.ths-page-content {
    padding: 60px ;
}

/* Contact Form */
.ths-contact-form input,
.ths-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--ths-light-gray);
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.ths-contact-form input:focus,
.ths-contact-form textarea:focus {
    border-color: var(--ths-primary);
    outline: none;
}

.ths-contact-form textarea {
    height: 150px;
    resize: vertical;
}

.ths-contact-form button {
    padding: 15px 35px;
    background-color: var(--ths-primary);
    color: var(--ths-white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s;
}

.ths-contact-form button:hover {
    background-color: var(--ths-secondary);
    color: var(--ths-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .ths-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ths-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ths-hero h1 {
        font-size: 2.2rem;
    }
    .ths-welcome-content {
        grid-template-columns: 1fr;
    }
    .ths-features-grid {
        grid-template-columns: 1fr;
    }
    .ths-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ths-news-grid {
        grid-template-columns: 1fr;
    }
    .ths-footer-grid {
        grid-template-columns: 1fr;
    }
    .ths-hero {
        min-height: 400px;
    }
}

/* WordPress Core */
.wp-block-image {
    margin-bottom: 1.5em;
}

.entry-content a {
    color: var(--ths-primary);
}

.entry-content a:hover {
    color: var(--ths-secondary);
}

/* Buttons */
.wp-block-button__link {
    background-color: var(--ths-primary) !important;
}

.wp-block-button__link:hover {
    background-color: var(--ths-secondary) !important;
    color: var(--ths-dark) !important;
}

/* Table styles for academic pages */
.wp-block-table {
    border-collapse: collapse;
    width: 100%;
}

.wp-block-table td,
.wp-block-table th {
    border: 1px solid var(--ths-light-gray);
    padding: 12px 15px;
}

.wp-block-table thead {
    background-color: var(--ths-primary);
    color: var(--ths-white);
}

/* Gallery */
.wp-block-gallery {
    margin: 30px ;
}
