:root {
    --primary-color: #1e3a8a;
    --secondary-color: #f59e0b;
    --accent-color: #dc2626;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    overflow: hidden;
}

.navbar-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.navbar-brand:hover::before {
    left: 100%;
}

.navbar-nav {
    position: relative;
}

.navbar-nav::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #2563eb);
    transition: width 0.3s ease;
}

.navbar-nav:hover::before {
    width: 100%;
}

.navbar-nav .nav-item {
    position: relative;
    margin: 0 5px;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 20px !important;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    transition: left 0.4s ease;
    z-index: -1;
}

.navbar-nav .nav-link:hover::before {
    left: 0;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #2563eb);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    padding: 10px;
    margin-top: 10px;
    animation: dropdownSlide 0.3s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    border-radius: 10px;
    padding: 12px 20px;
    margin: 2px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    transition: left 0.3s ease;
    z-index: -1;
}

.dropdown-item:hover::before {
    left: 0;
}

.dropdown-item:hover {
    color: white !important;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.2);
}

/* Navbar Toggler */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: 0;
}

.navbar-toggler-icon::after {
    bottom: 0;
}

.navbar-toggler-icon {
    top: 50%;
    transform: translateY(-50%);
}

.navbar-toggler:hover .navbar-toggler-icon::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler:hover .navbar-toggler-icon::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

.navbar-toggler:hover .navbar-toggler-icon {
    background: transparent;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/IMG-20250702-WA0023.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.footer {
    background: var(--text-dark);
    color: white;
    padding: 50px 0 25px;
    min-height: 350px;
    display: flex;
    align-items: center;
}

.footer .container {
    width: 100%;
}

.footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer p {
    line-height: 1.6;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer ul {
    margin-bottom: 0;
}

.footer ul li {
    margin-bottom: 0.3rem;
}

.footer ul li a {
    transition: all 0.3s ease;
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.4;
}

.footer ul li a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    display: inline-block;
}

.social-links a:hover {
    color: var(--secondary-color);
    opacity: 1;
    transform: translateY(-3px);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 1rem 0 0rem 0;
}

.footer .row:last-child p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.stats-card {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
}

.contact-info p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Announcements Section Styles (APHC Style) */
.announcements-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem 0;
    border-bottom: 3px solid var(--primary-color);
}

.announcement-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.announcement-icon {
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.announcement-title h3 {
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

.announcement-title p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.announcement-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.announcement-scroll {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.announcement-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.announcement-item:hover {
    background-color: #f8f9fa;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-badge {
    margin-right: 1rem;
    flex-shrink: 0;
}

.announcement-content {
    flex: 1;
    margin-right: 1rem;
}

.announcement-content h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.announcement-content p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.announcement-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.announcement-meta .date {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.announcement-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.announcement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.announcement-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.announcement-controls .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom scrollbar for announcements */
.announcement-scroll::-webkit-scrollbar {
    width: 6px;
}

.announcement-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.announcement-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.announcement-scroll::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Notification Cards Styles */
.notification-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.notification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.notification-icon {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.notification-card:hover .notification-icon {
    transform: scale(1.1);
}

.notification-content h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.notification-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.notification-content .btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.notification-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

/* Image loading fallback styles */
.img-fallback {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .announcements-carousel .carousel-item .row {
        flex-direction: column;
    }
    
    .announcements-carousel .carousel-item .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .announcement-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .announcement-badge {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .announcement-content {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .announcement-image {
        align-self: flex-end;
        width: 60px;
        height: 60px;
    }
    
    .announcement-header {
        flex-direction: column;
        text-align: center;
    }
    
    .announcement-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .notification-card {
        padding: 1.5rem;
    }
    
    .notification-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .notification-content h5 {
        font-size: 1.1rem;
    }
    
    /* Footer responsive adjustments */
    .footer {
        min-height: auto;
        padding: 40px 0 20px;
    }
    
    .footer h5 {
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }
    
    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    .footer .col-lg-4:last-child {
        margin-bottom: 0;
    }
    
    .social-links {
        margin-top: 1rem;
    }
    
    .social-links a {
        font-size: 1.3rem;
        margin-right: 0.8rem;
    }
} 