/* 
   CSS for D.A.E. Classes Locations Page
*/

/* Header Styles to match exactly with the provided image */
.main-header {
    background-color: #5D2F8E;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: 45px;
    height: 45px;
    margin-right: 10px;
}

.logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
}

.script-font {
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-menu li {
    margin: 0 12px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 10px;
    position: relative;
    display: block;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #2ECC71;
}

.nav-link.active {
    position: relative;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: white;
    bottom: -5px;
    left: 0;
}

.cta-button {
    background-color: #2ECC71;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
    display: inline-block;
    text-align: center;
    border: none;
}

.cta-button:hover {
    background-color: #27ae60;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s;
}

/* Banner Section */
.locations-banner {
    background-image: url('../images/locations/banner.jpeg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    position: relative;
    color: white;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Locations Navigation */
.locations-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.location-nav-item {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    background-color: white;
    color: #5D2F8E;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #5D2F8E;
    text-align: center;
}

.location-nav-item:hover,
.location-nav-item.active {
    background-color: #5D2F8E;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Location Center Sections */
.location-center {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8f9fa;
}

.section {
    padding: 60px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: #5D2F8E;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.location-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.location-flex.reverse {
    flex-direction: row-reverse;
}

.location-info {
    flex: 1;
    min-width: 300px;
}

.location-info h2 {
    color: #5D2F8E;
    margin-bottom: 10px;
    font-size: 2rem;
}

.location-tagline {
    color: #2C3E50;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.address-details {
    margin-bottom: 25px;
}

.address-item {
    display: flex;
    margin-bottom: 15px;
}

.address-item i {
    color: #5D2F8E;
    margin-right: 15px;
    min-width: 20px;
    padding-top: 3px;
}

.address-item p {
    margin: 0;
}

.address-item a {
    color: #5D2F8E;
    text-decoration: none;
    transition: color 0.3s ease;
}

.address-item a:hover {
    color: #E67E22;
    text-decoration: underline;
}

.timing-info {
    margin-bottom: 25px;
}

.timing-info h3,
.courses-offered h3 {
    color: #5D2F8E;
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.timing-info h3::after,
.courses-offered h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #5D2F8E;
}

.timing-info p {
    margin-bottom: 10px;
}

.courses-offered {
    margin-bottom: 30px;
}

.courses-offered ul {
    list-style-type: none;
    padding-left: 0;
}

.courses-offered li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.courses-offered li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ECC71;
}

.location-cta {
    display: flex;
    gap: 15px;
}

.location-cta .btn {
    flex: 1;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #5D2F8E;
    color: white;
    border: 2px solid #5D2F8E;
}

.btn-primary:hover {
    background-color: #4A2472;
    border-color: #4A2472;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: white;
    color: #5D2F8E;
    border: 2px solid #5D2F8E;
}

.btn-secondary:hover {
    background-color: #f8f9fa;
    color: #4A2472;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.location-map {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.location-image:hover img {
    transform: scale(1.05);
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* All Centers Overview */
.centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.center-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.center-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.center-image {
    height: 200px;
    overflow: hidden;
}

.center-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.center-card:hover .center-image img {
    transform: scale(1.1);
}

.center-content {
    padding: 25px;
    text-align: center;
}

.center-content h3 {
    color: #5D2F8E;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.center-content p {
    color: #2C3E50;
    margin-bottom: 20px;
}

/* CTA Section */
.cta-section {
    background-color: #5D2F8E;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.float {
    width: 60px;
    height: 60px;
    background-color: #2ECC71;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-size: 24px;
    transition: all 0.3s ease;
}

.float:hover {
    background-color: #27ae60;
    transform: scale(1.1);
}

.tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #2C3E50;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tooltip:after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #2C3E50;
}

.float:hover + .tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Footer Styles */
footer {
    background-color: #2C3E50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    width: 60px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.tagline {
    opacity: 0.9;
    font-style: italic;
}

.accent-font {
    font-family: 'Dancing Script', cursive;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after,
.footer-contact h3:after,
.footer-social h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #2ECC71;
}

.footer-links ul,
.footer-contact ul {
    list-style-type: none;
    padding-left: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #2ECC71;
}

.footer-contact i {
    margin-right: 10px;
    color: #2ECC71;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #34495e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #2ECC71;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .location-flex {
        flex-direction: column;
    }
    
    .location-flex.reverse {
        flex-direction: column;
    }
    
    .location-info, 
    .location-map {
        width: 100%;
    }
    
    .location-cta {
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-container {
        justify-content: space-between;
    }
    
    .locations-nav {
        flex-wrap: wrap;
    }
    
    .location-nav-item {
        flex: 1;
        min-width: 120px;
    }
    
    .location-cta {
        flex-direction: column;
    }
    
    .center-image {
        height: 180px;
    }
    
    .banner-content h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 576px) {
    .locations-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .center-card {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .locations-banner {
        padding: 60px 0;
    }
    
    .banner-content h1 {
        font-size: 1.8rem;
    }
    
    .floating-contact {
        bottom: 15px;
        right: 15px;
    }
    
    .float {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}