/**
 * Manila Campus Website Styles
 * 
 * @author Nico Roell D. Garce
 * @title UPHSL Web Administrator 2025
 * @description Main stylesheet for Perpetual Help College of Manila website
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@600;800&family=Montserrat:wght@400;500;600;700&display=swap');

/* CSS Variables - Matching UPHSL Branding */
:root {
    --primary-color: #1c4da1;
    --secondary-color: #527bbd;
    --tertiary-color: #f8f9fa;
    --text-dark: #2a2a2a;
    --text-light: #666;
    --alt-color-1: #ffc63e;
    --alt-color-2: #e0b03c;
    --accent-color: #1c4da1;
    --bg-light: #F8F8F8;
    --white: #ffffff;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #2a2a2a;
    background-color: #F8F8F8;
    overflow-x: hidden;
    width: 100%;
    margin-top: 0;
}

/* Typography */
h1 {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
}

h2, h3, h4, h5, h6 {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    line-height: 1.4;
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.2rem);
    line-height: 1.4;
}

h5, h6 {
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    line-height: 1.5;
}

p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.6;
}

li {
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    line-height: 1.5;
}

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 8px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    min-height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: fit-content;
}

.nav-logo a {
    display: block;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    min-width: 80px;
}

.nav-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-name h1 {
    color: #ffffff;
    font-size: 24px;
    margin: 0;
    line-height: 1.2;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}

.nav-search {
    display: flex;
    align-items: center;
}

.search-container {
    position: relative;
}

.search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.search-input {
    padding: 10px 15px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    width: 250px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    padding: 10px 15px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-menu {
    display: flex;
    gap: 4px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-link.active {
    background: rgba(255, 198, 62, 0.2);
    color: var(--alt-color-1);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.desktop-chevron {
    font-size: 8px;
    margin-left: 4px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.dropdown:hover .desktop-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 280px;
    max-width: 90vw;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-x: visible;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Position dropdown from right when it's the last nav item or would overflow */
.nav-item:last-child .dropdown-menu,
.nav-item:nth-last-child(2) .dropdown-menu {
    left: auto;
    right: 0;
}

.dropdown-link {
    display: block;
    padding: 6px 0;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dropdown-link:hover {
    color: var(--primary-color);
    background: rgba(28, 77, 161, 0.05);
    border-left-color: var(--primary-color);
    padding-left: 12px;
}

.dropdown-link.active {
    background: rgba(255, 198, 62, 0.2);
    color: var(--primary-color);
    border-left-color: var(--alt-color-1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Hide mobile search bar on desktop and tablet */
.mobile-search {
    display: none;
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background: linear-gradient(135deg, #1c4da1 0%, #527bbd 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.1);
}

.mobile-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.mobile-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.mobile-site-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    font-family: 'Barlow Semi Condensed', sans-serif;
    text-transform: uppercase;
}

.mobile-sidebar-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.mobile-sidebar-search {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.mobile-search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
}

.mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.mobile-search-btn {
    padding: 12px 15px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mobile-search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile Sidebar Menu */
.mobile-sidebar-menu {
    padding: 20px 0;
}

.mobile-nav-item {
    margin-bottom: 3px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding-left: 25px;
}

.mobile-nav-link.active {
    background: rgba(255, 198, 62, 0.2);
    color: #ffc63e;
}

/* Mobile dropdown link active states */
.mobile-dropdown-link.active {
    background: rgba(255, 198, 62, 0.2);
    color: #ffc63e;
}

.mobile-submenu-link.active {
    background: rgba(255, 198, 62, 0.2);
    color: #ffc63e;
}

.mobile-dropdown-toggle i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.mobile-chevron {
    font-size: 8px;
    margin-left: 6px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.mobile-dropdown.active .mobile-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 1000px;
}

.mobile-dropdown-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
    padding: 4px 40px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mobile-dropdown-link:hover {
    color: #ffc63e;
    background: rgba(255, 198, 62, 0.1);
    border-left-color: #ffc63e;
    padding-left: 42px;
}

/* Mobile Nested Submenu Styles */
.mobile-dropdown-item-with-submenu {
    position: relative;
}

.mobile-dropdown-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-submenu-chevron {
    font-size: 8px;
    margin-left: 6px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.mobile-dropdown-item-with-submenu.active .mobile-submenu-chevron {
    transform: rotate(90deg);
    opacity: 1;
}

.mobile-submenu-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
    margin-left: 20px;
}

.mobile-dropdown-item-with-submenu.active .mobile-submenu-dropdown {
    max-height: 150px;
}

.mobile-submenu-link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
    padding: 3px 20px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mobile-submenu-link:hover {
    color: #ffc63e;
    background: rgba(255, 198, 62, 0.1);
    border-left-color: #ffc63e;
    padding-left: 22px;
}

/* Body scroll lock when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 60px);
    padding-top: 76px;
}

/* Hero Banner */
.hero-banner {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 10px;
    text-align: center;
    padding-top: 0;
}

/* Keep larger spacing for index page - hero banner followed by container */
.hero-banner + .container {
    margin-top: 20px;
}

/* Index page - hero banner has larger bottom margin when followed by container */
.hero-banner:has(+ .container) {
    margin-bottom: 30px;
}

/* Reduce spacing for program pages - hero banner followed by main-content */
.hero-banner + main.main-content {
    margin-top: 0;
    padding-top: 0;
}

/* Program pages - reduce hero banner bottom margin when followed by main-content */
main.main-content:has(.program-hero) {
    margin-top: 0;
    padding-top: 0;
}

.hero-banner a {
    display: block;
    width: 100%;
}

.hero-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.content-column {
    display: flex;
    flex-direction: column;
}

.content-column.full-width {
    grid-column: 1 / -1;
}

.content-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.content-column.full-width .content-card {
    padding: 20px;
}

.content-column.full-width .news-section {
    padding: 30px;
    margin-top: 0;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--alt-color-1);
    font-weight: 700;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--alt-color-1);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.welcome-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--alt-color-1) 0%, var(--alt-color-2) 100%);
    box-shadow: 0 2px 8px rgba(255, 198, 62, 0.3);
}

/* Welcome Hero Section */
.welcome-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 15px;
    padding: 50px 40px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.welcome-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-hero-content {
    position: relative;
    z-index: 1;
}

.welcome-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.welcome-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--alt-color-1);
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.welcome-hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.welcome-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.welcome-feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.welcome-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--alt-color-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.welcome-feature-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.welcome-feature-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

.welcome-contact {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.welcome-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.welcome-contact-item i {
    font-size: 1.3rem;
    color: var(--alt-color-1);
    width: 30px;
    text-align: center;
}

.welcome-contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.welcome-contact-item a:hover {
    color: var(--alt-color-1);
    text-decoration: underline;
}

.welcome-contact-item span {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

/* News Section */
.news-section {
    padding: 0;
    background: transparent;
    position: relative;
    overflow: visible;
    border-radius: 0;
    margin-top: 30px;
    margin-bottom: 0;
}

.section-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
}

.section-header .section-title {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header .section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--alt-color-1);
    margin: 10px auto 0;
}

.section-description {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
}

.news-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: stretch;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.news-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--alt-color-1), var(--secondary-color));
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* News Carousel */
.news-carousel-container {
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    min-height: 500px;
    width: 100%;
    max-width: 100%;
}

.news-carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.news-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.news-slide-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-slide-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.news-slide-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.6s ease;
    display: block !important;
}

/* View All Posts Button under News Slider */
.news-view-all {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.news-view-all .view-all-posts-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    /* Pure blue gradient (no near-white stop) */
    background: linear-gradient(135deg, #1c4da1 0%, #255bb8 50%, #3270d4 100%);
    color: #ffffff;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
    transition: all 0.25s ease;
}

.news-view-all .view-all-posts-btn i {
    font-size: 1rem;
}

.news-view-all .view-all-posts-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.news-view-all .social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.news-view-all .social-btn i {
    font-size: 1.3rem;
}

.news-view-all .instagram-btn {
    background: linear-gradient(135deg, #FCAF45 0%, #FD1D1D 50%, #833AB4 100%);
}

.news-view-all .instagram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(131, 58, 180, 0.4);
    background: linear-gradient(135deg, #ffc857 0%, #ff3333 50%, #9d4edd 100%);
}

.news-view-all .tiktok-btn {
    background: #000000;
}

.news-view-all .tiktok-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: #1a1a1a;
}

@media (max-width: 768px) {
    .news-view-all {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-view-all .view-all-posts-btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
    
    .news-view-all .social-btn {
        width: 50px;
        height: 50px;
    }
}

.news-slide:hover .news-slide-image img {
    transform: scale(1.05);
}

.news-slide:hover .news-slide-meta {
    opacity: 0.7;
    transform: translateY(-5px);
}

.news-slide-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    border-radius: 12px;
    min-height: 500px;
}

.news-slide-placeholder i {
    margin-bottom: 1rem;
}

.news-slide-placeholder p {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Barlow Semi Condensed', sans-serif;
}

.news-slide-meta {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    z-index: 3;
    transition: all 0.3s ease;
}

.news-slide-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-slide-meta i {
    color: var(--alt-color-1);
}

.news-slide-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-slide-title-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 18px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    z-index: 3;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    max-width: 60%;
    display: block;
}

.news-slide-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-slide-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-slide-title a:hover {
    color: var(--alt-color-1);
}

.news-slide:hover .news-slide-title-overlay {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-nav i {
    color: var(--primary-color);
    font-size: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
}

/* Accordion */
.accordion-container {
    display: flex;
    flex-direction: column;
}

.accordion {
    background-color: var(--alt-color-1);
    color: var(--primary-color);
    cursor: pointer;
    padding: 15px 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin-bottom: 5px;
    font-family: 'Barlow Semi Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.accordion:hover,
.accordion.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.accordion-panel {
    padding: 0 20px;
    background-color: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    border-radius: 0 0 5px 5px;
}

.accordion-panel.active,
.accordion.active + .accordion-panel {
    padding: 20px;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 15px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Program List */
.program-list,
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-list li,
.service-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    color: var(--text-dark);
    font-size: 14px;
}

.program-list li:last-child,
.service-list li:last-child {
    border-bottom: none;
}

.service-list a {
    color: var(--primary-color);
    font-weight: 500;
}

.service-list a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Page Content Styles */
.page-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--alt-color-1);
    text-align: center;
}

.about-content,
.admission-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.about-section,
.admission-section {
    margin-bottom: 30px;
}

.about-section h2,
.admission-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 30px;
}

.about-section h3,
.admission-section h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.steps-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.steps-list {
    margin: 0;
    padding-left: 20px;
}

.steps-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.steps-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.steps-list a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.admission-banner {
    text-align: center;
    margin: 20px 0;
}

.admission-content ul,
.admission-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.admission-content ul li,
.admission-content ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Page Content Styles */
.page-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--alt-color-1);
    text-align: center;
}

.about-content,
.admission-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.about-section,
.admission-section {
    margin-bottom: 30px;
}

.about-section h2,
.admission-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 30px;
}

.about-section h3,
.admission-section h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.steps-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.steps-list {
    margin: 0;
    padding-left: 20px;
}

.steps-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.steps-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.steps-list a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.admission-banner {
    text-align: center;
    margin: 20px 0;
}

.admission-content ul,
.admission-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.admission-content ul li,
.admission-content ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.library-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.library-info,
.library-welcome,
.library-features {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.library-info h2,
.library-info h3,
.library-welcome h2,
.library-features h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.library-info h3 {
    font-size: 1.1rem;
    margin-top: 20px;
}

.library-info a,
.library-welcome a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.library-info a:hover,
.library-welcome a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--alt-color-1);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-section a {
    color: var(--white);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--alt-color-1);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Footer Brand Section */
.footer-brand-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
    border-radius: 50%;
}

.footer-brand-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-site-name {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    font-family: 'Barlow Semi Condensed', sans-serif;
    line-height: 1.3;
}

.footer-tagline {
    color: var(--alt-color-1);
    font-size: 1rem;
    font-style: italic;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}


.footer-meta {
    text-align: center;
    width: 100%;
}

.footer-meta p {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-bottom strong {
    color: var(--alt-color-1);
}

.footer-link {
    color: var(--alt-color-1);
    font-weight: 600;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Footer Social Media Buttons */
.footer-social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(173, 216, 230, 0.6);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    font-size: 1rem;
}

.footer-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
}

.copyright {
    margin-top: 15px;
    font-size: 12px;
    opacity: 0.8;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 10000;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop i {
    font-size: 16px;
}

#backToTop:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Floating Action Buttons (FAB) */
.fab-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10000;
}

.fab-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-btn i {
    font-size: 16px;
    color: var(--white) !important;
}

.fab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    color: var(--white) !important;
}

.fab-btn:hover i {
    color: var(--white) !important;
}

.fab-dashboard {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.fab-dashboard:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
}

.fab-logout {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.fab-logout:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
}

@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        left: 15px;
    }
    
    .fab-btn {
        width: 40px;
        height: 40px;
    }
    
    .fab-btn i {
        font-size: 14px;
    }
}

/* Large Desktop Navigation Styles */
@media (min-width: 1200px) {
    .nav-menu {
        gap: 6px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 8px 6px;
    }
}

/* Desktop Navigation Styles */
@media (max-width: 1199px) and (min-width: 1100px) {
    .nav-menu {
        gap: 5px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 7px 5px;
    }
}

/* Medium Desktop Navigation Styles */
@media (max-width: 1099px) and (min-width: 1000px) {
    .nav-menu {
        gap: 4px;
    }
    
    .nav-link {
        font-size: 11px;
        padding: 6px 4px;
    }
}

/* Small Desktop Navigation Styles */
@media (max-width: 999px) and (min-width: 900px) {
    .nav-menu {
        gap: 3px;
    }
    
    .nav-link {
        font-size: 10px;
        padding: 5px 3px;
    }
}

/* Extra Small Desktop Navigation Styles */
@media (max-width: 899px) and (min-width: 800px) {
    .nav-menu {
        gap: 2px;
    }
    
    .nav-link {
        font-size: 9px;
        padding: 4px 2px;
    }
}

/* Very Small Desktop Navigation Styles */
@media (max-width: 799px) and (min-width: 769px) {
    .nav-menu {
        gap: 1px;
    }
    
    .nav-link {
        font-size: 8px;
        padding: 3px 1px;
    }
}

/* Tablet Navigation Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-container {
        grid-template-columns: auto 1fr auto;
        gap: 15px;
        padding: 10px 20px;
        align-items: center;
    }
    
    .nav-logo .logo-img {
        height: 50px;
        min-width: 50px;
    }
    
    .nav-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }
    
    .nav-menu {
        gap: 2px;
    }
    
    .nav-link {
        font-size: 7px;
        padding: 2px 1px;
    }
    
    .nav-header {
        display: flex;
        align-items: center;
        gap: 15px;
        flex: 1;
    }
    
    .site-name h1 {
        font-size: 16px;
        line-height: 1.2;
        white-space: nowrap;
    }
    
    .search-input {
        width: 180px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    .nav-menu {
        display: none;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    body {
        margin-top: 0;
    }
    
    .navbar {
        position: relative;
        top: 0;
    }
    
    .nav-container {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        padding: 10px 15px;
        min-height: 60px;
        align-items: center;
    }
    
    .nav-logo {
        order: 1;
        flex-shrink: 0;
    }
    
    .nav-logo .logo-img {
        height: 45px;
        width: auto;
        min-width: 45px;
    }
    
    .nav-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
        order: 2;
        flex: 1;
        min-width: 0;
    }
    
    .nav-header {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
    }
    
    .nav-menu {
        display: none;
    }
    
    /* Hide desktop search bar on mobile */
    .nav-header .nav-search {
        display: none;
    }
    
    /* Show mobile search bar in the middle */
    .mobile-search {
        display: flex !important;
        order: 1;
        flex: 1;
        max-width: 100%;
        min-width: 0;
        width: 100%;
        justify-content: stretch;
    }
    
    .mobile-search .search-container {
        width: 100%;
        flex: 1;
        min-width: 0;
    }
    
    .search-form {
        display: flex;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 25px;
        overflow: hidden;
        backdrop-filter: blur(10px);
    }
    
    .search-input {
        flex: 1;
        width: 100%;
        font-size: 14px;
        padding: 10px 15px;
        height: 40px;
        border: none;
        background: transparent;
        color: #ffffff;
        outline: none;
        transition: all 0.3s ease;
    }
    
    .search-input::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .search-input:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.1);
    }
    
    .search-btn {
        padding: 10px 15px;
        height: 40px;
        border: none;
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
        cursor: pointer;
        transition: background 0.3s ease;
        border-radius: 0 25px 25px 0;
    }
    
    .search-btn:hover {
        background: rgba(255, 255, 255, 0.3);
    }
    
    .navbar {
        position: relative;
    }
    
    .nav-container {
        position: relative;
    }
    
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .news-layout {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .news-carousel {
        height: 0;
        padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
    }
    
    .news-carousel-container {
        min-height: auto;
    }
    
    .news-slide {
        min-height: auto;
    }
    
    .news-slide-meta {
        bottom: 12px;
        left: 12px;
        font-size: 0.8rem;
        padding: 8px 12px;
        gap: 15px;
    }
    
    .news-slide-title-overlay {
        bottom: 12px;
        right: 12px;
        font-size: 0.9rem;
        padding: 8px 12px;
        max-width: 55%;
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .section-header {
        padding: 1.5rem;
    }
    
    .section-header .section-title {
        font-size: 1.2rem;
    }
    
    .section-description {
        font-size: 0.8rem;
    }
    
    .welcome-title {
        font-size: 2rem;
        letter-spacing: 1.5px;
    }
    
    .welcome-hero {
        padding: 40px 30px;
    }
    
    .welcome-hero-title {
        font-size: 2.2rem;
    }
    
    .welcome-hero-subtitle {
        font-size: 1.3rem;
    }
    
    .welcome-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .welcome-contact {
        flex-direction: column;
        gap: 20px;
    }
    
    .image-hover-container {
        max-width: 150px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-content {
        padding-top: 0;
    }
    
    .hero-banner {
        margin-bottom: 20px;
    }
}

/* Small Mobile Navigation Styles */
@media (max-width: 480px) {
    .nav-container {
        padding: 8px 10px;
        gap: 10px;
        min-height: 55px;
    }
    
    .nav-logo .logo-img {
        height: 40px;
        min-width: 40px;
    }
    
    .mobile-search {
        max-width: 100%;
        width: 100%;
    }
    
    .mobile-search .search-container {
        width: 100%;
        flex: 1;
        min-width: 0;
    }
    
    .search-input {
        font-size: 13px;
        padding: 8px 12px;
        height: 36px;
        outline: none;
        transition: all 0.3s ease;
    }
    
    .search-input:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.1);
    }
    
    .search-btn {
        padding: 8px 12px;
        height: 36px;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    .mobile-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .mobile-sidebar.active {
        right: 0;
    }
}

/* Facebook Feed */
.facebook-feed {
    background: linear-gradient(135deg, rgba(28, 77, 161, 0.05) 0%, rgba(82, 123, 189, 0.05) 100%);
    border: 1px solid rgba(28, 77, 161, 0.1);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.facebook-header {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: #fff;
    padding: 20px 25px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.facebook-header:hover {
    background: linear-gradient(135deg, #166fe5, #3a94f0);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
    color: #fff;
    text-decoration: none;
}

.facebook-header:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
    color: #fff;
    text-decoration: none;
}

.facebook-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.facebook-title i {
    font-size: 1.8rem;
}

.facebook-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.facebook-embed {
    padding: 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 20px 20px;
    flex: 1;
    background: white;
}

/* Ensure FB widget doesn't overflow container */
.facebook-embed .fb-page,
.facebook-embed .fb-page > span,
.facebook-embed .fb-page iframe {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 1024px) {
    .facebook-header {
        padding: 18px 22px;
    }
    
    .facebook-title {
        font-size: 1.3rem;
    }
    
    .facebook-title i {
        font-size: 1.6rem;
    }
    
    .facebook-subtitle {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .facebook-header {
        padding: 16px 20px;
    }
    
    .facebook-title {
        font-size: 1.2rem;
    }
    
    .facebook-title i {
        font-size: 1.4rem;
    }
    
    .facebook-subtitle {
        font-size: 0.8rem;
    }
    
    .facebook-embed {
        padding: 15px;
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .facebook-header {
        padding: 14px 18px;
    }
    
    .facebook-title {
        font-size: 1.1rem;
    }
    
    .facebook-title i {
        font-size: 1.3rem;
    }
    
    .facebook-subtitle {
        font-size: 0.75rem;
    }
    
    .facebook-embed {
        padding: 10px;
        min-height: 300px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .content-card {
        padding: 15px;
    }
    
    .welcome-hero {
        padding: 30px 20px;
    }
    
    .welcome-hero-title {
        font-size: 1.8rem;
    }
    
    .welcome-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .welcome-hero-description {
        font-size: 1rem;
    }
    
    .welcome-feature-item {
        padding: 20px;
    }
    
    .welcome-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .welcome-feature-content h3 {
        font-size: 1.1rem;
    }
    
    .welcome-feature-content p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .welcome-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    
    .news-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-carousel-container {
        order: 1;
    }
    
    .facebook-feed {
        order: 2;
    }
    
    .news-carousel {
        height: 0;
        padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
    }
    
    .news-carousel-container {
        min-height: auto;
    }
    
    .news-slide {
        min-height: auto;
    }
    
    .news-slide-meta {
        bottom: 10px;
        left: 10px;
        font-size: 0.7rem;
        padding: 8px 12px;
        gap: 8px;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 6px;
        z-index: 4;
    }
    
    .news-slide-title-overlay {
        bottom: 10px;
        right: 10px;
        font-size: 0.85rem;
        padding: 6px 10px;
        max-width: 50%;
    }
    
    .news-slide-title {
        font-size: 0.85rem;
        font-weight: 600;
        line-height: 1.1;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .section-header {
        padding: 1.2rem;
    }
    
    .section-header .section-title {
        font-size: 1.1rem;
    }
    
    .section-description {
        font-size: 0.75rem;
    }
    
    .campus-links {
        gap: 5px;
    }
    
    .campus-link {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* Program Page Styles */
.program-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0;
}

.program-hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.program-hero .program-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 20px;
}

.program-hero .program-contact {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.program-hero .program-contact p {
    margin: 0;
    font-size: 0.95rem;
}

.program-intro {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    text-align: center;
    border-left: 5px solid var(--alt-color-1);
}

.program-intro h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.program-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.program-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.program-feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.program-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.program-feature-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--alt-color-1);
}

.program-feature-card p {
    line-height: 1.7;
    color: var(--text-dark);
}

.program-image-section {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.program-image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.program-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.program-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.program-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.program-highlight-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
}

.program-highlight-box h2 {
    color: white;
    margin-bottom: 15px;
}

.program-highlight-box p {
    color: rgba(255,255,255,0.95);
    font-size: 1.1rem;
    line-height: 1.8;
}

.program-alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.program-alumni-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.program-alumni-item:hover {
    transform: scale(1.05);
}

.program-alumni-item img {
    width: 100%;
    height: auto;
    display: block;
}

.program-opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.program-opportunities-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.program-opportunities-grid img:hover {
    transform: scale(1.05);
}

.program-section-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 8px 8px 0 0;
    margin: 40px 0 0 0;
}

.program-section-header h2 {
    color: white;
    margin: 0;
    font-size: 1.6rem;
}

.program-content-box {
    background: white;
    padding: 30px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.program-track-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border-left: 5px solid var(--alt-color-1);
    transition: transform 0.3s ease;
}

.program-track-card:hover {
    transform: translateX(5px);
}

.program-track-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--alt-color-1);
}

@media (max-width: 768px) {
    .program-hero h1 {
        font-size: 2rem;
    }
    
    .program-hero .program-contact {
        flex-direction: column;
        gap: 10px;
    }
    
    .program-grid-2col,
    .program-grid-3col,
    .program-grid-4col {
        grid-template-columns: 1fr;
    }
    
    .program-intro {
        padding: 25px;
    }
}

/* Search Dropdown Styles */
.search-container {
    position: relative;
}

.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.search-results {
    padding: 10px;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.search-loading i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s ease;
    gap: 12px;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.search-result-icon i {
    font-size: 0.9rem;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.search-result-category {
    color: var(--primary-color);
    font-weight: 500;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Mobile search dropdown */
.mobile-search .search-dropdown {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 50vh;
    border-radius: 15px 15px 0 0;
    margin-top: 0;
}

@media (max-width: 768px) {
    .search-dropdown {
        max-height: 300px;
    }
}

