/* 
 * Medcom Aswan Custom Stylesheet 
 * Fonts: Cairo (Arabic), Poppins (English)
 */

:root {
    --primary-color: #01783c;
    /* Main Green */
    --secondary-color: #46e494;
    /* Accent Gold */
    --text-dark: #1F2937;
    --text-light: #4B5563;
    --bg-light: #F9FAFB;
}

body {
    font-family: 'Poppins', 'Cairo', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: #ffffff;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    color: var(--text-dark);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
    color: var(--text-dark) !important;
}

a {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: #3eb077; /* Darker green for text links */
    text-decoration: none;
}

/* Topbar */
.topbar {
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.9rem;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand h2 {
    letter-spacing: 0.5px;
    font-weight: 900;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem !important;
    transition: color 0.3s, transform 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(1, 120, 60, 0.85), rgba(1, 120, 60, 0.7)), url('../images/hero-bg.jpg') center/cover no-repeat;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    color: #ffffff;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
    padding: 0.8rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 120, 60, 0.2);
}

.btn-primary-custom:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(70, 228, 148, 0.4);
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border: 2px solid var(--secondary-color);
    padding: 0.8rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(70, 228, 148, 0.2);
}

.btn-secondary-custom:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(1, 120, 60, 0.4);
}

/* Section Headings */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Services / Features Cards */
.feature-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(1, 120, 60, 0.08);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 90px;
    height: 90px;
    background-color: rgba(70, 228, 148, 0.3);
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    transition: all 0.4s ease;
    transform: rotate(-5deg);
}

.feature-card:hover .icon-box {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: rotate(0deg) scale(1.1);
}

/* Footer & WhatsApp */
.footer {
    background-color: var(--primary-color) !important;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ffffff !important;
}

.footer-links a:hover {
    color: var(--secondary-color) !important;
    text-decoration: underline !important;
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.btn-primary:hover {
    background-color: #016231 !important;
    border-color: #016231 !important;
}
.bg-info { background-color: var(--secondary-color) !important; }
.text-info { color: var(--secondary-color) !important; }
.btn-info {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}






/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.hover-lift:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Global Image Zoom Hover */
.hover-zoom-img,
.card img.img-fluid,
.overflow-hidden img.img-fluid {
    transition: transform 0.5s ease-in-out !important;
}
.hover-zoom-img:hover,
.card:hover img.img-fluid,
.hover-lift:hover img.img-fluid {
    transform: scale(1.1) !important;
}

/* Rectangular Board/Team Images */
.chairman-rect-img {
    height: 420px;
    object-fit: cover;
    object-position: center 15%;
}

.member-rect-img {
    height: 280px;
    object-fit: cover;
    object-position: center 15%;
}
