/*
Theme Name: Tamale Technical University
Theme URI: https://www.tatu.edu.gh
Author: TaTu Web Team
Author URI: https://www.tatu.edu.gh
Description: Official theme for Tamale Technical University website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tatu
*/


/* =========================================
   1. ROOT VARIABLES
========================================= */
:root {
    --primary: #21834e;
    --primary-dark: #1a6b3f;
    --secondary: #E5BA41;
    --secondary-dark: #A88B4A;
    --dark: #1C2B20;
    --text: #2C3E36;
    --text-light: #5A6B63;
    --white: #FFFFFF;
    --cream: #F8F5F0;
    --light-bg: #F5F7F5;
    --border: #E8E8E8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}


/* =========================================
   2. BASE STYLES
========================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: #FFFFFF !important;
    overflow-x: hidden;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", serif;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.3;
}

p {
    color: var(--text);
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   3. LINKS & BUTTONS (HIGH CONTRAST)
========================================= */
a {
    color: #A88B4A !important;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #8B7340 !important;
}

.btn {
    border-radius: 50px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-brand {
    background: #E5BA41 !important;
    color: #1C2B20 !important;
    border: 2px solid #E5BA41 !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(229, 186, 65, 0.3);
}

.btn-brand:hover {
    background: #D4A93A !important;
    border-color: #D4A93A !important;
    color: #1C2B20 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 186, 65, 0.4);
}

.btn-outline-primary {
    color: #21834e !important;
    border-color: #21834e !important;
    background: transparent;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: #21834e !important;
    color: #FFFFFF !important;
    border-color: #21834e !important;
    transform: translateY(-2px);
}

.btn-light-outline {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
}

.btn-light-outline:hover {
    background: #FFFFFF !important;
    color: #21834e !important;
    border-color: #FFFFFF !important;
}

/* =========================================
   4. UTILITY CLASSES
========================================= */
.text-primary {
    color: #21834e !important;
}

.text-muted {
    color: #6C757D !important;
}

.text-secondary {
    color: #5A6B63 !important;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.tag-pill {
    display: inline-block;
    background: rgba(33, 131, 78, 0.1);
    color: #21834e !important;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.object-fit-cover {
    object-fit: cover;
}

/* =========================================
   5. TOP BAR
========================================= */
.top-bar {
    background: #21834e;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.88rem;
    padding: 0.65rem 0;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.95) !important;
}

.top-bar a:hover {
    color: #E5BA41 !important;
}

.top-bar i {
    color: #E5BA41;
    margin-right: 0.5rem;
}

.top-bar span {
    display: inline-flex;
    align-items: center;
}

.social-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    margin-left: 0.4rem;
    transition: var(--transition);
    color: #E5BA41 !important;
}

.social-icons a:hover {
    background: #E5BA41;
    color: #21834e !important;
    transform: translateY(-2px);
}

/* =========================================
   6. NAVBAR
========================================= */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--primary);
}

.navbar .container {
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 800;
    color: var(--dark);
}

.logo-box {
    width: 160px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--white);
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.navbar .nav-link {
    color: var(--text) !important;
    font-weight: 600;
    padding: 0.9rem 1.1rem !important;
    font-size: 0.95rem;
    cursor: pointer;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.show,
.navbar .nav-link.active {
    color: #21834e !important;
}

/* =========================================
   7. DROPDOWN MENU
========================================= */
.dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    border-top: 3px solid var(--primary);
    display: none;
    position: absolute;
    min-width: 220px;
    background: var(--white);
    z-index: 1050;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #2C3E36 !important;
    transition: all 0.2s ease;
    display: block;
    text-decoration: none;
}

.dropdown-item:hover {
    background: #F5F7F5;
    color: #21834e !important;
    padding-left: 1rem;
}

/* =========================================
   8. MEGA MENU (FIXED PADDING)
========================================= */
.nav-item.dropdown {
    position: static !important;
}

.mega-menu {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    transform: none !important;
    padding: 1.25rem 2rem !important;
    border-radius: 0 0 12px 12px !important;
    margin-top: 0 !important;
    border-top: 3px solid var(--primary) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
    background: var(--white) !important;
    z-index: 1050 !important;
    position: absolute !important;
}

.nav-item.dropdown:hover > .mega-menu,
.nav-item.dropdown:focus-within > .mega-menu {
    display: block !important;
}

.nav-item.dropdown:hover > .dropdown-menu:not(.mega-menu),
.nav-item.dropdown:focus-within > .dropdown-menu:not(.mega-menu) {
    display: block !important;
}

.mega-menu .mega-title {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    color: #21834e !important;
    font-size: 0.75rem;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 0.75rem;
}

.mega-menu .mega-feature {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    height: 100%;
    border-left: 4px solid #21834e;
}

.mega-menu .mega-feature h6 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.mega-menu .mega-feature p {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.mega-menu .row {
    margin: 0;
}

.mega-menu .row > div {
    padding: 0 0.75rem;
}

/* Submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: 0;
    margin-left: 0.5rem;
    display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block !important;
}

/* =========================================
   9. HERO CAROUSEL
========================================= */
.hero-section {
    position: relative;
    overflow: hidden;
}

.zoom-carousel .carousel-item {
    height: 85vh;
    min-height: 550px;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 8s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(28, 43, 32, 0.85) 0%, rgba(33, 131, 78, 0.65) 100%);
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    max-width: 900px;
    width: 90%;
    color: #fff;
}

.caption-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.caption-text {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.caption-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.slide-counter {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 3;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.slide-counter .current {
    font-size: 2rem;
    color: #E5BA41;
}

.carousel-indicators {
    bottom: 30px;
    right: 30px;
    left: auto;
    margin: 0;
    z-index: 3;
}

.carousel-indicators button {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    transition: var(--transition);
}

.carousel-indicators button.active {
    background: #E5BA41;
    width: 60px;
}

.slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #E5BA41;
    width: 0;
    z-index: 3;
    animation: progress 6s linear infinite;
}

@keyframes progress {
    from { width: 0; }
    to { width: 100%; }
}

/* =========================================
   10. VICE CHANCELLOR SECTION
========================================= */
.vc-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--cream) 0%, #FFFFFF 100%) !important;
}

.vc-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
}

.vc-image-col {
    position: relative;
    background: var(--primary);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vc-image-col img {
    width: 100%;
    max-width: 350px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.vc-image-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #E5BA41;
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.vc-image-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #fff;
}

.vc-name {
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.vc-position {
    color: #E5BA41 !important;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.vc-message-col {
    padding: 3rem;
    position: relative;
}

.vc-quote-mark {
    font-family: "Playfair Display", serif;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: 10px;
    right: 30px;
    line-height: 1;
}

.vc-tag {
    color: #21834e !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vc-tag::before {
    content: "";
    width: 30px;
    height: 2px;
    background: #E5BA41;
}

.vc-message-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.vc-message-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.vc-signature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.vc-signature-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vc-signature-text strong {
    color: #21834e !important;
    display: block;
}

.vc-cta {
    color: #A88B4A !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.vc-cta:hover {
    color: #8B7340 !important;
    gap: 0.8rem;
}

/* =========================================
   11. ADMISSION SECTION
========================================= */
.admission-section {
    padding: 6rem 0;
    background: #FFFFFF !important;
}

.admission-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.admission-content p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.admission-badge {
    display: inline-block;
    background: #E5BA41;
    color: #1C2B20 !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.admission-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text);
    font-weight: 500;
}

.feature-item i {
    color: #E5BA41 !important;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-admission-primary {
    background: #E5BA41 !important;
    color: #1C2B20 !important;
    border: 2px solid #E5BA41 !important;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(229, 186, 65, 0.3);
}

.btn-admission-primary:hover {
    background: #D4A93A !important;
    border-color: #D4A93A !important;
    color: #1C2B20 !important;
    transform: translateY(-2px);
}

.btn-admission-outline {
    border: 2px solid #21834e !important;
    color: #21834e !important;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    background: transparent;
}

.btn-admission-outline:hover {
    background: #21834e !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.admission-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
}

.admission-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 500px;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 43, 32, 0.3) 0%, rgba(28, 43, 32, 0.9) 100%);
    z-index: 1;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: #fff;
    z-index: 2;
}

.card-content h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.card-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mini-stat {
    text-align: center;
}

.mini-stat h4 {
    color: #E5BA41 !important;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    font-family: "Inter", sans-serif;
}

.mini-stat span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

/* =========================================
   12. NEWS SECTION
========================================= */
.news-section {
    padding: 6rem 0;
    background: #FFFFFF !important;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    transition: transform 0.6s ease;
}

.news-card:hover .news-image {
    transform: scale(1.08);
}

.news-link {
    color: #A88B4A !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1rem;
}

.news-link:hover {
    color: #8B7340 !important;
    gap: 0.6rem;
}

/* =========================================
   13. EVENTS SECTION
========================================= */
.events-section {
    padding: 6rem 0;
    background: var(--light-bg) !important;
}

.event-overlay-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 380px;
    display: block;
    transition: var(--transition);
}

.event-overlay-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-overlay-card:hover img {
    transform: scale(1.1);
}

.event-overlay-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(28, 43, 32, 0.95) 100%);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.event-overlay-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.event-overlay-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.event-overlay-meta i {
    color: #E5BA41;
}

.event-overlay-content h4 {
    font-family: "Playfair Display", serif;
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.event-overlay-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
}

/* =========================================
   14. VIDEO SECTION
========================================= */
.video-section {
    padding: 0;
    background: var(--white);
}

.video-box {
    border-radius: 0;
    overflow: hidden;
    position: relative;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(28, 43, 32, 0.7);
}

.video-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 2.5rem;
    color: var(--white);
}

.play-btn {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #E5BA41;
    color: var(--dark);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 0 0 rgba(229, 186, 65, 0.5);
    animation: pulse 2s infinite;
    margin-bottom: 1.2rem;
    transition: var(--transition);
    cursor: pointer;
}

.play-btn:hover {
    transform: scale(1.08);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 186, 65, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(229, 186, 65, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 186, 65, 0); }
}

/* =========================================
   15. FOOTER
========================================= */
.site-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.9);
    padding-top: 4rem;
    margin-top: 0 !important;
    clear: both !important;
}

.footer-main {
    padding-bottom: 3rem;
}

.footer-column h3 {
    color: #fff;
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #E5BA41;
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: #E5BA41 !important;
    padding-left: 0.5rem;
}

.footer-contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.footer-contact-info a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-contact-info a:hover {
    color: #E5BA41 !important;
}

.directions-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #E5BA41 !important;
    font-weight: 600;
    margin-top: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem 0;
}

.footer-bottom-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-legal-links a:hover {
    color: #E5BA41 !important;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #E5BA41 !important;
    transition: var(--transition);
}

.footer-social a:hover {
    background: #E5BA41;
    color: #21834e !important;
    transform: translateY(-3px);
}

/* =========================================
   16. LEADERSHIP CARDS
========================================= */
.leader-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.leader-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(33, 131, 78, 0.12);
}

.leader-photo-wrapper {
    display: flex;
    justify-content: center;
}

.leader-card a.text-dark {
    color: #2C3E36 !important;
}

.leader-card a.text-dark:hover {
    color: #21834e !important;
}

.leader-card .btn-brand {
    transition: all 0.3s ease;
}

.leader-card .btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 186, 65, 0.3);
}

.leader-card .btn-outline-primary {
    transition: all 0.3s ease;
}

.leader-card .btn-outline-primary:hover {
    transform: translateY(-2px);
    background: #21834e !important;
    color: #FFFFFF !important;
    border-color: #21834e !important;
}

.leader-socials {
    margin-top: auto;
    padding-top: 1rem;
}

.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #E5BA41 !important;
    color: #1C2B20 !important;
    border-color: #E5BA41 !important;
}

/* =========================================
   17. POST NAVIGATION (single.php)
========================================= */
.post-navigation {
    margin-top: 3rem !important;
    padding-top: 2rem !important;
}

.post-nav-link {
    display: block;
    padding: 1.5rem;
    background: #FFFFFF;
    border: 2px solid #E8E8E8;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    height: 100%;
}

.post-nav-link:hover {
    border-color: #21834e;
    background: #F8F9F8;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 131, 78, 0.12);
}

.post-nav-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-nav-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #21834e;
    color: #FFFFFF !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.post-nav-link:hover .post-nav-arrow {
    background: #E5BA41;
    color: #1C2B20 !important;
    transform: scale(1.1);
}

.post-nav-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

.post-nav-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #21834e !important;
}

.post-nav-title {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1C2B20 !important;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-nav-link:hover .post-nav-title {
    color: #21834e !important;
}

.post-meta-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #5A6B63;
}

.post-meta-nav .meta-item {
    color: #5A6B63;
    display: inline-flex;
    align-items: center;
}

.post-meta-nav .meta-item i {
    color: #E5BA41;
}

.post-meta-nav .meta-divider {
    color: #ccc;
    margin: 0 0.25rem;
}

.post-meta-nav a {
    color: #21834e !important;
    font-weight: 600;
}

.post-meta-nav a:hover {
    color: #1a6b3f !important;
}

.article-text {
    color: #2C3E36 !important;
}

.article-text p {
    color: #2C3E36;
}

.article-text h2,
.article-text h3,
.article-text h4 {
    color: #1C2B20;
}

.tags-label {
    color: #2C3E36 !important;
    font-weight: 700;
}

/* =========================================
   18. PAGINATION
========================================= */
.pagination {
    margin-top: 3rem;
}

.pagination .page-link {
    color: #21834e !important;
    border: 1px solid #21834e !important;
    padding: 0.6rem 1rem;
    margin: 0 0.2rem;
    border-radius: 8px !important;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #fff;
    min-width: 45px;
    text-align: center;
}

.pagination .page-link:hover {
    background: #21834e !important;
    color: #FFFFFF !important;
    border-color: #21834e !important;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: #E5BA41 !important;
    border-color: #E5BA41 !important;
    color: #1C2B20 !important;
    font-weight: 700;
}

.pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    color: #ccc !important;
    border-color: #e0e0e0;
}

/* =========================================
   19. BREADCRUMB
========================================= */
.breadcrumb-item a {
    color: #21834e !important;
    font-weight: 600;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #1a6b3f !important;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #5A6B63 !important;
}

/* =========================================
   20. REVEAL ANIMATIONS
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   21. CONTENT SPACING FIX
========================================= */
#primary,
.site-main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    background: #FFFFFF !important;
}

.news-section,
.events-section,
.admission-section {
    margin-bottom: 0 !important;
}

/* =========================================
   22. RESPONSIVE DESIGN
========================================= */
@media (max-width: 1199.98px) {
    .mega-menu {
        padding: 1rem 1.25rem !important;
    }
    
    .vc-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 0.8rem 0;
    }
    
    .zoom-carousel .carousel-item {
        height: 70vh;
        min-height: 450px;
    }
    
    .vc-section,
    .admission-section,
    .news-section,
    .events-section {
        padding: 4rem 0;
    }
    
    .vc-message-col {
        padding: 2rem;
    }
    
    /* Disable hover on mobile */
    .nav-item.dropdown:hover > .mega-menu,
    .nav-item.dropdown:hover > .dropdown-menu {
        display: none !important;
    }
    
    .nav-item.dropdown:hover > .mega-menu.show,
    .nav-item.dropdown:hover > .dropdown-menu.show {
        display: block !important;
    }
    
    .mega-menu {
        position: static !important;
        box-shadow: none !important;
        border-top: none !important;
        padding: 0.75rem !important;
        background: #F5F7F5 !important;
        border-radius: 0 !important;
    }
    
    .dropdown-submenu > .dropdown-menu {
        position: static;
        margin-left: 1rem;
        box-shadow: none;
        border: none;
    }
}

@media (max-width: 767.98px) {
    .zoom-carousel .carousel-item {
        height: 60vh;
        min-height: 400px;
    }
    
    .caption-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .caption-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .footer-bottom-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal-links {
        justify-content: center;
    }
    
    .vc-section,
    .admission-section,
    .news-section,
    .events-section {
        padding: 3rem 0;
    }
    
    .post-nav-link {
        padding: 1rem;
    }
    
    .post-nav-arrow {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .post-nav-title {
        font-size: 1rem;
    }
    
    .leader-card .btn-brand {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem;
    }
    
    .leader-card .btn-outline-primary {
        width: 35px !important;
        height: 35px !important;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .top-bar .d-flex {
        font-size: 0.8rem;
    }
    
    .social-icons a {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}
/* =========================================
   MEGA MENU - TEXT WRAPPING FOR LONG LINKS
========================================= */

/* Allow mega menu links to wrap to next line */
.mega-menu .dropdown-item {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    padding: 0.6rem 1rem;
    min-height: auto;
    display: block;
    text-align: left;
}

/* Ensure column titles also wrap properly */
.mega-menu .mega-title {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    min-height: auto;
}

/* Featured block text wrapping */
.mega-menu .mega-feature h6 {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.mega-menu .mega-feature p {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

/* Ensure columns have proper width for wrapping */
.mega-menu .row > div {
    min-width: 0; /* Allows flex items to shrink and wrap */
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .mega-menu .dropdown-item {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
}
/* =========================================
   MEGA MENU - VERTICAL DIVIDERS BETWEEN COLUMNS
========================================= */

/* Add vertical line to all columns except the first one and featured block */
.mega-menu .row > div:not(:first-child):not(.mega-feature-wrapper) {
    border-left: 1px solid #E8E8E8;
    padding-left: 1.5rem;
    position: relative;
}

/* Alternative: Add line to all columns except the first */
.mega-menu .row > div:not(:first-child) {
    border-left: 1px solid #E8E8E8;
}

/* Featured block (first column) - no line on left */
.mega-menu .row > div:first-child {
    border-left: none;
}

/* Subtle gradient line effect for more elegance */
.mega-menu .row > div:not(:first-child) {
    border-left: 1px solid transparent;
    background-image: linear-gradient(to bottom, transparent 10%, #E8E8E8 10%, #E8E8E8 90%, transparent 90%);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 1px 100%;
}

/* Hide dividers on mobile */
@media (max-width: 991.98px) {
    .mega-menu .row > div:not(:first-child) {
        border-left: none !important;
        background-image: none !important;
        padding-left: 0.75rem;
    }
}

/* Hover effect - make line green when hovering over menu */
.nav-item.dropdown:hover .mega-menu .row > div:not(:first-child) {
    background-image: linear-gradient(to bottom, transparent 10%, #21834e 10%, #21834e 90%, transparent 90%);
    transition: background-image 0.3s ease;
}