/*
Theme Name: Hope College
Theme URI: https://www.hopecollege.edu.gh/
Author: Hope College Development Team
Author URI: https://www.hopecollege.edu.gh/
Description: A professional WordPress theme for Hope College website, replicating the exact design of the official website.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hopecollege
Tags: education, responsive, custom-header, custom-menu, featured-images, translation-ready

This theme, like WordPress, is licensed under the GPL.
*/

/* ============================================
   1. CSS RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    background-color: #f4f4f4;
    background-image: url('images/campus-bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   2. LAYOUT STRUCTURE
   ============================================ */
.site-container {
    max-width: 1000px;
    margin: 34px auto 0; /* Changed from 27px to 34px (+7px) */
}

.header-frame, .body-frame, .footer-frame {
    padding: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.header-frame {
    padding: 15px 15px 5px 15px !important;
    margin-bottom: 30px !important;
}

.body-frame {
    margin-bottom: 0;
}

.footer-frame {
    margin-top: 0;
    margin-bottom: 0 !important;
    padding: 0 15px 15px 15px !important;
}

.header-inner, .body-inner, .footer-inner {
    background: #fff;
    overflow: hidden;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 15px !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px !important;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.container {
    padding: 0 25px;
}

/* ============================================
   3. HEADER & NAVIGATION
   ============================================ */
.site-header {
    text-align: center;
    padding: 20px 0 0;
}

.logo-area {
    margin-bottom: 15px;
}

.logo img {
    height: 100px;
    width: auto;
    margin: 0 auto;
}

.site-motto {
    font-family: 'Montserrat', sans-serif;
    color: #00b5ad;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Navigation Bar */
.main-navigation {
    background-color: #1178a9;
}

.main-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-navigation li {
    border-right: 1px solid #fff;
}

.main-navigation li:last-child {
    border-right: none;
}

.main-navigation a {
    color: #fff;
    padding: 8px 15px !important;
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-navigation li:hover > a,
.main-navigation .current-menu-item > a {
    background-color: #0d5d84;
}

/* Dropdown */
.main-navigation ul ul {
    display: none;
    position: absolute;
    background-color: #1178a9;
    min-width: 200px;
    z-index: 999;
    flex-direction: column;
}

.main-navigation ul ul li {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.main-navigation li:hover > ul {
    display: block;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: #1178a9;
    color: #fff;
    border: none;
    padding: 8px;
    width: 100%;
    cursor: pointer;
    font-weight: 700;
}

/* ============================================
   4. HOME PAGE (FRONT PAGE)
   ============================================ */
.home-hero-row {
    display: flex;
    gap: 20px;
    padding: 25px;
}

.hero-slider-container {
    flex: 2;
    border: 1px solid #ddd;
    background: #fff;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: none;
}

.hero-slide.active {
    display: block;
    z-index: 2;
}

/* Fade Transition */
.transition-fade .hero-slide {
    transition: opacity 0.8s ease-in-out;
    opacity: 0;
    display: block;
}
.transition-fade .hero-slide.active {
    opacity: 1;
}

/* Slide Left Transition */
.transition-slide-left .hero-slide {
    transition: transform 0.8s ease-in-out;
    transform: translateX(100%);
    display: block;
}
.transition-slide-left .hero-slide.active {
    transform: translateX(0);
}
.transition-slide-left .hero-slide.prev-slide {
    transform: translateX(-100%);
}

/* Slide Right Transition */
.transition-slide-right .hero-slide {
    transition: transform 0.8s ease-in-out;
    transform: translateX(-100%);
    display: block;
}
.transition-slide-right .hero-slide.active {
    transform: translateX(0);
}
.transition-slide-right .hero-slide.prev-slide {
    transform: translateX(100%);
}

/* Slide Up Transition */
.transition-slide-up .hero-slide {
    transition: transform 0.8s ease-in-out;
    transform: translateY(100%);
    display: block;
}
.transition-slide-up .hero-slide.active {
    transform: translateY(0);
}
.transition-slide-up .hero-slide.prev-slide {
    transform: translateY(-100%);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.slider-arrow {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slider-arrow:hover {
    background: rgba(0,0,0,0.8);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: #fff;
}

.welcome-box {
    flex: 1;
}

.welcome-title {
    background: #1178a9;
    color: #fff;
    padding: 10px 15px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}

.welcome-title::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    border-width: 22px 0 22px 10px;
    border-style: solid;
    border-color: transparent transparent transparent #1178a9;
}

.welcome-text {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

/* Buttons */
.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    border-radius: 3px;
    font-size: 13px;
    text-transform: uppercase;
}

.btn-icon {
    max-height: 24px;
    width: auto;
    object-fit: contain;
}

.btn-applications {
    background: linear-gradient(to bottom, #1178a9 0%, #0d5d84 100%);
}

.btn-visit {
    background: linear-gradient(to bottom, #00b5ad 0%, #008c86 100%);
}

/* ============================================
   5. PAGE TEMPLATES
   ============================================ */
.page-title-section {
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 25px;
}

.page-title-section h1 {
    color: #1178a9;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}

.content-row {
    display: flex;
    gap: 30px;
    padding-bottom: 40px;
}

.main-content {
    flex: 3;
}

.sidebar {
    flex: 1;
}

.entry-content h2 {
    color: #1178a9;
    font-size: 20px;
    margin: 25px 0 15px;
}

.entry-content h3 {
    color: #333;
    font-size: 16px;
    font-weight: 700;
    margin: 20px 0 10px;
}

/* ============================================
   6. FOOTER
   ============================================ */
.site-footer {
    background: #f9f9f9;
    border-top: 1px solid #eee;
    padding: 20px 0 10px !important;
    font-size: 13px;
    color: #888;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    color: #333;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* ============================================
   7. WORDPRESS CORE STYLES
   ============================================ */
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }

/* ============================================
   8. RESPONSIVE - TABLET & MOBILE
   ============================================ */
@media screen and (max-width: 768px) {
    .site-container {
        margin: 0;
        max-width: 100%;
    }

    .header-frame, .body-frame, .footer-frame {
        padding: 5px;
        margin-bottom: 10px;
    }
    
    .body-frame {
        margin-bottom: 0 !important;
    }

    .footer-frame {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }
    .header-frame {
        padding: 5px 5px 5px 5px !important;
    }

    .main-navigation ul {
        display: block !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, opacity 0.3s ease-in;
        opacity: 0;
        flex-direction: column;
        width: 100%;
    }

    .main-navigation ul.active {
        max-height: 1000px;
        opacity: 1;
        transition: max-height 0.6s ease-in, opacity 0.4s ease-out;
    }

    .menu-toggle {
        display: block;
    }

    .home-hero-row {
        flex-direction: column;
        padding: 10px;
    }

    .hero-slider-container {
        width: 100%;
        min-height: 250px;
        margin-bottom: 20px;
        order: -1;
        position: relative;
        overflow: hidden;
    }

    .hero-slider {
        min-height: 250px;
        position: relative;
    }

    .hero-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 250px;
        display: none;
    }

    .hero-slide.active {
        display: block;
        position: relative;
    }

    .hero-slide img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        display: block;
    }

    .content-row {
        flex-direction: column;
    }

    .main-navigation li {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* ============================================
   9. MOBILE SLIDER TRANSITIONS FIX
   ============================================ */
@media screen and (max-width: 768px) {
    
    /* Fade Transition on Mobile */
    .hero-slider.transition-fade .hero-slide {
        transition: opacity 0.8s ease-in-out !important;
        opacity: 0 !important;
        display: block !important;
    }
    
    .hero-slider.transition-fade .hero-slide.active {
        opacity: 1 !important;
    }
    
    /* Slide Left Transition on Mobile */
    .hero-slider.transition-slide-left {
        overflow: hidden !important;
        position: relative !important;
    }
    
    .hero-slider.transition-slide-left .hero-slide {
        transition: transform 0.8s ease-in-out !important;
        transform: translateX(100%) !important;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .hero-slider.transition-slide-left .hero-slide.active {
        transform: translateX(0) !important;
        position: relative !important;
    }
    
    .hero-slider.transition-slide-left .hero-slide.prev-slide {
        transform: translateX(-100%) !important;
    }
    
    /* Slide Right Transition on Mobile */
    .hero-slider.transition-slide-right {
        overflow: hidden !important;
        position: relative !important;
    }
    
    .hero-slider.transition-slide-right .hero-slide {
        transition: transform 0.8s ease-in-out !important;
        transform: translateX(-100%) !important;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .hero-slider.transition-slide-right .hero-slide.active {
        transform: translateX(0) !important;
        position: relative !important;
    }
    
    .hero-slider.transition-slide-right .hero-slide.prev-slide {
        transform: translateX(100%) !important;
    }
    
    /* Slide Up Transition on Mobile */
    .hero-slider.transition-slide-up {
        overflow: hidden !important;
        position: relative !important;
    }
    
    .hero-slider.transition-slide-up .hero-slide {
        transition: transform 0.8s ease-in-out !important;
        transform: translateY(100%) !important;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .hero-slider.transition-slide-up .hero-slide.active {
        transform: translateY(0) !important;
        position: relative !important;
    }
    
    .hero-slider.transition-slide-up .hero-slide.prev-slide {
        transform: translateY(-100%) !important;
    }
}

/* ============================================
   10. EXTRA SMALL DEVICES (PHONES)
   ============================================ */
@media screen and (max-width: 480px) {
    .hero-slider-container {
        min-height: 200px !important;
    }
    
    .hero-slider {
        min-height: 200px !important;
    }
    
    .hero-slide {
        height: 200px !important;
    }
    
    .hero-slide img {
        height: 200px !important;
    }
    
    .welcome-title {
        font-size: 14px;
    }
    
    .btn-action {
        font-size: 11px;
        padding: 10px;
    }
}