/* Global Styles */
:root {
    --primary-color: #004d40;
    --secondary-color: #0277bd;
    --accent-color: #ffd700;
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --transition: all 0.3s ease;
    --header-height: 140px;
    --header-height-mobile: 120px;
    --header-height-small: 110px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden; /* Prevent horizontal scroll */
    transition: opacity 0.5s ease; /* Smooth transition for loading */
}

/* Add a class to fade in the body */
body.loaded {
    opacity: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Classes */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

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

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Header Styles */
header {
    width: 100%;
    background: var(--light-text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-bar {
    background: var(--dark-bg);
    padding: 15px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.title-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.title {
    color: var(--light-text);
    font-size: 24px;
    margin: 0;
    transition: all 0.3s ease;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--light-text);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

nav {
    background: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: -20px; /* Reduce the gap between the menu and hero section */
}

nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 25px;
    white-space: nowrap;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-links a.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Hover Effect */
.nav-links li::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: white;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-links li:hover::after {
    width: 70%;
}

.nav-links li a.active::after {
    width: 70%;
}

/* Remove mobile menu toggle */
.mobile-menu {
    display: none;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    nav {
        padding: 10px 0;
        margin-bottom: 5px;
    }

    nav .container {
        padding: 0 10px;
    }

    .nav-links {
        display: flex !important; /* Always show the menu */
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        width: 100%;
        padding: 5px 0;
    }

    .nav-links li {
        flex: 0 0 auto;
    }

    .nav-links a {
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 3px;
    }

    .nav-links a {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Responsive Header */
@media (max-width: 768px) {
    .top-bar {
        padding: 10px 0;
    }

    .top-bar .container {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .title-section {
        flex-direction: column;
        gap: 10px;
    }

    .logo-img {
        height: 40px;
    }

    .title {
        font-size: 18px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .title-section {
        width: 100%;
    }

    .logo-img {
        height: 35px;
    }

    .title {
        font-size: 16px;
        line-height: 1.3;
    }

    .social-icons {
        width: 100%;
        justify-content: center;
        padding-top: 10px;
    }

    .social-icons a {
        font-size: 16px;
    }
}

/* Common spacing for all pages */
.hero,
.about-section,
.contact-section,
.donation-section,
.media-section,
.results-section,
.registration-section {
    margin-top: 0;
    padding: 40px 20px;
}

/* Hero Section */
.hero {
    height: 60vh; /* موبائل ویو کے لیے اونچائی کم کریں */
    overflow: hidden; /* اضافی مواد کو چھپائیں */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0; /* Remove any top margin */
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%; /* Ensure it takes full height of hero */
    overflow: hidden;
}

.slider-image {
    position: absolute;
    width: 100%; /* تصویر کی چوڑائی کو مکمل کریں */
    height: auto; /* تصویر کی اونچائی کو خودکار کریں */
    max-height: 100%; /* زیادہ اونچائی کو محدود کریں */
    object-fit: cover; /* Ensures the image covers the container */
    transition: opacity 0.7s ease-in-out;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.hero-buttons {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    z-index: 10;
}

.hero-button {
    padding: 18px 40px;
    font-size: 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    min-width: 220px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-button.registration {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-button.results {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    .hero {
        height: 40vh; /* موبائل ویو میں مزید کم کریں */
    }

    .hero-buttons {
        bottom: 50px;
        flex-direction: column;
        gap: 15px;
        width: 90%;
        max-width: 300px;
    }

    .hero-button {
        padding: 15px 30px;
        font-size: 18px;
        min-width: 100%;
    }

    .slider-image {
        height: 100%; /* تصویر کی اونچائی کو مکمل کریں */
    }
}

@media (min-width: 769px) {
    .hero {
        height: 400px; /* Set a proper height for larger screens */
    }
}

@media (max-width: 480px) {
    .hero-button {
        padding: 12px 25px;
        font-size: 16px;
    }
}
/* ---- General Styling ---- */
.patron-mission-section {
    position: relative;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    padding: 60px 0;
    overflow: hidden;
}

.patron-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    transition: transform 0.3s ease-in-out;
}

.patron-flex:hover {
    transform: translateY(-5px);
}

/* ---- Image Styling ---- */
.patron-image {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 5px solid #4a5568;
}

.patron-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
}

.patron-image:hover img {
    transform: scale(1.1);
}

/* ---- Text Styling ---- */
.patron-title h3 {
    font-size: 22px;
    color: #374151;
    font-weight: bold;
}

.patron-title p {
    font-size: 16px;
    color: #6b7280;
}

.patron-content h2 {
    font-size: 24px;
    color: #1f2937;
    font-weight: bold;
    margin-bottom: 10px;
}

.patron-content p {
    font-size: 18px;
    color: #4a5568;
}

/* ---- Designation Box ---- */
.designation-box {
    background: #edf2f7;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.05);
}

.designation-box p {
    margin: 5px 0;
    font-weight: 500;
}

/* ---- Button Styling ---- */
.custom-btn {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.custom-btn:hover {
    background: #059669;
    transform: scale(1.05);
}

/* ---- SVG Background Styling ---- */
.background-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 10%;
    height: auto;
}

/* ---- Responsive Design ---- */
@media (min-width: 768px) {
    .patron-flex {
        flex-direction: row;
        text-align: left;
        max-width: 900px;
        padding: 40px;
    }

    .patron-info {
        flex: 1;
        text-align: center;
    }

    .patron-content {
        flex: 2;
        padding-left: 20px;
    }

    .patron-image {
        width: 180px;
        height: 180px;
    }

    .patron-content h2 {
        font-size: 28px;
    }

    .patron-content p {
        font-size: 20px;
    }
}

/* Welcome Section with Enhanced Texture */
.welcome {
    padding: 80px 0;
    background-color: #f8f9fa;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23004d40' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%);
    position: relative;
    margin-bottom: 10px; /* Reduce margin below welcome section */
}

.welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 77, 64, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.welcome .container {
    position: relative;
    z-index: 1;
}

.welcome-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.president-info {
    flex: 0 0 350px;
    position: relative;
}

.president-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.president-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: transform 0.3s ease;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.president-image:hover img {
    transform: scale(1.02);
}

.president-image:hover .image-overlay {
    opacity: 0.2;
}

.president-title {
    background: rgba(255, 255, 255, 0.98);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: -50px;
    position: relative;
    z-index: 2;
    margin-left: 20px;
    margin-right: 20px;
    border-top: 3px solid var(--primary-color);
    text-align: center;
}

.president-title h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.designation {
    color: var(--dark-text);
    font-style: italic;
    font-size: 0.9rem;
    display: inline-block;
    padding: 5px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    margin-top: 5px;
}

.welcome-content {
    flex: 1;
    padding: 20px;
}

.quote-box {
    position: relative;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.quote-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0.3;
    position: absolute;
}

.fa-quote-left {
    top: 10px;
    left: 10px;
}

.fa-quote-right {
    bottom: 10px;
    right: 10px;
}

.welcome-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
    text-align: justify;
    padding: 0 30px;
}

.welcome-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
}

.feature-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-item span {
    color: var(--dark-text);
    font-weight: 500;
}

@media screen and (max-width: 992px) {
    .welcome-flex {
        flex-direction: column;
    }

    .president-info {
        flex: 0 0 auto;
        max-width: 300px;
        margin: 0 auto;
    }

    .welcome-content {
        text-align: center;
    }

    .welcome-text {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .welcome {
        padding: 60px 0;
    }

    .president-info {
        max-width: 250px;
    }

    .president-title h3 {
        font-size: 1rem;
    }

    .designation {
        font-size: 0.8rem;
    }

    .welcome-text {
        font-size: 1rem;
        padding: 0 20px;
    }

    .feature-item {
        min-width: 100%;
        padding: 12px 20px;
    }
}

/* President Section Styles */
.president-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.president-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.president-info {
    flex: 0 0 350px;
    position: relative;
}

.president-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.president-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: transform 0.3s ease;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.president-image:hover img {
    transform: scale(1.02);
}

.president-image:hover .image-overlay {
    opacity: 0.2;
}

.president-title {
    background: rgba(255, 255, 255, 0.98);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: -50px;
    position: relative;
    z-index: 2;
    margin-left: 20px;
    margin-right: 20px;
    border-top: 3px solid var(--primary-color);
    text-align: center;
}

.president-title h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.designation {
    color: var(--dark-text);
    font-style: italic;
    font-size: 0.9rem;
    display: inline-block;
    padding: 5px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    margin-top: 5px;
}

.president-content {
    flex: 1;
    padding: 20px;
}

.president-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.president-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.quote-box {
    position: relative;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.quote-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0.3;
    position: absolute;
}

.fa-quote-left {
    top: 10px;
    left: 10px;
}

.fa-quote-right {
    bottom: 10px;
    right: 10px;
}

.president-message {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
    text-align: justify;
    padding: 0 30px;
}

.president-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
}

.feature-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-item span {
    color: var(--dark-text);
    font-weight: 500;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 992px) {
    .president-flex {
        flex-direction: column;
    }

    .president-info {
        flex: 0 0 auto;
        max-width: 300px;
        margin: 0 auto;
    }

    .president-content {
        text-align: center;
    }

    .president-message {
        text-align: center;
        font-size: 1rem;
        padding: 0 20px;
    }

    .feature-item {
        min-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .president-section {
        padding: 40px 0;
    }

    .president-info {
        max-width: 250px;
    }

    .president-title h3 {
        font-size: 1rem;
    }

    .designation {
        font-size: 0.8rem;
    }

    .president-content h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .quote-box {
        padding: 25px 15px;
    }

    .president-message {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .feature-item {
        padding: 12px 20px;
    }

    .feature-item i {
        font-size: 1rem;
    }

    .feature-item span {
        font-size: 0.9rem;
    }
}
        
/* Statistics Section */
.statistics {
    padding: 100px 0;
    background: var(--primary-color);
    color: var(--light-text);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.stat-item .counter {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: white; /* White color added */
}

/* Department Styles */
.department-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
}

.department-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.department-card h3 {
    color: var(--dark-text);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.department-card p {
    color: var(--dark-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.department-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.department-features li {
    padding: 8px 0;
    color: var(--dark-text);
    position: relative;
    padding-left: 25px;
}

.department-features li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 8px;
    font-size: 1.2em;
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

@media screen and (max-width: 768px) {
    .department-card {
        padding: 20px;
    }

    .department-card h3 {
        font-size: 1.3rem;
    }

    .department-features li {
        font-size: 0.9rem;
    }
}

/* Departments Section Styles */
.departments-section {
    padding: 80px 0;
    background: #f8f9fa;
    margin-bottom: 10px; /* Reduce margin below departments section */
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.department-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
}

.department-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.department-card h3 {
    font-size: 1.2rem;
    margin: 10px 0;
}

.department-card p {
    font-size: 0.9rem;
    color: #666;
}

/* News Section */
.news {
    padding: 100px 0;
    margin-bottom: 10px; /* Reduce margin below news section */
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--light-text);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Updates Section Styles */
.updates-section {
    padding: 4rem 0;
    background: #f9f9f9;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.update-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.update-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #4CAF50;
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.update-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.update-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.update-date {
    color: #888;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.no-updates {
    text-align: center;
    grid-column: 1 / -1;
    color: #666;
    padding: 2rem;
}

@media (max-width: 768px) {
    .updates-grid {
        grid-template-columns: 1fr;
    }
}

/* Quick Access Section */
.quick-access {
    background: var(--light-bg);
    padding: 30px 0;
    margin-top: -5px; /* To remove any gap between slider and this section */
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    margin-bottom: 10px; /* Reduce margin below quick access section */
}

.quick-access-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
}

.quick-access-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px 50px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    min-width: 250px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.quick-access-button i {
    font-size: 32px;
}

.quick-access-button span {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-access-button.registration {
    background: var(--primary-color);
}

.quick-access-button.results {
    background: var(--secondary-color);
}

.quick-access-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Responsive styles for Quick Access */
@media (max-width: 768px) {
    .quick-access-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .quick-access-button {
        width: 90%;
        max-width: 300px;
        padding: 20px 30px;
    }
}

@media (max-width: 480px) {
    .quick-access {
        padding: 20px 0;
    }

    .quick-access-button {
        padding: 15px 25px;
    }

    .quick-access-button i {
        font-size: 28px;
    }

    .quick-access-button span {
        font-size: 16px;
    }
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--light-text);
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-section .social-links {
    display: flex;
    gap: 15px;
}

.footer-section .social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-section .social-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(2, 1, 1, 0.1);
}
.developer-credit {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.developer-credit p a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

.developer-credit p a:hover {
    color: var(--light-text);
    text-decoration: underline;
    transition: color 0.3s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .top-bar .container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .top-bar .title-section {
        flex-direction: column;
        text-align: center;
    }

    .top-bar .title {
        font-size: 16px;
        text-align: center;
    }

    .top-bar .logo-img {
        width: 40px;
        height: 40px;
    }

    .social-icons {
        margin-top: 5px;
    }

    .social-icons a {
        font-size: 16px;
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }

    .stat-item .counter {
        font-size: 2rem;
    }

    .department-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .top-bar .title {
        font-size: 14px;
    }

    .top-bar .logo-img {
        width: 30px;
        height: 30px;
    }

    .social-icons a {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .top-bar .title {
        font-size: 12px;
    }
}

/* About Page Styles */
.about-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.president-profile {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.profile-image {
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: transform 0.3s ease;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.profile-content {
    text-align: center;
    padding: 20px;
}

.profile-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.profile-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.mission-box {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.mission-box h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.mission-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
}

/* Objectives Section */
.objectives-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.objective-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.objective-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.objective-icon i {
    font-size: 2rem;
    color: white;
}

.objective-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.objective-card p {
    color: var(--dark-text);
    font-size: 1rem;
    line-height: 1.6;
}

/* Values Section */
.values-section {
    margin-top: 40px;
}

.values-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.value-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon i {
    font-size: 1.8rem;
    color: white;
}

.value-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.value-card p {
    color: var(--dark-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.divider-line {
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.divider i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

@media screen and (max-width: 768px) {
    .about-section {
        padding: 40px 0;
    }

    .profile-image {
        max-width: 250px;
    }

    .profile-content h2,
    .mission-box h2,
    .section-header h2 {
        font-size: 1.6rem;
    }

    .mission-box p,
    .objective-card p,
    .value-card p {
        font-size: 1rem;
    }

    .objective-icon,
    .value-icon {
        width: 60px;
        height: 60px;
    }

    .objective-icon i,
    .value-icon i {
        font-size: 1.5rem;
    }

    .objective-card h3,
    .value-card h3 {
        font-size: 1.3rem;
    }

    .divider-line {
        width: 30px;
    }
}

/* Contact Page Styles */
.map-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.map-section .section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 32px;
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-section {
    padding: 50px 0;
    background-color: #f5f5f5;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Info Card Styles */
.info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
}

.info-card h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 24px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-item i {
    font-size: 20px;
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
    padding: 12px;
    border-radius: 50%;
    min-width: 45px;
    text-align: center;
}

.info-content h3 {
    color: var(--dark-text);
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.info-content p {
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.info-content a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--primary-color);
}

/* Social Connect */
.social-connect {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-connect h3 {
    color: var(--dark-text);
    margin-bottom: 20px;
    font-size: 18px;
}

.social-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-button i {
    font-size: 16px;
}

.social-button.whatsapp { background: #25D366; }
.social-button.facebook { background: #1877F2; }
.social-button.instagram { 
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Form Card Styles */
.form-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-card h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 24px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.submit-btn i {
    font-size: 18px;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    #map {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .map-section,
    .contact-section {
        padding: 40px 0;
    }

    #map {
        height: 300px;
    }

    .map-section .section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .info-card,
    .form-card {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .map-section,
    .contact-section {
        padding: 30px 0;
    }

    #map {
        height: 250px;
    }

    .map-section .section-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .social-buttons {
        flex-direction: column;
    }

    .social-button {
        width: 100%;
        justify-content: center;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .info-item i {
        margin-bottom: 10px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-bar {
        padding: 10px 0;
    }

    .title-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 5px 0;
    }

    .title-section .logo-img {
        width: 50px;
        height: auto;
        margin-bottom: 5px;
    }

    .title-section .title {
        font-size: 16px;
        margin: 5px 0;
    }

    .nav-links {
        padding: 5px 0;
    }

    /* Page specific adjustments */
    .registration-section,
    .about-section,
    .contact-section,
    .donation-section,
    .media-section,
    .results-section {
        padding-top: var(--header-height-mobile);
    }

    /* Hero section specific */
    .hero {
        padding-top: var(--header-height-mobile);
    }
}

@media (max-width: 480px) {
    main, section:first-of-type {
        padding-top: var(--header-height-small);
    }

    .title-section .title {
        font-size: 14px;
    }

    .nav-links a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 768px) {
    /* Common spacing for all sections on mobile */
    .hero,
    .about-section,
    .contact-section,
    .donation-section,
    .media-section,
    .results-section,
    .registration-section,
    .video-highlights {
        margin-top: 0;
        padding: 20px 15px;
    }

    /* Remove extra spacing */
    main {
        margin-top: 0;
    }

    /* Update header height */
    header {
        margin-bottom: 0;
    }

    /* Remove br tags spacing */
    br {
        display: none;
    }

    /* Adjust section padding */
    section:first-of-type {
        padding-top: 20px;
    }
}

@media screen and (max-width: 480px) {
    .hero,
    .about-section,
    .contact-section,
    .donation-section,
    .media-section,
    .results-section,
    .registration-section,
    .video-highlights {
        margin-top: 0;
        padding: 15px 10px;
    }

    /* Further reduce spacing for smaller screens */
    section:first-of-type {
        padding-top: 15px;
    }
}

/* About Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c3e50 100%);
    color: white;
    padding: 60px 0 40px;
    margin-top: 0; /* Remove margin-top */
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.breadcrumb li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb li.active {
    color: #fff;
}

/* President Section */
.president-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.president-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.profile-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.profile-image img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.profile-image:hover img {
    transform: scale(1.02);
}

.profile-image:hover .profile-overlay {
    opacity: 0.2;
}

.profile-content {
    padding: 20px;
}

.profile-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.profile-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.president-name h3 {
    color: var(--dark-text);
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.president-name .role {
    color: var(--primary-color);
    font-style: italic;
    font-size: 1rem;
}

.message {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
    margin-top: 20px;
    font-style: italic;
}

/* History Section */
.history-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.divider-line {
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.divider i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Story Box Styles */
.story-box {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.story-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
}

.story-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.story-content h3 i {
    font-size: 1.5rem;
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 15px;
}

/* Values Grid Styles */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.value-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.value-card:hover::after {
    transform: scaleX(1);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card-icon i {
    font-size: 2rem;
    color: white;
}

.value-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.value-card p {
    color: var(--dark-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.value-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.value-points li {
    color: var(--dark-text);
    padding: 8px 0;
    border-bottom: 1px dashed #e9ecef;
}

.value-points li:last-child {
    border-bottom: none;
}

/* Achievements Section */
.achievements-section {
    padding: 80px 0;
    background: white;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.achievement-card {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

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

.achievement-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.achievement-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.achievement-card p {
    color: var(--dark-text);
    font-size: 1.1rem;
}

@media screen and (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .story-box {
        padding: 30px;
    }

    .story-content h3 {
        font-size: 1.5rem;
    }

    .story-content p {
        font-size: 1rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        padding: 20px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon i {
        font-size: 1.5rem;
    }

    .achievement-card {
        padding: 20px;
    }

    .achievement-card h3 {
        font-size: 2rem;
    }
}

/* Mission Section Styles */
.mission-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.mission-box {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 80px;
}

.mission-box h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.mission-box h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.mission-box p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-text);
    max-width: 800px;
    margin: 0 auto;
}

/* Solar System Objectives */
.objectives-solar-system {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 50px auto;
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
    z-index: 10;
}

.center-circle i {
    font-size: 2rem;
    margin-bottom: 5px;
}

.center-circle span {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px dashed rgba(0,0,0,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 { width: 200px; height: 200px; animation: orbit 20s linear infinite; }
.orbit-2 { width: 300px; height: 300px; animation: orbit 25s linear infinite reverse; }
.orbit-3 { width: 400px; height: 400px; animation: orbit 30s linear infinite; }
.orbit-4 { width: 500px; height: 500px; animation: orbit 35s linear infinite reverse; }

.objective-planet {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.orbit-1 .objective-planet { top: -50px; left: 50%; transform: translateX(-50%); }
.orbit-2 .objective-planet { top: 50%; right: -50px; transform: translateY(-50%); }
.orbit-3 .objective-planet { bottom: -50px; left: 50%; transform: translateX(-50%); }
.orbit-4 .objective-planet { top: 50%; left: -50px; transform: translateY(-50%); }

.objective-planet:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.planet-content {
    text-align: center;
    padding: 15px;
}

.planet-content i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.planet-content h3 {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.planet-content p {
    font-size: 0.7rem;
    color: var(--dark-text);
    line-height: 1.2;
}

@keyframes orbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .mission-box {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .mission-box h2 {
        font-size: 1.8rem;
    }

    .mission-box p {
        font-size: 1.1rem;
    }

    .objectives-solar-system {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin: 30px 0;
    }

    .center-circle {
        position: relative;
        transform: none;
        margin-bottom: 30px;
    }

    .orbit {
        position: relative;
        width: 100% !important;
        height: auto !important;
        border: none;
        transform: none;
        animation: none !important;
        display: flex;
        justify-content: center;
    }

    .objective-planet {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 80%;
        max-width: 300px;
        height: auto;
        border-radius: 15px;
    }

    .planet-content {
        padding: 20px;
    }

    .planet-content h3 {
        font-size: 1.1rem;
    }

    .planet-content p {
        font-size: 0.9rem;
    }
}

/* Legacy Section Styles */
.legacy-section {
    padding: 80px 0;
    background: #f8f9fa;
    margin-bottom: 10px; /* Reduce margin below legacy section */
}

.legacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.legacy-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legacy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.custom-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
}

.turban-icon {
    width: 100%;
    height: auto;
    fill: var(--primary-color);
}

/* Image Gallery Styles */
.image-gallery {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px; /* Adjust as needed */
    margin: 0 auto;
}

.gallery-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    min-width: 100%;
    height: 300px; /* Adjust height for desktop */
    background-size: cover;
    background-position: center;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.control-button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.control-button:hover {
    background: rgba(255, 255, 255, 1);
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    .gallery-slide {
        height: 200px; /* Adjust height for mobile */
    }
}

/* Donation Container Styles */
.donation-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px 0;
}

.donation-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 10px;
    flex: 1 1 calc(30% - 20px); /* Adjust width as needed */
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.donation-box:hover {
    transform: scale(1.05);
}

.donation-box i {
    font-size: 40px;
    color: #007bff; /* Change color as needed */
    margin-bottom: 10px;
}

.urdu-title {
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0;
}

.appeal-card {
    background-color: #e7f3fe;
    border: 1px solid #b3d4fc;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.appeal-title {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.pay-now-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pay-now-btn:hover {
    background-color: #0056b3;
}

/* Horizontal Box Styles */
.horizontal-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.horizontal-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.horizontal-box-content {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.bank-details {
    flex: 1;
}

.qr-section {
    flex: 1;
    text-align: center;
}

.about-me-section {
    padding: 80px 0; /* Padding for the section */
    background: #f8f9fa; /* Background color */
    margin-bottom: 10px; /* Margin below the section */
}

.about-me-content {
    background: white; /* Background for content */
    border-radius: 15px; /* Rounded corners */
    padding: 30px; /* Padding inside the content */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Shadow effect */
    text-align: center; /* Center text */
}

.about-me-content h2 {
    color: var(--primary-color); /* Primary color for the title */
    font-size: 2rem; /* Font size for the title */
    margin-bottom: 20px; /* Margin below the title */
}

.about-me-content p {
    color: var(--dark-text); /* Dark text color */
    font-size: 1.1rem; /* Font size for paragraphs */
    line-height: 1.6; /* Line height for readability */
}

/* Contact Section */
.contact-section {
    margin: 0; /* یا اپنی مرضی کے مطابق */
    padding: 20px 0; /* اپنی مرضی کے مطابق */
}


/* Video Highlights Section */
.video-highlights {
    padding: 50px 0;
    background: #f5f5f5;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.video-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.video-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.watch-btn {
    background: var(--primary-color);
    color: white;
}

.share-btn {
    background: #25d366;
    color: white;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.more-videos {
    text-align: center;
    margin-top: 40px;
}

.channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.channel-btn:hover {
    background: #cc0000;
    transform: translateY(-3px);
}


/* Footer */
footer {
    margin: 0; /* یا اپنی مرضی کے مطابق */
    padding: 20px 0; /* اپنی مرضی کے مطابق */
}

#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: none;
}

#scrollToTop:hover {
    background: linear-gradient(45deg, #ff4b2b, #ff416c);
    transform: scale(1.2);
}

#scrollToTop.show {
    display: block;
}

// Scroll to top button
const scrollToTopButton = document.getElementById('scrollToTop');

window.onscroll = function() {
    if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
        scrollToTopButton.style.display = "block";
    } else {
        scrollToTopButton.style.display = "none";
    }
};

scrollToTopButton.onclick = function() {
    window.scrollTo({top: 0, behavior: 'smooth'});
};
