/* Jamia Urwatul Wuthqa - Main Styles */

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

body {
    font-family: 'Noto Nastaliq Urdu', serif;
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(44, 85, 48, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    min-height: 70px;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.logo:hover {
    background-color: rgba(44, 85, 48, 0.05);
    transform: translateY(-1px);
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.logo-text h1 {
    color: #2c5530;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Noto Nastaliq Urdu', serif;
    line-height: 1;
    white-space: nowrap;
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
    height: 100%;
    flex: 1;
}

.nav-links > li {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #2c5530;
    background-color: rgba(44, 85, 48, 0.05);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: #2c5530;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown-parent:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    border: 1px solid rgba(44, 85, 48, 0.1);
}

.dropdown-parent:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: #666;
    border-bottom: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dropdown a:hover {
    background: rgba(44, 85, 48, 0.05);
    color: #2c5530;
    transform: translateX(-5px);
}

.dropdown a::after {
    display: none;
}

.apply-btn {
    background: linear-gradient(135deg, #2c5530, #4a7c59) !important;
    color: white !important;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(44, 85, 48, 0.2);
    font-family: 'Noto Nastaliq Urdu', serif;
    white-space: nowrap;
    font-size: 0.9rem;
    margin-right: 0;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 85, 48, 0.4);
}

/* Main Content */
#main-content {
    min-height: 100vh;
    padding-top: 100px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #1a4d23 0%, #2c5530 50%, #4a7c59 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: -100px;
    padding-top: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,133.3C672,139,768,181,864,186.7C960,192,1056,160,1152,128C1248,96,1344,64,1392,48L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center/cover no-repeat;
    animation: float 6s ease-in-out infinite;
}

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

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 1;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideUp 1s ease forwards;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideUp 1s ease 0.3s forwards;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.hero-content .description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0;
    animation: slideUp 1s ease 0.6s forwards;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: slideUp 1s ease 0.9s forwards;
}

.btn {
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.1rem;
}

.btn-primary {
    background: rgba(44, 85, 48, 0.08);
    color: #2c5530;
    border: 1px solid rgba(44, 85, 48, 0.2);
    box-shadow: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: rgba(44, 85, 48, 0.12);
    border-color: rgba(44, 85, 48, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(44, 85, 48, 0.15);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2c5530;
}

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

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: #f8f9fa;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

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

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-icon-small {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
    font-family: 'Noto Nastaliq Urdu', serif;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: white;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 1.5rem;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
    font-family: 'Noto Nastaliq Urdu', serif;
    text-align: justify;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.feature-item span {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.1rem;
}

.about-image {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    border-radius: 20px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.about-image div {
    z-index: 1;
    position: relative;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.about-image h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #2c5530;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    font-family: 'Noto Nastaliq Urdu', serif;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Noto Nastaliq Urdu', serif;
}

/* Content Page Styles */
.content-container-full {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-main-full {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(44, 85, 48, 0.1);
}

.content-main-full h2 {
    color: #2c5530;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.content-body {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    font-family: 'Noto Nastaliq Urdu', serif;
    text-align: justify;
}

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

.below-content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(44, 85, 48, 0.1);
    transition: transform 0.3s ease;
    max-width: 100%;
    overflow: hidden;
}

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

.below-content-card h3 {
    color: #2c5530;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.stats-card {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
}

.stats-card h3 {
    color: white;
}

.stats-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item-vertical {
    text-align: center;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat-item-vertical:hover {
    transform: scale(1.02);
}

.stat-item-vertical .stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-item-vertical .stat-label {
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.quick-links {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.quick-links li {
    margin-bottom: 0;
}

.quick-links a {
    color: #2c5530;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Noto Nastaliq Urdu', serif;
    background: white;
    border: 1px solid #e0e6e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.quick-links a::after {
    content: '←';
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.2s ease;
    color: #4a7c59;
    transform: translateX(5px);
}

.quick-links a:hover {
    background: #f8fdf9;
    border-color: #2c5530;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(44, 85, 48, 0.15);
}

.quick-links a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.quick-links a:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.contact-details p {
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-family: 'Noto Nastaliq Urdu', serif;
    color: white;
    padding: 0.5rem 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-details p:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-2px);
}

.contact-details p i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-text {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.office-hours {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(5px);
}

.office-hours p {
    margin-bottom: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.office-hours strong {
    color: rgba(255, 255, 255, 0.9);
}

/* Featured Sections */
.featured-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 253, 249, 0.9));
    margin: 2rem 0;
    border-radius: 20px;
}

.featured-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.featured-content h2 {
    color: #2c5530;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.featured-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.featured-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Alternate layout for featured sections */
.featured-section:nth-child(even) .featured-container {
    grid-template-columns: 1fr 1fr;
}

.featured-section:nth-child(odd) .featured-container {
    grid-template-columns: 1fr 1fr;
}

/* Loading and Fade Effects */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #2c5530;
        cursor: pointer;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        font-size: 1.2rem;
    }

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

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .content-main-full {
        padding: 2rem 1.5rem;
    }

    .content-main-full h2 {
        font-size: 2rem;
    }

    .below-content-sections {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .below-content-card {
        padding: 1.5rem;
    }

    .stats-vertical {
        gap: 0.8rem;
    }

    .stat-item-vertical {
        padding: 1rem;
    }

    .quick-links {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .quick-links a {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    .contact-details p {
        padding: 0.6rem;
        gap: 0.6rem;
    }

    .featured-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .featured-section {
        padding: 2rem 0;
        margin: 1rem 0;
    }

    .featured-content h2 {
        font-size: 2rem;
    }

    .featured-text {
        font-size: 1.1rem;
    }

}