/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #003366;
    --skyblue: #00A3E0;
    --orange: #FF9900;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

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

/* Header - Template */
.header {
    background-color: var(--navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

/* Navigation - Template */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: var(--skyblue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--skyblue);
    transition: width 0.3s ease;
}

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

/* Dropdown - Template */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background-color: var(--white);
    min-width: 280px;
    box-shadow: var(--shadow);
    border-radius: 6px;
    list-style: none;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

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

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    color: var(--navy);
    padding: 12px 25px;
    display: block;
    font-size: 0.9rem;
    text-transform: none;
    font-weight: 600;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
    color: var(--skyblue);
    border-left-color: var(--skyblue);
    padding-left: 30px;
}

/* Mobile Menu - Template */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Buttons - Template */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: #0087B9;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 163, 224, 0.3);
}

.btn-secondary {
    background-color: var(--orange);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #E68A00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 153, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-outline:hover {
    background-color: var(--navy);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-academy {
    background-color: var(--navy);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-academy:hover {
    background-color: #002244;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.3);
}

/* Section Title - Template */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background-color: var(--orange);
    border-radius: 2px;
}

/* Footer - Template */
.footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 70px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
}

.tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--skyblue);
    line-height: 1.4;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--skyblue);
}

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

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: var(--orange);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--orange);
}

.social-links {
    margin-top: 30px;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-icon:hover {
    background-color: var(--skyblue);
    transform: translateY(-3px);
}

.academy-logo-placeholder {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.academy-logo-placeholder:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.academy-logo-placeholder i {
    font-size: 1.5rem;
    color: var(--orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive - Template */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-sections {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background-color: var(--navy);
        width: 100%;
        padding: 30px 20px;
        transition: var(--transition);
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 90px);
        height: auto;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.1);
        width: 100%;
        margin-top: 0;
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        max-width: 100%;
        transition: max-height 0.3s ease;
    }
    
    .dropdown:hover .dropdown-menu {
        max-height: 500px;
        padding: 15px 0;
    }
    
    .dropdown-menu a {
        color: var(--white);
        padding-left: 30px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link {
        padding: 18px 0;
        display: block;
        width: 100%;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-overflow: ellipsis;
        overflow: visible !important;
        max-width: 100%;
    }
    
    .dropdown.open .dropdown-menu {
        max-height: 500px;
        padding: 15px 0;
        overflow-y: auto;
    }
    
    .dropdown-menu li {
        border-bottom: none;
    }
    
    .dropdown-menu a {
        color: var(--white);
        padding-left: 30px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 576px) {
    .logo img {
        max-width: 180px;
        height: auto;
    }
    
    .section-title {
        font-size: 1.6rem;
        word-wrap: break-word;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    .btn {
        white-space: normal;
        word-wrap: break-word;
        padding: 12px 20px;
    }
    
    .footer {
        padding: 50px 0 25px;
    }
    
    .footer-logo {
        max-width: 100%;
        height: auto;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .footer-logo {
        max-width: 150px;
    }
}

/* Global Overflow Prevention */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

h1, h2, h3, h4, p, .btn, .nav-link {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Prevent text overflow in dropdown */
.nav-link, .dropdown-menu a {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Animations - Template */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}