/* apply.css - Optimized for Mobile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
}

body {
    color: var(--text);
    background-color: #f8f9fa;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 24px;
    animation: zoomIn 1s ease;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-size: 18px;
}

/* Desktop Navigation */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.desktop-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    position: relative;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.desktop-nav a:hover {
    color: var(--secondary);
    transform: scale(1.05);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.desktop-nav a:hover::after {
    width: 100%;
}


/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url("images/back.jpg") center/cover no-repeat;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    touch-action: manipulation;
    min-width: 44px; /* Ensures minimum touch target size */
    min-height: 44px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: var(--secondary);
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: scale(1.1);
    animation: bounce 0.5s ease;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary);
    transform: scale(1.1);
    animation: bounce 0.5s ease;
}

/* About Section */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    animation: fadeInUp 1s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    height: 4px;
    width: 60px;
    background-color: var(--secondary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 1s ease;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    flex: 1;
    animation: slideInRight 1s ease;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary);
}

/* Services Section */
.services {
    background-color: #f1f5f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    animation: slideInUp 0.5s ease forwards;
    animation-delay: calc(0.1s * var(--order));
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service-card:hover::before {
    border-color: var(--secondary);
    box-shadow: 0 0 15px var(--secondary);
}

.service-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:nth-child(1) { --order: 1; }
.service-card:nth-child(2) { --order: 2; }

.service-icon {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Fees Table Section */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
    position: relative;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

table th,
table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 14px;
}

table th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #f1f5f9;
    transform: scale(1.01);
    transition: all 0.3s ease;
}

table tbody tr:last-child {
    border-bottom: none;
}

table tbody tr:last-child td {
    font-weight: 600;
    color: var(--primary);
}

/* Footer */
footer {
    color: white;
    padding: 40px 0 20px;
    background-image: url('../images/footer-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.footer-brand-section {
    background-image: url('images/footer-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px 0;
}

.footer-main {
    background-image: url('images/footer-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 40px;
    background-color: var(--secondary);
    bottom: 0;
    left: 0;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--secondary);
    padding-left: 5px;
    transform: scale(1.05);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    animation: pulse 1.5s infinite;
}

.back-to-top:hover {
    background-color: #2980b9;
    transform: translateY(-5px) rotate(360deg);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@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 slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero { height: 60vh; }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 18px; }
    .about-content { flex-direction: column; gap: 20px; }
    .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table th, table td { padding: 10px; font-size: 12px; }
}

@media (max-width: 768px) {
    .header-container { padding: 10px 0; }
    .logo-image { width: 35px; height: 35px; }
    .logo-text { display: block; font-size: 16px; }
/*
    nav ul {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--primary);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        transition: all 0.5s ease;
    }
    nav ul.active { left: 0; }
    nav ul li { margin: 15px 0; }
    nav a { font-size: 18px; padding: 15px 0; } /* Increased padding for touch targets */
    .mobile-menu-btn { display: block; }
*/
    .hero { height: 50vh; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }
    .btn { padding: 10px 20px; font-size: 14px; min-width: 120px; }
    .btn-outline { margin-left: 10px; }
    .section { padding: 40px 0; }
    .section-title { font-size: 26px; margin-bottom: 40px; }
    .about-text h3 { font-size: 20px; }
    .about-text p { font-size: 14px; }
    .service-card { padding: 20px; }
    .service-icon { font-size: 35px; }
    .service-card h3 { font-size: 20px; }
    .service-card p { font-size: 14px; }
    .footer-column h3 { font-size: 18px; }
    .footer-column p, .footer-column a { font-size: 14px; }
    .back-to-top { width: 40px; height: 40px; font-size: 16px; }
}

@media (max-width: 480px) {
    .logo-image { width: 30px; height: 30px; }
    .logo-text { font-size: 14px; }
    .hero h1 { font-size: 24px; }
    .hero p { font-size: 14px; }
    .btn { padding: 8px 16px; font-size: 12px; min-width: 100px; }
    .section-title { font-size: 22px; }
    .service-card { padding: 15px; }
    table th, table td { font-size: 10px; padding: 8px; }
}

@media (max-width: 320px) {
    .logo-text { font-size: 12px; }
    .hero h1 { font-size: 20px; }
    .hero p { font-size: 12px; }
    .btn { padding: 6px 12px; font-size: 10px; min-width: 90px; }
    .section-title { font-size: 20px; }
    .about-text h3 { font-size: 18px; }
    .service-card h3 { font-size: 18px; }
    table th, table td { font-size: 9px; padding: 6px; }
}

/* apply.css - Updated with Social Media Icon Styles */

/* Existing styles remain unchanged, adding new styles for social media icons */
.social-media-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    list-style: none;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light);
    color: var(--primary);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
    animation: socialPulse 0.5s ease-in-out;
}

.social-link.facebook:hover {
    background-color: #3b5998;
    color: white;
}

.social-link.tiktok:hover {
    background-color: #000000;
    color: white;
}

.social-link.instagram:hover {
    background-color: #E1306C;
    color: white;
}

.social-link.linkedin:hover {
    background-color: #0A66C2;
    color: white;
}

.social-link.youtube:hover {
    background-color: #FF0000;
    color: white;
}

/* Pulse animation for social icons */
@keyframes socialPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

/* Ensure touch devices don't trigger hover effects */
@media (hover: none) and (pointer: coarse) {
    .social-link:hover {
        transform: none;
        box-shadow: none;
        background-color: var(--light);
        color: var(--primary);
    }
}

/* Responsive adjustments for social media icons */
@media (max-width: 768px) {
    .social-media-list {
        gap: 10px;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .social-media-list {
        gap: 8px;
    }

    .social-link {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

table {
    min-width: 800px; /* Ensure table is wide enough to require scrolling on mobile */
}

.about-image {
    animation: 10s;
}