/*
Theme Name: University Theme
Theme URI: 
Author: Developer
Description: A modern college/university WordPress theme with Tailwind CSS and custom CSS styling.
Version: 1.0.0
Text Domain: university-theme
*/

/* ===== DIAGONAL STRIPE BORDER (Removed in favor of image patterns) ===== */

/* ===== LIVE CLOCK ===== */
.clock-container {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: #fff;
}

/* ===== NEWS TICKER ===== */
.ticker-wrap {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.ticker {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker:hover, .ticker.paused {
    animation-play-state: paused;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
}
.hero-content {
    position: relative;
    z-index: 10;
}
.hero-slide-animation {
    animation: slideUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ANIMATED COUNTERS ===== */
.stat-counter.animate .counter-number {
    font-weight: bold;
}

/* ===== CARD HOVER EFFECTS ===== */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SECTION PATTERNS ===== */
.wavy-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.wavy-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

/* ===== TESTIMONIAL CAROUSEL ===== */
.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 1.5rem;
    padding-bottom: 1rem;
}
.testimonial-slider::-webkit-scrollbar {
    display: none;
}
.testimonial-item {
    scroll-snap-align: start;
    min-width: 100%;
}
@media (min-width: 768px) {
    .testimonial-item {
        min-width: calc(50% - 0.75rem);
    }
}
@media (min-width: 1024px) {
    .testimonial-item {
        min-width: calc(33.333% - 1rem);
    }
}

/* ===== GALLERY LIGHTBOX ===== */
.lightbox-overlay {
    position: relative;
    overflow: hidden;
}
.lightbox-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(30, 58, 95, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox-overlay:hover::after {
    opacity: 1;
}
.lightbox-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox-overlay:hover .lightbox-content {
    opacity: 1;
}

/* ===== RESPONSIVE OVERRIDES ===== */
@media (max-width: 1024px) {
    /* Mobile nav overrides */
    #desktop-nav {
        display: none;
    }
}

/* ===== FOOTER ===== */
.footer-gradient {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
}
.footer-link {
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-link:hover {
    color: #d4a843;
    padding-left: 0.5rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #d4a843;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 50;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-3px);
    background-color: #b08d35;
}

/* ===== NOTICE PRIORITY BADGES ===== */
.priority-high {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}
.priority-medium {
    background-color: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}
.priority-low {
    background-color: #d1fae5;
    color: #047857;
    border: 1px solid #6ee7b7;
}

/* ===== PAGE BANNER ===== */
.page-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 6rem 0 4rem;
}
.page-banner-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(30, 58, 95, 0.85);
}

/* ===== PATTERN BANNER RESPONSIVE FIX ===== */
.pattern-banner {
    background-size: cover !important;
    background-position: center !important;
}
@media (min-width: 1024px) {
    .pattern-banner {
        background-size: 100% 100% !important;
    }
}


/* ===== PREMIUM NAVIGATION MENU ===== */
.nav-menu .sub-menu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0,0,0,0.05);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    border-top: 3px solid #d4a843;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-menu li:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.nav-menu li {
    position: relative;
}
.nav-menu .sub-menu li {
    display: block;
    width: 100%;
    position: relative;
}
.nav-menu .sub-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}
.nav-menu .sub-menu a:hover {
    background-color: #f9fafb;
    color: #881337;
    border-left-color: #d4a843;
    padding-left: 1.5rem;
}

/* Infinite Sub-menu Levels */
.nav-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 5px;
    border-top: none;
    border-left: 3px solid #d4a843;
    transform: translateX(10px) translateY(0);
}
.nav-menu li:hover > .sub-menu .sub-menu {
    visibility: hidden;
    opacity: 0;
    transform: translateX(10px) translateY(0);
}
.nav-menu .sub-menu li:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Active Highlight */
.nav-menu li.current-menu-item > a,
.nav-menu li.current-menu-ancestor > a {
    color: #fde047 !important;
}
.nav-menu .sub-menu li.current-menu-item > a,
.nav-menu .sub-menu li.current-menu-ancestor > a {
    color: #881337 !important;
    background-color: #fdf2f8;
    border-left-color: #881337;
    font-weight: 600;
}

/* Top Level Hover Effects */
.nav-menu > li > a {
    position: relative;
}
.nav-menu > li > a::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: #d4a843;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.nav-menu > li:hover > a::after,
.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile Menu Collapsible Styling */
#mobile-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
#mobile-nav a:hover {
    color: #fde047;
    background: rgba(255,255,255,0.05);
}
#mobile-nav .menu-item-has-children {
    position: relative;
}
#mobile-nav .sub-menu {
    display: none;
    padding-left: 0;
    background: rgba(0,0,0,0.15);
    border-left: none;
    margin: 0;
}
#mobile-nav .sub-menu a {
    font-size: 0.9rem;
    padding-left: 2rem !important;
    color: #f3f4f6;
}
#mobile-nav .sub-menu .sub-menu a {
    padding-left: 3rem !important;
}
#mobile-nav .sub-menu.active {
    display: block;
    animation: slideDown 0.3s ease forwards;
}
#mobile-nav li.current-menu-item > a {
    color: #fde047;
    font-weight: 700;
    background: rgba(0,0,0,0.1);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
    to { opacity: 1; transform: translateY(0); }
}



