/* 
* CRDD-PA - Main Stylesheet
* ========================
*/

/* Global Styles */
:root {
    --primary-color: #FC1507;
    --secondary-color: #C41205;
    --accent-color: #FFA500;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #333;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Header Styles */
.top-header {
    font-size: 0.9rem;
}

.main-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo img {
    max-height: 80px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.dropdown-menu {
    border-radius: 0;
    border-top: 3px solid var(--primary-color);
}

/* Hero Banner */
.hero-banner {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 100px 0;
    position: relative;
}

.hero-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Welcome Section */
.welcome-section {
    padding: 60px 0;
}

.section-title {
    position: relative;
    margin-bottom: 40px;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 15px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Service Cards */
.service-card {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Featured Dispatchers */
.dispatcher-section {
    background-color: var(--light-color);
    padding: 60px 0;
}

.dispatcher-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.dispatcher-info {
    padding: 20px;
}

.dispatcher-info h5 {
    font-weight: 600;
    margin-bottom: 5px;
}

/* Recent Blog Posts */
.blog-section {
    padding: 60px 0;
}

.blog-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

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

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

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-content {
    padding: 20px;
}

.blog-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Call to Action */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 2rem;
}

.cta-section .btn {
    padding: 0.75rem 2rem;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Announcements Section */
.announcements-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* Footer Styles */
.footer-modern {
    background: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%);
    color: white;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-links li {
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: #f8f8f8;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 0;
}

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

.contact-info i {
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.contact-info li {
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    color: white;
}

.copyright-section {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.copyright-section p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.copyright-section a {
    color: var(--accent-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.copyright-section a:hover {
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .service-card, .blog-card, .dispatcher-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .top-header .contact-info, .top-header .social-links {
        text-align: center;
    }
    
    /* Remove email and expand phone numbers on mobile */
    .top-header .email-address {
        display: none;
    }
    
    .top-header .phone-numbers {
        width: 100%;
        display: block;
        text-align: center;
    }
    
    .contact-info {
        justify-content: center;
    }
    
    .logo {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .footer-logo {
        text-align: center;
    }
}
