/* 
 * UCA Custom Smooth CSS
 * Modern, smooth and professional design enhancements
 */

/* ========================================
   SMOOTH SCROLLING & GENERAL IMPROVEMENTS
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    /* Modern system font stack - used by top websites */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 
                 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 
                 Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !important;
    background-color: #f8f9fa;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1;
    font-kerning: normal;
}

/* ========================================
   MODERN TYPOGRAPHY - POPULAR FONTS
   ======================================== */

/* Headings - Use Poppins (modern, popular) */
h1, h2, h3, h4, h5, h6,
.navbar-brand,
.courses-header,
.section-title,
.news-section h1 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Body text - Use Inter (clean, modern) */
p, li, span, div {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Buttons & Nav - Use Roboto (Google's favorite) */
.btn, .nav-link, .dropdown-item {
    font-family: 'Roboto', -apple-system, 'Segoe UI', sans-serif !important;
    font-weight: 500;
}

/* Special text - Headings gradient */
.gradient-text,
.courses-header,
.news-section h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* Improve readability */
p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.4;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h5 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

/* ========================================
   SMOOTH ANIMATIONS & TRANSITIONS
   ======================================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply fade-in animation to sections */
section {
    animation: fadeIn 0.6s ease-in-out;
}

/* ========================================
   IMPROVED NAVIGATION BAR
   ======================================== */

.navbar-elixir {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.navbar-elixir:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    font-weight: 600 !important;
    color: #294a70 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1a73e8, #294a70);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link:focus::before {
    width: 80%;
}

.nav-link:hover {
    color: #1a73e8 !important;
    transform: translateY(-2px);
}

.dropdown-menu {
    border: none;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.75rem !important;
    margin-top: 0.5rem !important;
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: 8px !important;
    padding: 10px 15px !important;
    margin: 2px 0 !important;
    transition: all 0.3s ease !important;
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #118C2E, #0ea025) !important;
    color: white !important;
    transform: translateX(5px);
    padding-left: 20px !important;
}

/* ========================================
   TOP BAR IMPROVEMENTS
   ======================================== */

.bg-primary {
    background: linear-gradient(135deg, #294a70, #1a73e8) !important;
}

/* ========================================
   MARQUEE IMPROVEMENTS
   ======================================== */

.marquee {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border-top: 3px solid #ffc107;
    border-bottom: 3px solid #ffc107;
    padding: 15px 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ========================================
   HERO SLIDER IMPROVEMENTS
   ======================================== */

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: background 0.5s ease;
}

.swiper-slide:hover::before {
    background: rgba(0, 0, 0, 0.1);
}

.swiper-slide .container {
    position: relative;
    z-index: 2;
}

.swiper-button-prev,
.swiper-button-next {
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   NEWS SECTION IMPROVEMENTS
   ======================================== */

.news-section {
    animation: fadeInUp 0.8s ease;
}

.news-section h1 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.news-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #1a73e8, #294a70);
    border-radius: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scaleX(1); }
    50% { opacity: 0.7; transform: translateX(-50%) scaleX(0.9); }
}

.news-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 115, 232, 0.1), transparent);
    transition: left 0.5s ease;
}

.news-item:hover::before {
    left: 100%;
}

.news-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(26, 115, 232, 0.25) !important;
}

/* ========================================
   COURSE CARDS IMPROVEMENTS
   ======================================== */

.courses-header {
    animation: fadeInUp 0.8s ease;
    position: relative;
    display: inline-block;
    width: 100%;
}

.filter-buttons {
    animation: fadeIn 1s ease;
}

.filter-buttons .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-width: 2px;
    font-weight: 600;
}

.filter-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.filter-buttons .btn.active {
    background: linear-gradient(135deg, #294a70, #1a73e8);
    color: white;
    border-color: #294a70;
    transform: scale(1.05);
}

.course-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.course-card:hover::before {
    opacity: 1;
}

.course-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 15px 40px rgba(11, 61, 145, 0.2) !important;
}

.course-title {
    transition: color 0.3s ease;
}

.course-card:hover .course-title {
    color: #1a73e8 !important;
}

.course-card:hover .icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========================================
   PRINCIPAL SECTION IMPROVEMENTS
   ======================================== */

.principal-section {
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease;
}

.principal-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

.img-rounded-custom {
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.img-rounded-custom:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

/* ========================================
   QUICK LINKS IMPROVEMENTS
   ======================================== */

.quick-links {
    animation: fadeInUp 1.2s ease;
}

.quick-link {
    position: relative;
    overflow: hidden;
}

.quick-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.quick-link:hover::before {
    width: 300px;
    height: 300px;
}

.quick-link i {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.quick-link:hover i {
    transform: scale(1.3) rotate(360deg);
}

.quick-link span {
    position: relative;
    z-index: 1;
}

/* ========================================
   VIDEO SECTION IMPROVEMENTS
   ======================================== */

iframe {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

iframe:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: scale(1.01);
}

/* ========================================
   FOOTER IMPROVEMENTS
   ======================================== */

.footer-section {
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #ff9800, #ffc107);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.footer-section input[type="email"] {
    transition: all 0.3s ease;
}

.footer-section input[type="email"]:focus {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.3);
}

.footer-section button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(248, 211, 50, 0.4);
}

.footer-section a {
    transition: all 0.3s ease;
    position: relative;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffc107;
    transition: width 0.3s ease;
}

.footer-section a:hover::after {
    width: 100%;
}

/* Social icons enhancement */
.footer-section .fa,
.footer-section .fab,
.footer-section .fas {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.footer-section .d-flex.align-items-center:hover .fa,
.footer-section .d-flex.align-items-center:hover .fab,
.footer-section .d-flex.align-items-center:hover .fas {
    transform: rotate(360deg) scale(1.3);
    color: #ffc107;
}

/* ========================================
   COPYRIGHT FOOTER IMPROVEMENTS
   ======================================== */

footer {
    transition: all 0.3s ease;
}

footer:hover {
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08);
}

footer img {
    transition: all 0.3s ease;
}

footer img:hover {
    transform: scale(1.1) rotate(3deg);
}

/* ========================================
   STICKY ADMISSION BAR IMPROVEMENTS
   ======================================== */

.fixed-bottom {
    background: linear-gradient(90deg, #ff4e50, #f9d423, #ff4e50);
    background-size: 200% 100%;
    animation: gradientMove 5s ease infinite;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.fixed-bottom a {
    transition: all 0.3s ease;
}

.fixed-bottom a:hover {
    background: rgba(255, 255, 255, 0.15);
    letter-spacing: 1px;
}

/* ========================================
   BUTTONS GLOBAL IMPROVEMENTS
   ======================================== */

.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #294a70, #1a73e8);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a73e8, #0b3d91);
}

/* ========================================
   CARDS GLOBAL IMPROVEMENTS
   ======================================== */

.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* ========================================
   IMAGES IMPROVEMENTS
   ======================================== */

img {
    transition: all 0.4s ease;
}

img:hover {
    filter: brightness(1.05);
}

/* ========================================
   FORM IMPROVEMENTS
   ======================================== */

.form-control,
.form-select {
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.form-control:focus,
.form-select:focus {
    border-color: #294a70;
    box-shadow: 0 0 0 0.25rem rgba(41, 74, 112, 0.15);
    transform: scale(1.01);
}

/* ========================================
   LOADING ANIMATION
   ======================================== */

@keyframes pageLoad {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: pageLoad 0.5s ease;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   SMOOTH SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #294a70, #1a73e8);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1a73e8, #0b3d91);
}

/* ========================================
   ANNOUNCEMENT CARD IMPROVEMENTS
   ======================================== */

.announcement {
    animation: slideInRight 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.announcement::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.announcement:hover::before {
    opacity: 1;
}

/* ========================================
   SMOOTH HOVER EFFECTS FOR ALL LINKS
   ======================================== */

a {
    transition: all 0.3s ease;
}

a:not(.btn):hover {
    text-decoration: none;
    filter: brightness(1.1);
}

/* ========================================
   RESPONSIVE IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
    .nav-link {
        padding: 10px 15px;
    }
    
    .news-section h1 {
        font-size: 2rem;
    }
    
    .courses-header {
        font-size: 1.8rem;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

* {
    will-change: auto;
}

.card:hover,
.course-card:hover,
.news-item:hover,
.quick-link:hover {
    will-change: transform;
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

:focus-visible {
    outline: 3px solid #1a73e8;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   SMOOTH PAGE TRANSITIONS
   ======================================== */

.page-transition {
    animation: fadeIn 0.5s ease;
}

/* ========================================
   GLASS MORPHISM EFFECTS
   ======================================== */

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ========================================
   FLOATING ANIMATIONS
   ======================================== */

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* ========================================
   TEXT GRADIENT EFFECTS
   ======================================== */

.gradient-text {
    background: linear-gradient(135deg, #294a70, #1a73e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   SHADOW IMPROVEMENTS
   ======================================== */

.shadow-smooth {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.shadow-smooth:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* ========================================
   ADDITIONAL FONT IMPROVEMENTS
   ======================================== */

/* Marquee text - Clear and readable */
.marquee {
    font-family: 'Roboto', -apple-system, 'Segoe UI', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
}

/* Course titles - Bold and modern */
.course-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Course descriptions - Clean and readable */
.course-description {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

/* News items - Professional */
.news-item a {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 600;
    letter-spacing: 0;
}

/* Principal message - Elegant */
.section-text {
    font-family: 'Inter', 'Georgia', serif;
    font-size: 17px;
    line-height: 1.8;
}

/* Footer - Modern sans-serif */
.footer-section {
    font-family: 'Roboto', -apple-system, sans-serif;
}

.footer-section h4,
.footer-section h5 {
    font-family: 'Poppins', sans-serif !important;
}

/* Quick links - Bold and clear */
.quick-link span {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
}

/* Announcement card - Modern */
.announcement-title h5 {
    font-family: 'Poppins', sans-serif !important;
}

.announcement-text p {
    font-family: 'Inter', sans-serif;
}

/* Improve button text */
.btn {
    font-family: 'Roboto', -apple-system, sans-serif !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
}

/* Form labels - Clear */
label {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

/* Breadcrumb - Clean */
.breadcrumb {
    font-family: 'Roboto', sans-serif;
}

/* Badge text */
.badge {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Table headers */
th {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 600;
}

/* ========================================
   FONT OPTIMIZATION FOR PERFORMANCE
   ======================================== */

/* Font display swap for better loading */
@font-face {
    font-display: swap;
}

/* Optimize font rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */

.whatsapp-float {
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float i {
    animation: shake 1s ease-in-out infinite;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7);
    }
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* ========================================
   QUICK APPLY FLOATING BUTTON
   ======================================== */

.apply-float {
    position: fixed;
    bottom: 170px;
    left: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(238, 90, 111, 0.4);
    z-index: 9998;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
    animation: bounce-apply 2s infinite;
}

.apply-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(238, 90, 111, 0.6);
    color: white;
    gap: 15px;
}

.apply-float i {
    font-size: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes bounce-apply {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Mobile adjustments for floating buttons */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 80px;
        left: 15px;
    }
    
    .apply-float {
        bottom: 140px;
        left: 15px;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .apply-float span {
        display: none;
    }
    
    .apply-float i {
        font-size: 18px;
        margin: 0;
    }
}

/* ========================================
   QUICK STATS SECTION
   ======================================== */

.stats-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23294a70" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
    background-size: cover;
    opacity: 0.3;
}

.stat-box {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-box:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 50px rgba(41, 74, 112, 0.15);
}

.stat-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #294a70, #1a73e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.stat-box:hover .stat-icon {
    transform: scale(1.2) rotate(360deg);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #294a70;
    margin: 0.5rem 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #294a70, #1a73e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 600;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials-section {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    position: relative;
}

.section-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: #294a70;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-heading::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #1a73e8, #294a70);
    margin: 15px auto 0;
    border-radius: 2px;
    animation: pulse 2s infinite;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    color: rgba(26, 115, 232, 0.05);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(41, 74, 112, 0.15);
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.stars i {
    margin: 0 2px;
    animation: star-twinkle 1.5s ease-in-out infinite;
}

.stars i:nth-child(1) { animation-delay: 0s; }
.stars i:nth-child(2) { animation-delay: 0.1s; }
.stars i:nth-child(3) { animation-delay: 0.2s; }
.stars i:nth-child(4) { animation-delay: 0.3s; }
.stars i:nth-child(5) { animation-delay: 0.4s; }

@keyframes star-twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1a73e8;
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-author img {
    transform: scale(1.1) rotate(5deg);
    border-color: #294a70;
}

.testimonial-author h6 {
    font-weight: 700;
    color: #294a70;
    margin-bottom: 0.25rem;
}

.testimonial-author small {
    color: #6c757d;
    font-weight: 500;
}

/* ========================================
   ANNOUNCEMENT POPUP
   ======================================== */

.announcement-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.announcement-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 25px;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
}

.announcement-popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    border: none;
    font-size: 28px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.popup-close:hover {
    background: #ff4757;
    color: white;
    transform: rotate(90deg);
}

.popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #294a70, #1a73e8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce-in 0.6s ease;
}

.popup-icon i {
    font-size: 2.5rem;
    color: white;
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20% { transform: rotate(10deg); }
}

@keyframes bounce-in {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.popup-content h3 {
    color: #294a70;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.popup-content p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.popup-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 10px;
}

@media (max-width: 576px) {
    .popup-content {
        padding: 2rem 1.5rem;
    }
    
    .popup-content h3 {
        font-size: 1.5rem;
    }
    
    .popup-content p {
        font-size: 1rem;
    }
}

/* ========================================
   DARK MODE STYLES
   ======================================== */

body.dark-mode {
    background-color: #1a1a2e;
    color: #e9ecef;
}

.dark-mode .navbar-elixir {
    background: rgba(26, 26, 46, 0.98) !important;
}

.dark-mode .nav-link {
    color: #e9ecef !important;
}

.dark-mode .dropdown-menu {
    background: #16213e;
    color: #e9ecef;
}

.dark-mode .dropdown-item {
    color: #e9ecef;
}

.dark-mode .dropdown-item:hover {
    background: linear-gradient(135deg, #118C2E, #0ea025) !important;
}

.dark-mode .bg-primary {
    background: linear-gradient(135deg, #16213e, #0f3460) !important;
}

.dark-mode .news-section,
.dark-mode .course-card,
.dark-mode .stat-box,
.dark-mode .testimonial-card,
.dark-mode .principal-section,
.dark-mode .quick-link,
.dark-mode .card {
    background: #16213e !important;
    color: #e9ecef;
}

.dark-mode .news-item {
    background: #0f3460 !important;
}

.dark-mode .news-item a,
.dark-mode .course-title,
.dark-mode .stat-label,
.dark-mode .section-title,
.dark-mode h1, .dark-mode h2, .dark-mode h3,
.dark-mode h4, .dark-mode h5, .dark-mode h6 {
    color: #e9ecef !important;
}

.dark-mode .course-description,
.dark-mode .testimonial-text,
.dark-mode .section-text,
.dark-mode p {
    color: #adb5bd !important;
}

.dark-mode .footer-section {
    background-color: #0f0f23 !important;
}

.dark-mode footer {
    background-color: #16213e !important;
    color: #e9ecef;
    border-top-color: #0f3460;
}

.dark-mode .announcement {
    background: #16213e !important;
    border-color: #1a73e8;
}

.dark-mode .stats-section {
    background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
}

/* Dark mode transition */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.accordion {
    border: none !important;
}

.accordion-item {
    border: none;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(41, 74, 112, 0.15);
}

.accordion-button {
    background: white;
    color: #294a70;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.5rem 2rem;
    border: none;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #294a70, #1a73e8);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    border: none;
    box-shadow: none;
}

.accordion-button::after {
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    padding: 1.5rem 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    background: white;
}

.accordion-body a {
    color: #1a73e8;
    font-weight: 600;
    text-decoration: none;
}

.accordion-body a:hover {
    text-decoration: underline;
}

.dark-mode .accordion-item {
    background: #16213e;
}

.dark-mode .accordion-button {
    background: #16213e;
    color: #e9ecef;
}

.dark-mode .accordion-body {
    background: #16213e;
    color: #adb5bd;
}

/* ========================================
   CALL-TO-ACTION SECTIONS
   ======================================== */

.cta-section-1 {
    background: linear-gradient(135deg, #294a70, #1a73e8);
    position: relative;
    overflow: hidden;
}

.cta-section-1::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-box {
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

.cta-title {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

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

.cta-buttons .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ========================================
   ACHIEVEMENTS SECTION
   ======================================== */

.achievements-section {
    background: white;
}

.achievement-box {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid transparent;
}

.achievement-box:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(26, 115, 232, 0.2);
    border-color: #1a73e8;
}

.achievement-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.achievement-box:hover .achievement-icon {
    transform: scale(1.2) rotate(10deg);
}

.achievement-box h4 {
    color: #294a70;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.achievement-box p {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

.dark-mode .achievement-box {
    background: #16213e;
}

.dark-mode .achievement-box h4 {
    color: #e9ecef;
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-text {
        font-size: 1.1rem;
    }
    
    .achievement-icon {
        font-size: 2.5rem;
    }
    
    .achievement-box h4 {
        font-size: 1.1rem;
    }
}

/* ========================================
   LOADING SCREEN
   ======================================== */

.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    padding: 2rem 2.6rem;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(22, 41, 92, 0.08);
    box-shadow: 0 18px 50px rgba(22, 41, 92, 0.08);
    animation: loader-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes loader-card-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.loader-logo {
    width: 168px;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    filter: drop-shadow(0 8px 18px rgba(22, 41, 92, 0.12));
    animation: loader-logo-pulse 1.4s ease-in-out infinite;
}

@keyframes loader-logo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.loader-name {
    margin: 0;
    color: #16295c;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-align: center;
    font-family: 'Poppins', system-ui, sans-serif;
}

.loader-bar {
    width: 160px;
    height: 4px;
    border-radius: 999px;
    background: rgba(22, 41, 92, 0.1);
    overflow: hidden;
}

.loader-bar-fill {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1d4e89, #3eb8db);
    animation: loader-bar 1.1s ease-in-out infinite;
}

@keyframes loader-bar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

@media (prefers-reduced-motion: reduce) {
    .loader-logo,
    .loader-bar-fill,
    .loader-card {
        animation: none;
    }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 240px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #294a70, #1a73e8);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9997;
    box-shadow: 0 8px 25px rgba(41, 74, 112, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(41, 74, 112, 0.5);
}

.back-to-top i {
    animation: bounce-arrow 1.5s ease-in-out infinite;
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 180px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* ========================================
   SOCIAL MEDIA FEED
   ======================================== */

.social-feed-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.social-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    transition: all 0.3s ease;
}

.facebook-card::before {
    background: linear-gradient(90deg, #1877f2, #0d65d9);
}

.twitter-card::before {
    background: linear-gradient(90deg, #1DA1F2, #0c8bd9);
}

.instagram-card::before {
    background: linear-gradient(90deg, #E4405F, #C13584, #833AB4);
}

.social-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.social-card:hover::before {
    height: 100%;
}

.social-header {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.social-header i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.facebook-card .social-header i {
    color: #1877f2;
}

.twitter-card .social-header i {
    color: #1DA1F2;
}

.instagram-card .social-header i {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-card:hover .social-header i {
    transform: scale(1.2) rotate(360deg);
}

.social-header h5 {
    font-weight: 700;
    color: #294a70;
    font-family: 'Poppins', sans-serif;
}

.social-card p {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.social-link {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #294a70, #1a73e8);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-link:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(41, 74, 112, 0.3);
    color: white;
}

.dark-mode .social-card {
    background: #16213e;
}

.dark-mode .social-card p {
    color: #adb5bd;
}

.dark-mode .social-header h5 {
    color: #e9ecef;
}

/* ========================================
   PRINCIPAL MESSAGE SECTION - CENTERED
   ======================================== */

.principal-message-section {
    background: linear-gradient(135deg, #f8fafc, #eef3f9);
    position: relative;
}

.principal-box {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
    transition: all 0.4s ease;
}

.principal-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 70px rgba(41, 74, 112, 0.15);
}

.principal-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: #0b3d91;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.principal-heading::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #1a73e8, #0b3d91);
    margin: 15px auto 0;
    border-radius: 2px;
    animation: pulse 2s infinite;
}

.principal-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #1a73e8;
    box-shadow: 0 15px 40px rgba(26, 115, 232, 0.3);
    margin: 0 auto;
    display: block;
    transition: all 0.4s ease;
}

.principal-image:hover {
    transform: scale(1.08) rotate(3deg);
    border-color: #294a70;
    box-shadow: 0 20px 50px rgba(41, 74, 112, 0.4);
}

.principal-content {
    margin-top: 2rem;
}

.principal-text {
    font-family: 'Inter', 'Georgia', serif;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.9;
    color: #333;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

/* Dark mode */
.dark-mode .principal-box {
    background: #16213e;
}

.dark-mode .principal-heading {
    color: #e9ecef;
}

.dark-mode .principal-text {
    color: #adb5bd;
}

@media (max-width: 768px) {
    .principal-box {
        padding: 2rem 1.5rem;
    }
    
    .principal-image {
        width: 200px;
        height: 200px;
        border-width: 4px;
    }
    
    .principal-text {
        font-size: 1.05rem;
        text-align: justify;
    }
}
