
/*
Design by TEMPLATED
http://templated.co
Released for free under the Creative Commons Attribution License
*/

body {
	margin: 0;
	padding: 0;
	background: #f3f6fa;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	color: #444e57;
}

/* Animated subtle border around the entire page */
body {
    position: relative;
    border: 6px solid transparent; /* space for the animated border */
}

#wrapper {
    position: relative; /* needed for pseudo-element positioning */
    border-radius: 12px; /* optional, matches your box style */
    overflow: hidden; /* ensures the border stays inside */
}

#wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    padding: 6px; /* thickness of the border */
    background: linear-gradient(120deg, #6a87b5, #8aa4d6, #6a87b5, #8aa4d6, #6a87b5);
background-size: 400% 400%;
    animation: borderMove 6s ease infinite;
    z-index: 10;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    border-radius: 12px;
}

@keyframes borderMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1, h2, h3 {
	margin: 0;
	padding: 0;
	text-transform: uppercase;
	font-weight: 600;
	color: #2a3a48;
	letter-spacing: -0.5px;
}

h1 {
	font-size: 2.4rem;
}

h2 {
	font-size: 2em;
}

h3 {
	font-size: 1.4em;
}

p, ul, ol {
	margin-top: 0;
	line-height: 1.7;
}

ul, ol {
}

a {
	text-decoration: none;
	color: #316ea8;
	transition:color .2s ease;
}

a:hover {
	color:#1c4d7c;
}

#wrapper {
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 0 20px rgba (0,0,0,0.05);
}

.container {
	width: 1200px;
	margin: 0px auto;
	padding: 0 20px;
}

/* Header */

#header-wrapper {
	overflow: hidden;
	height: auto;
	background: linear-gradient(135deg, #dbe9ff, #eef2f7);
	padding: 60px 0;
}

#header {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
}

/* Logo */

#logo {
	padding-top: 30px;
	padding-bottom: 10px;
}

#logo h1, #logo p {
	text-align: center;
}

#logo h1 {
	font-size: 64px;
	font-weight: 530;
	color: #1f2f3b;
	letter-spacing: -2px;
}

#logo > p {
	font-size: 20px;
	font-weight: 400;
	color: #6b7a86;
	margin-top: -10px;
	text-align: center;
}

#logo p a {
	color: #1f2f3b;
}

#logo a {
	color: #1f2f3b;
}

/* Logo image + flex container for title */
.logo-inner {
    display: flex;
    align-items: center;       /* vertically center image and text */
    justify-content: center;   /* center horizontally */
    gap: 15px;                 /* space between image and text */
}

.logo-icon {
    width: 300px;               /* adjust as needed */
    height: 300px;
    object-fit: contain;
    border-radius: 8px;        /* optional rounded corners */
}

.logo-inner h1 {
    font-size: 48px;           /* smaller to fit in one line */
    font-weight: 530;
    color: #1f2f3b;
    margin: 0;
    white-space: nowrap;       /* prevents wrapping */
}

/* Subheader paragraph below the logo */
.subheader {
    display: flex;
    justify-content: center;  /* centers the paragraph */
    margin-top: 10px;         /* spacing from logo */
}

.subheader p {
    font-size: 60px;
    font-weight: 400;
    color: #6b7a86;
    margin: 0;
    text-align: center;       /* ensures multi-line text is centered */
}

/* Intro Box Style */

.intro-box {
    border: 3px solid #316ea8;  
    border-radius: 12px;        
    padding: 20px 25px;         
    margin: 20px 0;            
    background-color: #fdfdfd;   
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
    line-height: 1.7;
    color: #2d3b4f;
}

.intro-box h2 {
    margin-top: 0;
    color: #316ea8;
}

/* Menu */

#menu-wrapper {
    background: #ffffff;
    border-bottom: 2px solid #d9e2ec; 
    padding: 20px 0;                  
    position: relative;                
    z-index: 1;
}

#menu {
    text-align: center;
}

#menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

#menu li {
    display: inline-block;
    margin: 0 10px;
}

#menu a {
    padding: 10px 22px;
    font-size: 15px;
    color: #2f3e4d;
    border-radius: 25px;
    transition: background 0.25s ease, color 0.25s ease;
    position: relative;
    z-index: 2;
    text-decoration: none;
}

/* Hover effect for all menu items */
#menu li a:hover {
    background: #316ea8;
    color: #FFFFFF;
    z-index: 3; 
}

/* Current page highlight */
#menu li.current_page_item a {
    background: #316ea8;
    color: #FFFFFF;
}

/* Optional: hover on current page behaves like normal hover */
#menu li.current_page_item a:hover {
    background: #316ea8;
    color: #FFFFFF;
}

/* Page */

#page {
	padding: 10px 20px 40px 20px;
}

/* Content */

#content {
	float: left;
	width: 760px;
}


/* Footer */

#footer {
	text-align: center;
	padding: 60px 0 40px;
	background: #f1f4f7;
	margin-top: 40px;
}

#footer p {
	text-shadow: none;
	color: #6b7a86;
}

#footer a {
	text-decoration: underline;
	color: #316ea8;
}

#footer a:hover {
	color: #1c4d7c;
}

.box1 {
	height: 300px;
	background: linear-gradient(135deg, #c7d8ea, #eaf1f7);
	border-radius: 12px;
	margin-bottom: 40px;
}

.decorative-divider {
    position: relative;
    width: 100%;
    max-width: 600px;                
    height: 4px;
    background: linear-gradient(
        to right,
        #316ea8,
        #a6c1e0,
        #316ea8
    );
    margin: 40px auto 60px auto;                
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Icon or symbol in the middle */
.decorative-divider .divider-icon {
    position: absolute;
    top: 50%;                         
    left: 50%;                         
    transform: translate(-50%, -50%);  
    background-color: #fdfdfd;         
    color: #316ea8;                    
    font-size: 24px;                   
    padding: 0 10px;                    
    border-radius: 50%;                
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


/* Three Column Content */

#three-column {
    display: flex;           /* use flexbox instead of floats */
    justify-content: space-between; /* space between the three boxes */
    gap: 2%;                 /* small gap like your previous margin-right */
    padding: 30px 0 70px;
}

#three-column .tbox1,
#three-column .tbox2,
#three-column .tbox3 {
    width: 32%;              /* keep your previous width */
    display: flex;
}

#three-column .box-style {
    flex: 1;                 /* fill the height equally */
    display: flex;
    flex-direction: column;  /* ensures content stacks correctly */
}


.box-style {
	background: #FFFFFF;
	border-radius: 16px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	text-align: center;
	padding-bottom: 20px;
}

.box-style h2 {
	padding: 16px 0px;
	font-size: 1.6rem;
	color: #1f2f3b;
}

.box-style .content {
	padding: 25px 30px;
}

.content-img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin: 15px 0;
    display: block;
}

#eportfolio-box .box-style {
    background: #ffffff;    
    border-radius: 12px;    
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    max-width: 800px;       /* optional: limit width */
    margin: 40px auto;      /* center on page and add spacing above/below */
}


.button {
    display: inline-block;
    margin: 1em 0em;
    background: #2f3e4d;
    padding: 1em 2em;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px; /* optional, matches your rounded style */
    transition: all 0.3s ease;
	 font-size: 1.2rem;
}

.button:hover {
    background: #316ea8;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* Make the page fill viewport and use flex layout for sticky bottom E-Portfolio box */
/* Page wrapper as flex container */
html, body {
    height: 100%;
    margin: 0;
}

#wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* fill viewport height */
}

/* Content area grows to push E-Portfolio box to bottom */
#page,
#three-column {
    flex: 1;
}

/* Make content area grow */
#main-content {
    flex: 1;             /* grows to fill remaining space */
    display: flex;
    flex-direction: column;
}

/* Clear floats for three-column boxes */
#three-column::after {
    content: "";
    display: block;
    clear: both;
}

/* E-Portfolio box full width like three-column boxes */
/* ---- E-Portfolio: match three-column width & shadow ---- */
#eportfolio-box {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

#eportfolio-box .box-style {
    max-width: 1080px;        /* ADJUST UNTIL IT MATCHES YOUR THREE BOXES */
    width: 100%;
    margin: 20px auto 40px auto;  /* Extra padding top */
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    box-sizing: border-box;
    text-align: center;
}

#three-column-second {
    display: flex;
    justify-content: center; 
    gap: 3%;                 
	align-items: stretch;
}

#three-column-second .box-style {
    height: auto;         /* allows box to grow with text */
    min-height: 100%;     /* optional: can set a minimum if you want */
}

#three-column-second .content {
    height: auto;         /* default behavior, ensures text fits */
}


#three-column-second .tbox1,
#three-column-second .tbox2 {
    float: none;            /* remove old float */
    width: 45%;             /* increase width so text fits better */
    margin-right: 0;        /* remove previous right margin */
}

.divider-bottom {
    margin-top: 90px;
    margin-bottom: 40px;
}
