/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Add scroll padding for better anchor linking */
    scroll-padding-top: 80px;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
    /* Improve readability with better contrast */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Enhanced Color Scheme */
:root {
    --primary-color: #1a3c6c;
    --secondary-color: #ffc107;
    --accent-color: #28a745;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-color: #f8f9fa;
    --bg-color-dark: #e9ecef;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Improved Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Header & Navigation */
.navbar {
    background-color: rgba(26, 60, 108, 0.95);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    /* Add backdrop filter for modern browsers */
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 100px;
    width: 100px;
    margin-right: 15px;
    border-radius: 50%;
    padding: 5px;
    object-fit: contain;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: rotate(5deg);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.logo-text {
    text-align: right;
}

.logo-text h1 {
    font-size: 1.3rem;
    margin: 0 0 0.2rem 0;
    font-weight: 700;
    transition: color 0.3s ease;
    color: var(--white);
    white-space: nowrap;
}

.logo-text h1:hover {
    color: var(--secondary-color);
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin: 0;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-menu ul li {
    margin: 0 10px;
    position: relative;
}

.nav-menu ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    position: relative;
    display: block;
    white-space: nowrap;
}

.nav-menu ul li a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu ul li a:hover::after {
    width: 70%;
}

.nav-menu ul li a.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.nav-menu ul li a.active::after {
    width: 70%;
    background-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger Animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
    overflow: hidden;
    background-color: var(--primary-color);
    /* Improve loading performance */
    content-visibility: auto;
    contain-intrinsic-size: 100vh;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.7);
    /* Add transition for smoother loading */
    transition: opacity 0.5s ease;
    opacity: 0;
    /* Add transform for parallax effect */
    transform: translateY(0);
    will-change: transform;
}

.hero-background.loaded {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 60, 108, 0.85), rgba(26, 60, 108, 0.9));
    z-index: -1;
    /* Add subtle animation */
    animation: fadeIn 1s ease-out;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    /* Add entrance animation */
    animation: fadeInUp 1s ease-out 0.5s both;
}

.candidate-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
    margin: 0 auto 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    /* Improve performance */
    will-change: transform;
    transition: transform 0.3s ease;
    /* Add entrance animation */
    animation: zoomIn 0.8s ease-out 0.7s both;
}

.candidate-photo:hover {
    transform: scale(1.05);
}

.candidate-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Improve loading */
    loading: lazy;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    /* Add text shadow for better readability */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Add entrance animation */
    animation: fadeInDown 0.8s ease-out 0.9s both;
    color: var(--white);
}

.hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 500;
    /* Add text shadow for better readability */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    /* Add entrance animation */
    animation: fadeInDown 0.8s ease-out 1.1s both;
}

.hero-quote {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    /* Add entrance animation */
    animation: fadeIn 0.8s ease-out 1.3s both;
}

.hero-subtext {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--white);
    /* Add entrance animation */
    animation: fadeIn 0.8s ease-out 1.5s both;
}

.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Add entrance animation */
    animation: pulse 2s infinite, fadeInUp 0.8s ease-out 1.7s both;
    /* Add pulse animation */
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    /* Add entrance animation */
    animation: fadeIn 1s ease-out 2s both;
}

.scroll-down a {
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    transition: color 0.3s ease;
}

.scroll-down a:hover {
    color: #ffc107;
}

/* Hero Wave Animation */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200%;
    height: 120px;
    background-repeat: repeat-x;
    z-index: 0;
}

.hero::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 120' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C150,100 350,10 500,50 C650,90 750,30 800,50 L800,120 L0,120 Z' fill='rgba(248,249,250,0.3)'%3E%3C/path%3E%3C/svg%3E");
    background-size: 50% 120px;
    animation: wave-move 25s linear infinite;
}

.hero::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,120 350,20 500,60 C650,100 750,40 800,60 L800,120 L0,120 Z' fill='rgba(248,249,250,0.5)'%3E%3C/path%3E%3C/svg%3E");
    background-size: 50% 120px;
    animation: wave-move 15s linear infinite;
    animation-direction: reverse;
}


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Additional Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
}

@keyframes wave-move {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Sparkle animation */
@keyframes sparkle {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Video section fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add some initial state for hero content to animate in */
.hero-content > * {
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-content .candidate-photo { animation: zoomIn 0.8s ease-out 0.7s forwards; }
.hero-content h1 { animation: fadeInDown 0.8s ease-out 0.9s forwards; }
.hero-content h2 { animation: fadeInDown 0.8s ease-out 1.1s forwards; }
.hero-content .hero-quote { animation: fadeIn 0.8s ease-out 1.3s forwards; }
.hero-content .hero-subtext { animation: fadeIn 0.8s ease-out 1.5s forwards; }
.hero-content .btn-primary { animation: pulse 2s infinite, fadeInUp 0.8s ease-out 1.7s forwards; }

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced scroll animations for different directions */
.animate-from-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-from-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-from-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-from-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-from-bottom {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-from-bottom.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.animate-fade-in.visible {
    opacity: 1;
}

/* Page transition effects */
.page-transition {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-transition.loaded {
    opacity: 1;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    /* Add scroll padding for better anchor linking */
    scroll-padding-top: 80px;
}

/* Audio Announcement Styles */
#audioControls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

#replayAnnouncement {
    /* Styles are mostly handled in JavaScript for dynamic creation */
}

#replayAnnouncement:hover {
    transform: scale(1.1);
}

/* Hide the default audio controls but keep the element for functionality */
#announcementAudio {
    display: none;
}

/* Responsive Footer */
@media screen and (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-info h2 {
        font-size: 1.5rem;
    }
    
    .footer-info h3 {
        font-size: 1.2rem;
    }
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .container {
        width: 95%;
        max-width: 1100px;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .hero-quote {
        font-size: 1.6rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 992px) {
    .container {
        width: 95%;
        max-width: 900px;
    }
    
    .hero-content h1 {
        font-size: 2.1rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .hero-quote {
        font-size: 1.5rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .nav-menu ul li {
        margin: 0 5px;
    }
    
    .nav-menu ul li a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 1rem;
        flex-direction: row-reverse;
    }
    
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        background-color: rgba(26, 60, 108, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        backdrop-filter: blur(10px);
        height: calc(100vh - 70px);
        overflow-y: auto;
        display: block;
    }

    .nav-menu.active {
        right: 0;
        left: auto;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        margin: 10px 0;
        flex-wrap: nowrap;
    }

    .nav-menu ul li {
        margin: 0.5rem 0;
        width: 80%;
    }
    
    .nav-menu ul li a {
        padding: 1rem;
        font-size: 1.1rem;
        width: 100%;
    }
    
    .logo {
        flex-direction: row;
    }
    
    .logo-image {
        height: 70px;
        width: 70px;
        margin-right: 10px;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
        white-space: normal;
        margin: 0 0 0.1rem 0;
        text-align: right;
    }
    
    .logo-text p {
        font-size: 0.8rem;
        text-align: right;
    }
    
    .hero {
        height: 90vh;
        margin-top: 70px;
    }
    
    .hero-content {
        padding: 15px;
    }
    
    .candidate-photo {
        width: 150px;
        height: 150px;
        border-width: 4px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .hero-quote {
        font-size: 1.3rem;
        margin: 1rem 0;
    }
    
    .hero-subtext {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    section h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .values h3 {
        font-size: 1.2rem;
    }
    
    .values li {
        font-size: 1rem;
    }
    
    .program-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px;
    }
    
    .program-item {
        padding: 1.5rem;
    }
    
    .program-icon {
        font-size: 2.5rem;
    }
    
    .program-item h3 {
        font-size: 1.2rem;
    }
    
    .program-item p {
        font-size: 0.9rem;
    }
    
    .vision-quote p {
        font-size: 1.1rem;
    }
    
    .quote-category {
        padding: 2rem;
    }
    
    .quote-category h3 {
        font-size: 1.3rem;
    }
    
    .quote-item {
        padding: 1.2rem;
    }
    
    .quote-item p {
        font-size: 1rem;
    }
    
    .short-quotes {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .short-quote {
        padding: 1.2rem;
        font-size: 1rem;
    }
    
    .contact-info {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .contact-item h3 {
        font-size: 1.1rem;
    }
    
    .contact-item p {
        font-size: 1rem;
    }
    
    .video-section h2 {
        font-size: 1.5rem;
    }
    
    .footer-info h2 {
        font-size: 1.5rem;
    }
    
    .footer-info h3 {
        font-size: 1.2rem;
    }
    
    .footer-links a {
        font-size: 1rem;
    }
    
    .social-media h3 {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 0.8rem;
    }
    
    .nav-menu ul li {
        width: 90%;
    }
    
    .nav-menu ul li a {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .logo-image {
        height: 60px;
        width: 60px;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-text p {
        font-size: 0.7rem;
    }
    
    .hero {
        height: 85vh;
    }
    
    .candidate-photo {
        width: 130px;
        height: 130px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
    }
    
    .hero-quote {
        font-size: 1.1rem;
    }
    
    .hero-subtext {
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    section h2 {
        font-size: 1.4rem;
    }
    
    .program-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .short-quotes {
        grid-template-columns: 1fr;
    }
    
    .quote-category {
        padding: 1.2rem;
    }
    
    .contact-item {
        padding: 1.2rem;
    }
    
    .video-wrapper {
        max-width: 95%;
    }
    
    .footer-info h2 {
        font-size: 1.3rem;
    }
    
    .footer-info h3 {
        font-size: 1.1rem;
    }
    
    .footer-links {
        gap: 10px;
    }
    
    .footer-copyright p {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 0.5rem;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-image {
        margin: 0 0 10px 0;
        height: 60px;
        width: 60px;
    }
    
    .logo-text h1 {
        font-size: 1rem;
        text-align: center;
    }
    
    .logo-text p {
        font-size: 0.7rem;
        text-align: center;
    }
    
    .nav-menu ul li {
        width: 95%;
    }
    
    .nav-menu ul li a {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .hero {
        height: 80vh;
    }
    
    .candidate-photo {
        width: 120px;
        height: 120px;
        border-width: 3px;
    }
    
    .hero-content h1 {
        font-size: 1.4rem;
    }
    
    .hero-content h2 {
        font-size: 1rem;
    }
    
    .hero-quote {
        font-size: 1rem;
        margin: 0.8rem 0;
    }
    
    .hero-subtext {
        font-size: 0.8rem;
    }
    
    .btn-primary {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    section h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .about-text p {
        font-size: 0.9rem;
    }
    
    .values h3 {
        font-size: 1.1rem;
    }
    
    .values li {
        font-size: 0.9rem;
    }
    
    .program-item {
        padding: 1rem;
    }
    
    .program-icon {
        font-size: 2rem;
    }
    
    .program-item h3 {
        font-size: 1.1rem;
    }
    
    .program-item p {
        font-size: 0.8rem;
    }
    
    .vision-quote {
        padding: 1.5rem;
    }
    
    .vision-quote p {
        font-size: 1rem;
    }
    
    .quote-category {
        padding: 1rem;
    }
    
    .quote-category h3 {
        font-size: 1.1rem;
    }
    
    .quote-item {
        padding: 1rem;
    }
    
    .quote-item p {
        font-size: 0.9rem;
    }
    
    .short-quote {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-item h3 {
        font-size: 1rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    .video-section h2 {
        font-size: 1.2rem;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .footer-info h2 {
        font-size: 1.2rem;
    }
    
    .footer-info h3 {
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
        padding: 3px 8px;
    }
    
    .footer-copyright p {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 360px) {
    .logo-text h1 {
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 1.3rem;
    }
    
    .hero-quote {
        font-size: 0.9rem;
    }
    
    section h2 {
        font-size: 1.2rem;
    }
    
    .program-item {
        padding: 1rem;
    }
    
    .program-icon {
        font-size: 1.8rem;
    }
    
    .social-icon {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2rem;
    position: relative;
    font-weight: 700;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto;
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.values h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.values ul {
    list-style: none;
}

.values li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.values i {
    color: var(--secondary-color);
    margin-left: 10px;
    font-size: 1.2rem;
}

/* Vision Section */
.vision {
    background-color: var(--bg-color-dark);
}

.vision-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.vision-quote {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    border-right: 5px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.vision-quote:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow-hover);
}

.vision-quote p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary-color);
    font-weight: 500;
}

/* Program Section */
.program {
    background-color: var(--white);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.program-item {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 5px solid var(--primary-color);
}

.program-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.program-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.program-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.program-item p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Quotes Section */
.quotes {
    background-color: var(--bg-color-dark);
}

.quotes-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.quote-category {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.quote-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    position: relative;
}

.quote-category h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto;
}

.quote-item {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 20px;
    border-right: 3px solid var(--primary-color);
}

.quote-item:last-child {
    margin-bottom: 0;
}

.quote-item p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
    text-align: center;
    font-weight: 500;
}

.short-quotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.short-quote {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.short-quote:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    background-color: var(--white);
    position: relative;
    padding: 100px 0 80px;
}

.contact::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%231a3c6c" opacity=".2"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%231a3c6c" opacity=".4"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%231a3c6c"/></svg>');
    background-size: 1200px 100px;
    background-repeat: no-repeat;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-right: 5px solid var(--primary-color);
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    transition: 0.5s;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-right: 5px solid var(--secondary-color);
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-item h3 i {
    color: var(--secondary-color);
    margin-left: 10px;
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.contact-item p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Enhanced contact item animations */
@keyframes slideInContact {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-item {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInContact 0.6s ease-out forwards;
}

.contact-item:nth-child(1) { animation-delay: 0.2s; }
.contact-item:nth-child(2) { animation-delay: 0.4s; }
.contact-item:nth-child(3) { animation-delay: 0.6s; }

/* Add contact item hover effects */
.contact-item:hover h3 {
    color: var(--secondary-color);
}

.contact-item:hover h3 i {
    transform: scale(1.2);
    color: var(--primary-color);
}

/* Add a subtle glow effect on hover */
.contact-item:hover {
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.2);
}

/* Video Section */
.video-section {
    background-color: #e9ecef;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%231a3c6c" opacity=".2"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%231a3c6c" opacity=".4"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%231a3c6c"/></svg>');
    background-size: 1200px 100px;
    background-repeat: no-repeat;
}

.video-section h2 {
    color: #1a3c6c;
    margin-bottom: 2rem;
    font-size: 2rem;
    position: relative;
    display: inline-block;
    animation: fadeInUp 0.8s ease-out;
}

.video-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ffc107;
    margin: 10px auto;
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    perspective: 1000px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 5px solid #1a3c6c;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.video-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.3);
}

.video-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(26, 60, 108, 0.2), rgba(255, 193, 7, 0.2));
    z-index: 1;
    pointer-events: none;
    border-radius: 10px;
}

.responsive-iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 10px;
}

.responsive-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
    transition: all 0.3s ease;
}

/* Responsive Video */
@media (max-width: 768px) {
    .video-wrapper {
        border-radius: 10px;
        border-width: 3px;
        max-width: 95%;
    }
    
    .video-section h2 {
        font-size: 1.5rem;
    }
    
    .video-container {
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .video-wrapper {
        border-radius: 8px;
        border-width: 2px;
    }
    
    .video-section h2 {
        font-size: 1.3rem;
    }
    
    .video-section {
        padding: 60px 0;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http3://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23ffffff" opacity=".2"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%23ffffff" opacity=".4"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"/></svg>');
    background-size: 1200px 100px;
    background-repeat: no-repeat;
    transform: rotate(180deg);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-info img {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 50%;
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.footer-info img:hover {
    transform: scale(1.1) rotate(5deg);
}

.footer-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    background: rgba(255, 193, 7, 0.1);
    transform: translateY(-2px);
}

.social-media {
    margin: 20px 0;
}

.social-media h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-copyright p {
    margin: 5px 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-copyright .developer-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-copyright .developer-link:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Responsive Footer */
@media screen and (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-info h2 {
        font-size: 1.5rem;
    }
    
    .footer-info h3 {
        font-size: 1.2rem;
    }
    
    .social-icons {
        gap: 15px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .footer-info h2 {
        font-size: 1.3rem;
    }
    
    .footer-info h3 {
        font-size: 1.1rem;
    }
    
    .social-media h3 {
        font-size: 1.1rem;
    }
}

/* Enhanced hover effects for all interactive elements */
button, .btn, a.btn-primary, .program-item, .vision-quote, .quote-item, .short-quote, .contact-item {
    transition: all 0.3s ease;
    will-change: transform;
}

/* Add ripple effect to buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-primary:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(50, 50);
        opacity: 0;
    }
}

/* Enhanced program items */
.program-item {
    position: relative;
    overflow: hidden;
}

.program-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.program-item:hover::before {
    left: 100%;
}

.program-icon {
    transition: transform 0.3s ease;
}

.program-item:hover .program-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced vision quotes */
.vision-quote {
    position: relative;
    overflow: hidden;
}

.vision-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    transition: 0.5s;
}

.vision-quote:hover::before {
    left: 100%;
}

/* Enhanced quote items */
.quote-item {
    position: relative;
    transition: all 0.3s ease;
}

.quote-item:hover {
    transform: translateX(-5px);
}

.quote-item::after {
    content: '"';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 3rem;
    color: rgba(255, 193, 7, 0.2);
    font-family: serif;
}

/* Enhanced short quotes */
.short-quote {
    position: relative;
    overflow: hidden;
}

.short-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.short-quote:hover::before {
    left: 100%;
}

/* Enhanced contact items */
.contact-item {
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    transition: 0.5s;
}

.contact-item:hover::before {
    left: 100%;
}

/* Add subtle shadow effects to all cards */
.vision-quote, .program-item, .quote-category, .contact-item {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.vision-quote:hover, .program-item:hover, .quote-category:hover, .contact-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Add floating animation to key elements */
.hero-content, .about-content, .vision-content, .program-grid, .quotes-content, .contact-content {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Add text selection styling */
::selection {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Add focus styles for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Learn About the Site Section */
.learn-site {
    background-color: var(--white);
}

.learn-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.audio-player-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.audio-player {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    position: relative;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.audio-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
}

.audio-btn:hover, .audio-btn:focus {
    background-color: var(--secondary-color);
    transform: scale(1.1);
    color: var(--primary-color);
}

.audio-btn:active {
    transform: scale(0.95);
}

.audio-progress {
    flex: 1;
    min-width: 200px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--bg-color-dark);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: left;
}

.learn-description {
    text-align: center;
    max-width: 800px;
}

.learn-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .audio-controls {
        justify-content: center;
    }
    
    .audio-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .audio-player {
        padding: 15px;
    }
    
    .learn-description p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .audio-controls {
        flex-direction: column;
    }
    
    .audio-progress {
        width: 100%;
    }
    
    .audio-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Audio Stop Button */
#audioStopButton {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1001;
    display: none; /* Hidden by default */
}

#stopAudioBtn {
    background-color: #dc3545; /* Red color for stop button */
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
}

#stopAudioBtn:hover, #stopAudioBtn:focus {
    background-color: #c82333;
    transform: scale(1.1);
}

#stopAudioBtn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    #stopAudioBtn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}
