/* PenAsia Custom Styles */

:root {
    --primary-color: #0066cc;
    --secondary-color: #f8f9fa;
    --accent-color: #ff6b35;
    --text-dark: #333;
    --text-light: #6c757d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Top Strip */
.top-strip {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-strip-text {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Language Switcher */
.lang-switcher {
    flex-shrink: 0;
}

.lang-btn {
    /* reset button defaults */
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    /* style */
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 3px 9px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    line-height: 1.4;
    font-family: inherit;
}

.lang-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.lang-btn-active {
    color: #1B365D;
    background: #D4AF37;
    border-color: #D4AF37;
}

.lang-btn-active:hover {
    color: #1B365D;
    background: #c9a02a;
    border-color: #c9a02a;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    user-select: none;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    height: calc(100vh - 120px);
    min-height: 500px;
}

.hero-slide {
    height: calc(100vh - 120px);
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Cards */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

/* Testimonial Cards */
.testimonial-card {
    border-left: 4px solid var(--primary-color);
}

.testimonial-card blockquote p {
    font-style: italic;
    margin-bottom: 1rem;
}

/* Statistics */
.stat-item h3 {
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Course Detail Pages */
.course-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.course-content {
    position: relative;
    z-index: 2;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Faculty Cards */
.faculty-card {
    text-align: center;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.faculty-card:hover {
    transform: translateY(-5px);
}

.faculty-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
    display: block;
}

/* Facilities Gallery */
.facility-img {
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.facility-img:hover {
    transform: scale(1.05);
}

/* News/Blog */
.news-card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-3px);
}

.news-img {
    height: 200px;
    object-fit: cover;
}

/* Footer */
footer {
    background-color: #2c3e50 !important;
}

footer h5 {
    color: #fff;
    margin-bottom: 1rem;
}

footer p, footer a {
    color: #bdc3c7;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section,
    .hero-slide {
        height: 70vh;
        min-height: 500px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section,
    .hero-slide {
        height: 60vh;
        min-height: 400px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .course-hero {
        height: 300px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states for better accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Active dropdown menu items */
.dropdown-item.active {
    background-color: #e7f3ff;
    color: #0066cc;
    font-weight: 600;
    border-left: 3px solid #0066cc;
}

.dropdown-item.active:hover {
    background-color: #cce5ff;
    color: #004999;
}

/* Print styles */
@media print {
    .navbar,
    .carousel,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}
