/* ===========================================
   COMPLETE CSS WITH MOBILE & DESKTOP OPTIMIZATION
   All font sizes and spacing optimized
=========================================== */

/* Hero Slider Styles - Mobile Optimized */
.hero-slider {
    position: relative;
    height: 75vh;
    max-height: 600px;
    min-height: 400px;
    overflow: hidden;
    margin-top: 0;
    background: #f8fafc;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    width: 600px;
    color: white;
    padding: 30px;
    text-align: center;
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.slide-title {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slide-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0.95;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.slide-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

/* Slider Controls Container */
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

/* Navigation Buttons */
.slider-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* Slider Info (Counter + Dots) */
.slider-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Slide Counter */
.slide-counter {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 12px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/** section two**/

/* Founder Welcome Section */
.founder-welcome-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 15px;
}

/* Welcome Content */
.welcome-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: start;
}

/* Founder Profile */
.founder-profile {
    position: relative;
}

.founder-photo {
    margin-bottom: 30px;
}

.photo-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.photo-frame img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
   
}

.photo-frame:hover img {
    transform: scale(1.03);
}

.photo-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #2563eb;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;

}

.photo-badge i {
    font-size: 1rem;
}

/* Founder Details */
.founder-details {
    text-align: center;
}

.founder-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.founder-role {
    color: #2563eb;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

/* Founder Highlights */
.founder-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
}

.highlight-item i {
    font-size: 1.1rem;
    color: #2563eb;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
}

.highlight-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.highlight-text {
    display: block;
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* Welcome Message */
.welcome-message {
    background: #f8fafc;
    border-radius: 24px;
    padding: 40px;
    position: relative;
}

.message-intro {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.quote-icon {
    width: 60px;
    height: 60px;
    background: #2563eb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.message-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* Message Text */
.message-text {
    color: #444;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 40px;
}

.message-text p {
    margin-bottom: 20px;
}

.message-text p:last-child {
    margin-bottom: 0;
}

/* Message Footer */
.message-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
}

/* Signature */
.signature {
    text-align: left;
}

.signature-line {
    width: 100px;
    height: 2px;
    background: #2563eb;
    margin-bottom: 15px;
}

.signature-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.signature-title {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Core Values */
.core-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 25px 15px;
    background: white;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: #2563eb;
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.1);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #2563eb;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    background: #2563eb;
    color: white;
    transform: rotate(5deg);
}

.value-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.value-card p {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
    margin: 0;
}

/* Academic Programs Section */
.academic-programs-optimized {
    padding: 60px 0;
    background: #ffffff;
}

.section-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.5;
}

/* Programs Container */
.programs-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

/* Program Card */
.program-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Card Image */
.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .card-image img {
    transform: scale(1.05);
}

.age-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    color: #2563eb;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Card Content */
.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.program-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.program-title h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3px;
    line-height: 1.2;
}

.program-age {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

/* Program Excerpt */
.program-excerpt {
    margin-bottom: 15px;
    flex: 1;
}

.program-excerpt p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Program Features */
.program-features {
    margin-bottom: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: #475569;
}

.feature i {
    color: #10b981;
    font-size: 0.75rem;
}

/* Read More Link */
.read-more {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.read-more:hover {
    color: #1d4ed8;
    transform: translateX(5px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    color: white;
}

.cta-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.cta-content p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 130px;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/**news**/
/* Publications Section */
.publications-section {
    padding: 80px 0;
    background: #ffffff;
}

/* Publications Grid */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Publication Card */
.publication-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

/* Card Image */
.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.publication-card:hover .card-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #2563eb;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

/* Card Content */
.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Meta Info */
.meta-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #888;
}

.meta-info .date,
.meta-info .author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-info i {
    font-size: 0.85rem;
    color: #666;
}

/* Card Title */
.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.publication-card:hover .card-title {
    color: #2563eb;
}

/* Card Excerpt */
.card-excerpt {
    margin-bottom: 20px;
    flex: 1;
}

.card-excerpt p {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
    margin: 0;
}

/* Contact CTA */
.contact-cta {
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.contact-cta p {
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.phone-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.phone-link:hover {
    color: #1d4ed8;
}

.phone-link i {
    font-size: 0.85rem;
    color: #2563eb;
}

/* Card Link */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: #1d4ed8;
    gap: 12px;
}

.card-link i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.card-link:hover i {
    transform: translateX(4px);
}

/* View All Button */
.view-all {
    text-align: center;
}

.view-all-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #2563eb;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #2563eb;
    font-size: 0.95rem;
}

.view-all-button:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    gap: 12px;
}

.view-all-button svg {
    transition: transform 0.3s ease;
}

.view-all-button:hover svg {
    transform: translateX(5px);
}

/***event**/
/* Events Section */
.events-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
}

/* Section Header */
.section-badge {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Events Container */
.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Event Card */
.event-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

/* Event Media */
.event-media {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card:hover .event-media img {
    transform: scale(1.05);
}

.event-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    min-width: 45px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-date .day {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Event Content */
.event-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Event Category */
.event-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.category-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-tag.sports {
    background: #dcfce7;
    color: #166534;
}

.category-tag.academic {
    background: #eff6ff;
    color: #1d4ed8;
}

.category-tag.festival {
    background: #fef3c7;
    color: #92400e;
}

.category-tag.meeting {
    background: #f3f4f6;
    color: #374151;
}

.event-time {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* Event Title */
.event-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Event Details */
.event-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
}

.detail i {
    color: #94a3b8;
    width: 14px;
    text-align: center;
}

/* Event Description */
.event-description {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex: 1;
}

/* Event Actions */
.event-actions {
    display: flex;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.view-details {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex: 1;
}

.view-details:hover {
    color: #1d4ed8;
    gap: 10px;
}

.view-details svg {
    transition: transform 0.3s ease;
}

.view-details:hover svg {
    transform: translateX(5px);
}

.add-calendar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #666;
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-calendar:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.add-calendar i {
    font-size: 0.85rem;
}

/* Events CTA */
.events-cta {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.cta-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.cta-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.cta-button:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    gap: 12px;
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

/* ===========================================
   DESKTOP & TABLET OPTIMIZATION (768px - 1024px)
=========================================== */
@media (max-width: 1024px) {
    /* Hero Section */
    .hero-slider {
        height: 65vh;
        max-height: 500px;
        min-height: 350px;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-description {
        font-size: 0.95rem;
    }
    
    /* Founder Section */
    .welcome-content {
        grid-template-columns: 280px 1fr;
        gap: 40px;
    }
    
    .photo-frame img {
        height: 340px;
    }
    
    .core-values {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Programs Section */
    .programs-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* Publications Section */
    .publications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-image {
        height: 200px;
    }
    
    /* Events Section */
    .events-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-media {
        height: 160px;
    }
}

/* ===========================================
   MOBILE OPTIMIZATION (680px and below)
   Major font size reductions and layout changes
=========================================== */
@media (max-width: 680px) {
    
    /* ============ HERO SLIDER ============ */
    .hero-slider {
        height: 50vh;
        max-height: 400px;
        min-height: 280px;
    }
    
    .slide-content {
        padding: 15px;
        max-width: 95%;
    }
    
    .slide-badge {
        font-size: 0.7rem;
        padding: 3px 10px;
        margin-bottom: 8px;
    }
    
    .slide-title {
        font-size: 1.2rem !important;
        margin-bottom: 6px;
        line-height: 1.1;
    }
    
    .slide-description {
        font-size: 0.8rem;
        margin-bottom: 12px;
        max-width: 90%;
    }
    
    .btn-primary {
        padding: 6px 16px;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .slider-controls {
        bottom: 8px;
        padding: 0 8px;
    }
    
    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }
    
    .slide-counter {
        font-size: 0.8rem;
        padding: 2px 8px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
    
    /* ============ FOUNDER SECTION ============ */
    .founder-welcome-section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.4rem !important;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    
    .welcome-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 50px;
    }
    
    .founder-profile {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .photo-frame img {
        height: 280px;
    }
    
    .photo-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
        bottom: 15px;
        left: 15px;
    }
    
    .founder-name {
        font-size: 1.2rem;
    }
    
    .founder-role {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .highlight-item {
        padding: 12px;
        gap: 12px;
    }
    
    .highlight-item i {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .highlight-label {
        font-size: 0.9rem;
    }
    
    .highlight-text {
        font-size: 0.75rem;
    }
    
    .welcome-message {
        padding: 25px;
        border-radius: 16px;
    }
    
    .message-intro {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .quote-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .message-title {
        font-size: 1.3rem;
    }
    
    .message-text {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    
    .message-text p {
        margin-bottom: 15px;
    }
    
    .message-footer {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-top: 25px;
    }
    
    .signature-name {
        font-size: 1.2rem;
    }
    
    .signature-title {
        font-size: 0.85rem;
    }
    
    .action-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-width: 150px;
    }
    
    .core-values {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .value-card {
        padding: 20px;
    }
    
    .value-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .value-card h4 {
        font-size: 1rem;
    }
    
    .value-card p {
        font-size: 0.85rem;
    }
    
    /* ============ ACADEMIC PROGRAMS ============ */
    .academic-programs-optimized {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.4rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .programs-container {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding: 10px 0;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
        -webkit-overflow-scrolling: touch;
    }
    
    .programs-container::-webkit-scrollbar {
        height: 3px;
    }
    
    .programs-container::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 10px;
    }
    
    .programs-container::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }
    
    .program-card {
        flex: 0 0 calc(85vw - 40px);
        max-width: 280px;
        min-width: 250px;
    }
    
    .card-image {
        height: 140px;
    }
    
    .age-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .program-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .program-title h3 {
        font-size: 1.1rem;
    }
    
    .program-age {
        font-size: 0.75rem;
    }
    
    .program-excerpt p {
        font-size: 0.85rem;
    }
    
    .feature {
        font-size: 0.75rem;
    }
    
    .read-more {
        font-size: 0.8rem;
    }
    
    .cta-section {
        padding: 20px;
    }
    
    .cta-content h3 {
        font-size: 1.1rem;
    }
    
    .cta-content p {
        font-size: 0.85rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 200px;
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    /* ============ PUBLICATIONS SECTION ============ */
    .publications-section {
        padding: 50px 0;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .publications-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        gap: 25px;
    }
    
    .card-image {
        height: 160px;
    }
    
    .category-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
        top: 12px;
        left: 12px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .meta-info {
        gap: 12px;
        font-size: 0.75rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-excerpt p {
        font-size: 0.85rem;
    }
    
    .contact-cta p {
        font-size: 0.8rem;
    }
    
    .phone-link {
        font-size: 0.85rem;
    }
    
    .card-link {
        font-size: 0.85rem;
    }
    
    .view-all-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* ============ EVENTS SECTION ============ */
    .events-section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .events-container {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
        gap: 25px;
    }
    
    .event-media {
        height: 140px;
    }
    
    .event-date {
        top: 12px;
        left: 12px;
        padding: 6px 10px;
    }
    
    .event-date .day {
        font-size: 1.4rem;
    }
    
    .event-date .month {
        font-size: 0.7rem;
    }
    
    .event-content {
        padding: 15px;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
    
    .event-description {
        font-size: 0.85rem;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .add-calendar {
        justify-content: center;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .events-cta {
        padding: 20px;
    }
    
    .cta-content h3 {
        font-size: 1.2rem;
    }
    
    .cta-content p {
        font-size: 0.85rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* ===========================================
   EXTRA SMALL MOBILE (480px and below)
=========================================== */
@media (max-width: 480px) {
    .hero-slider {
        height: 45vh;
        min-height: 250px;
    }
    
    .slide-title {
        font-size: 1.1rem !important;
    }
    
    .slide-description {
        font-size: 0.75rem;
    }
    
    .btn-primary {
        min-width: 90px;
        padding: 5px 12px;
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.3rem !important;
    }
    
    .section-subtitle {
        font-size: 0.75rem;
    }
    
    .btn {
        min-width: 120px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .program-card {
        min-width: 220px;
    }
    
    .card-image {
        height: 120px;
    }
    
    .program-title h3 {
        font-size: 1rem;
    }
}

/* ===========================================
   VERY SMALL MOBILE (380px and below)
=========================================== */
@media (max-width: 380px) {
    .hero-slider {
        height: 40vh;
        min-height: 220px;
    }
    
    .slide-title {
        font-size: 1rem !important;
    }
    
    .slide-badge {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
    
    .section-title {
        font-size: 1.2rem !important;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* Touch-friendly improvements */
.program-card,
.publication-card,
.event-card {
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
}

/* Smooth transitions */
.program-card,
.publication-card,
.event-card,
.value-card {
    will-change: transform;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.founder-profile,
.welcome-message,
.value-card,
.program-card,
.publication-card,
.event-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Animation delays */
.founder-profile { animation-delay: 0.1s; }
.welcome-message { animation-delay: 0.2s; }
.value-card:nth-child(1) { animation-delay: 0.3s; }
.value-card:nth-child(2) { animation-delay: 0.4s; }
.value-card:nth-child(3) { animation-delay: 0.5s; }
.value-card:nth-child(4) { animation-delay: 0.6s; }
.program-card:nth-child(1) { animation-delay: 0.1s; }
.program-card:nth-child(2) { animation-delay: 0.2s; }
.program-card:nth-child(3) { animation-delay: 0.3s; }
.program-card:nth-child(4) { animation-delay: 0.4s; }
.publication-card:nth-child(1) { animation-delay: 0.1s; }
.publication-card:nth-child(2) { animation-delay: 0.2s; }
.publication-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(4) { animation-delay: 0.4s; }
.events-cta { animation: fadeInUp 0.6s ease-out 0.5s both; }